


     var bob;
     bob="<img src='http://www.flyingmoth.co.uk/images/plusicon.png' alt='' border='0' class='sidelinksicon' \>";


    function navigate(link) {
     
       var obj=document.getElementById(link);
       var visible=(obj.style.display != "none");
       
        
    
       if(visible){
          obj.style.display = "none";
        
       }else{
          obj.style.display = "block";
          bob="<img src='http://www.flyingmoth.co.uk/images/tinyicon1.png' alt='' border='0' class='sidelinksicon' \>";
         
       }
    }




function productsview1(x){



if (x=="10"){

    var bob = document.getElementById("networkproducts").style.display
    
    var bob2 = document.getElementById("usedcomputers").style.display
    bob2="none";
    document.getElementById("usedcomputers").style.display=bob2
    var bob3 = document.getElementById("newcomputers").style.display
    bob3="none";
    document.getElementById("newcomputers").style.display=bob3
    var bob4 = document.getElementById("telecoms").style.display
    bob4="none";
    document.getElementById("telecoms").style.display=bob4
    
    document.getElementById("prodtitle").innerHTML="Networking Products";
    document.getElementById("prodtitle").href="http://www.flyingmoth.co.uk/ethernet-cat5e-computer-networking/";
    



        if (bob=="block"){

        bob="none";
        document.getElementById("networkproducts").style.display=bob

        } else if (bob=="none") {

        bob="block";
        document.getElementById("networkproducts").style.display=bob
        }


       var bob5 = document.getElementById("itemclink").style.backgroundColor
       bob5="#cccccc";
       document.getElementById("itemclink").style.backgroundColor=bob5
       var bob6 = document.getElementById("itemclink2").style.backgroundColor
       bob6="#ffffff";
       document.getElementById("itemclink2").style.backgroundColor=bob6
       var bob7 = document.getElementById("itemclink3").style.backgroundColor
       bob7="#ffffff";
       document.getElementById("itemclink3").style.backgroundColor=bob7
       var bob8 = document.getElementById("itemclink4").style.backgroundColor
       bob8="#ffffff";
       document.getElementById("itemclink4").style.backgroundColor=bob8


 }



if (x=="20"){

    var bob = document.getElementById("usedcomputers").style.display
    
    var bob2 = document.getElementById("networkproducts").style.display
    bob2="none";
    document.getElementById("networkproducts").style.display=bob2
    var bob3 = document.getElementById("newcomputers").style.display
    bob3="none";
    document.getElementById("newcomputers").style.display=bob3
    var bob4 = document.getElementById("telecoms").style.display
    bob4="none";
    document.getElementById("telecoms").style.display=bob4



    document.getElementById("prodtitle").innerHTML="Used computers";
    document.getElementById("prodtitle").href="http://www.flyingmoth.co.uk/hardware/used-computers/";
    


        if (bob=="block"){

        bob="none";
        document.getElementById("usedcomputers").style.display=bob

        } else if (bob=="none") {

        bob="block";
        document.getElementById("usedcomputers").style.display=bob
        }



       var bob5 = document.getElementById("itemclink").style.backgroundColor
       bob5="#ffffff";
       document.getElementById("itemclink").style.backgroundColor=bob5
       var bob6 = document.getElementById("itemclink2").style.backgroundColor
       bob6="#cccccc";
       document.getElementById("itemclink2").style.backgroundColor=bob6
       var bob7 = document.getElementById("itemclink3").style.backgroundColor
       bob7="#ffffff";
       document.getElementById("itemclink3").style.backgroundColor=bob7
       var bob8 = document.getElementById("itemclink4").style.backgroundColor
       bob8="#ffffff";
       document.getElementById("itemclink4").style.backgroundColor=bob8








 }



if (x=="30"){

    var bob = document.getElementById("newcomputers").style.display
    
    var bob2 = document.getElementById("networkproducts").style.display
    bob2="none";
    document.getElementById("networkproducts").style.display=bob2
    var bob3 = document.getElementById("usedcomputers").style.display
    bob3="none";
    document.getElementById("usedcomputers").style.display=bob3
    var bob4 = document.getElementById("telecoms").style.display
    bob4="none";
    document.getElementById("telecoms").style.display=bob4



    document.getElementById("prodtitle").innerHTML="New computers";
    document.getElementById("prodtitle").href="http://www.flyingmoth.co.uk/hardware/";
  

        if (bob=="block"){

        bob="none";
        document.getElementById("newcomputers").style.display=bob

        } else if (bob=="none") {

        bob="block";
        document.getElementById("newcomputers").style.display=bob
        }


       var bob5 = document.getElementById("itemclink").style.backgroundColor
       bob5="#ffffff";
       document.getElementById("itemclink").style.backgroundColor=bob5
       var bob6 = document.getElementById("itemclink2").style.backgroundColor
       bob6="#ffffff";
       document.getElementById("itemclink2").style.backgroundColor=bob6
       var bob7 = document.getElementById("itemclink3").style.backgroundColor
       bob7="#cccccc";
       document.getElementById("itemclink3").style.backgroundColor=bob7
       var bob8 = document.getElementById("itemclink4").style.backgroundColor
       bob8="#ffffff";
       document.getElementById("itemclink4").style.backgroundColor=bob8


 }


if (x=="40"){

    var bob = document.getElementById("telecoms").style.display
    
    var bob2 = document.getElementById("networkproducts").style.display
    bob2="none";
    document.getElementById("networkproducts").style.display=bob2
    var bob3 = document.getElementById("newcomputers").style.display
    bob3="none";
    document.getElementById("newcomputers").style.display=bob3
    var bob4 = document.getElementById("usedcomputers").style.display
    bob4="none";
    document.getElementById("usedcomputers").style.display=bob4




    document.getElementById("prodtitle").innerHTML="Telecoms + VoIP Products";
    document.getElementById("prodtitle").href="http://www.flyingmoth.co.uk/hardware/";


        if (bob=="block"){

        bob="none";
        document.getElementById("telecoms").style.display=bob

        } else if (bob=="none") {

        bob="block";
        document.getElementById("telecoms").style.display=bob
        }


       var bob5 = document.getElementById("itemclink").style.backgroundColor
       bob5="#ffffff";
       document.getElementById("itemclink").style.backgroundColor=bob5
       var bob6 = document.getElementById("itemclink2").style.backgroundColor
       bob6="#ffffff";
       document.getElementById("itemclink2").style.backgroundColor=bob6
       var bob7 = document.getElementById("itemclink3").style.backgroundColor
       bob7="#ffffff";
       document.getElementById("itemclink3").style.backgroundColor=bob7
       var bob8 = document.getElementById("itemclink4").style.backgroundColor
       bob8="#cccccc";
       document.getElementById("itemclink4").style.backgroundColor=bob8
      



 }







}







function morelink(){


    var bob9 = document.getElementById("productsmenu").style.display
    

        if (bob9=="block"){

        bob9="none";
        document.getElementById("productsmenu").style.display=bob9
        var bob29="http://www.flyingmoth.co.uk/images/products/productsboxtop_01.png";
        document.getElementById("productsmenulink").src=bob29

        
        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("productsmenu").style.display=bob9
        var bob29="http://www.flyingmoth.co.uk/images/products/productsboxtopover_01.png";
        document.getElementById("productsmenulink").src=bob29
        document.getElementById("fppw").style.display="block";
        }

 }






function termsmenu(){


   var bob9 = document.getElementById("termsmenu").style.display
   
   var bobb = document.getElementById("itemclink").style.backgroundColor

        if (bob9=="block"){

        bob9="none";
        document.getElementById("termsmenu").style.display=bob9
   
      
        bobb="#dddddd";
        document.getElementById("termsmenulink").style.backgroundColor=bobb
        document.getElementById("termsmenulink").style.color="#333333";
        document.getElementById("termsmenulink").title="Click To Show Legal Information Menu";

        
        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("termsmenu").style.display=bob9
     
  
      
       bobb="#aaaaaa";
       document.getElementById("termsmenulink").style.backgroundColor=bobb
       document.getElementById("termsmenulink").style.color="white";
       document.getElementById("termsmenulink").title="Click To Hide Legal Information Menu";




        
        }

 }





function websiteterms(){


   var bob9 = document.getElementById("website_terms_of_use").style.display
              document.getElementById("disclaimer").style.display="none"
              document.getElementById("privacy_policy").style.display="none"

        if (bob9=="block"){

        bob9="none";
        document.getElementById("website_terms_of_use").style.display=bob9
        document.getElementById("termsmenulinka1").style.backgroundColor="white";
      

        
        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("website_terms_of_use").style.display=bob9
        document.getElementById("termsmenulinka1").style.backgroundColor="#cccccc";
        document.getElementById("termsmenulinka2").style.backgroundColor="white";
        document.getElementById("termsmenulinka3").style.backgroundColor="white";
        }

 }




function disclaimer(){


   var bob9 = document.getElementById("disclaimer").style.display
              document.getElementById("website_terms_of_use").style.display="none"
              document.getElementById("privacy_policy").style.display="none"

        if (bob9=="block"){

        bob9="none";
        document.getElementById("disclaimer").style.display=bob9
        document.getElementById("termsmenulinka2").style.backgroundColor="white";
      

        
        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("disclaimer").style.display=bob9
        document.getElementById("termsmenulinka2").style.backgroundColor="#cccccc";
        document.getElementById("termsmenulinka1").style.backgroundColor="white";
        document.getElementById("termsmenulinka3").style.backgroundColor="white";
        }

 }



function privacypolicy(){


   var bob9 = document.getElementById("privacy_policy").style.display
              document.getElementById("website_terms_of_use").style.display="none"
              document.getElementById("disclaimer").style.display="none"

        if (bob9=="block"){

        bob9="none";
        document.getElementById("privacy_policy").style.display=bob9
        document.getElementById("termsmenulinka3").style.backgroundColor="white";
      

        
        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("privacy_policy").style.display=bob9
        document.getElementById("termsmenulinka3").style.backgroundColor="#cccccc";
        document.getElementById("termsmenulinka1").style.backgroundColor="white";
        document.getElementById("termsmenulinka2").style.backgroundColor="white";
        }

 }



function showsearch(){


    var bob9 = document.getElementById("searchbox").style.display
    

        if (bob9=="block"){

        bob9="none";
        document.getElementById("searchbox").style.display=bob9
        var bob29="http://www.flyingmoth.co.uk/images/link6.png";
        document.getElementById("searchopenlink").src=bob29
        document.getElementById("searchopenlink").title="Click to show search box";
        
        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("searchbox").style.display=bob9
        var bob29="http://www.flyingmoth.co.uk/images/link6b.png";
        document.getElementById("searchopenlink").src=bob29
        document.getElementById("searchopenlink").title="Click to hide search box";


        }

 }


function opencontactform(){


    var bob9 = document.getElementById("cf3").style.display
    

        if (bob9=="block"){

        bob9="none";
        document.getElementById("cf3").style.display=bob9
        var bob29="http://www.flyingmoth.co.uk/images/link5.png";
        document.getElementById("opencontactlink").src=bob29
        document.getElementById("opencontactlink").title="Click to show contact form";
        
        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("cf3").style.display=bob9
        var bob29="http://www.flyingmoth.co.uk/images/link5b.png";
        document.getElementById("opencontactlink").src=bob29
        document.getElementById("opencontactlink").title="Click to hide contact form";


        }

 }



function showquicklinksmap(){


    var bob9 = document.getElementById("map").style.display
    

        if (bob9=="block"){

        bob9="none";
        document.getElementById("map").style.display=bob9
     
        document.getElementById("quicklinkslink").title="Click to show quick links";
        document.getElementById("quicklinkslink").style.backgroundColor="#dddddd";


        } else if (bob9=="none") {

        bob9="block";
        document.getElementById("map").style.display=bob9
    
        document.getElementById("quicklinkslink").title="Click to hide quick links";
        document.getElementById("quicklinkslink").style.backgroundColor="#aaaaaa";

        }

 }

function closemap(){
document.getElementById("map").style.display="none"
document.getElementById("quicklinkslink").title="Click to show quick links";
document.getElementById("quicklinkslink").style.backgroundColor="#dddddd";
}


function webbizcard() {
var load = window.open('http://www.flyingmoth.co.uk/webbizcard/index.html','','scrollbars=1,menubar=0,height=455,width=668,resizable=0,toolbar=0,location=0,status=0,top=100,left=100');
}


 
function tellmetime()
{
var now=new Date();

var dah=now.getHours();
var min=now.getMinutes();
var sec=now.getSeconds();
var ofs=" ";

if (dah>=12)
    ofs="pm";
else
    ofs="am";

if (dah>=13)
    dah-=12;

if (dah==0)
 dah=12;

if (sec<10)
 sec="0"+sec;

if (min<10)
 min="0"+min;

document.getElementById('time').innerHTML=dah+":"+min+":"+sec+" "+ofs

setTimeout('tellmetime()',1000);

} 


function minimize_products_finder_widget(){

   

    var pfw = document.getElementById("fppw").style.display

     if (pfw=="block"){

        pfw="none";
        document.getElementById("fppw").style.display=pfw
       
        document.getElementById("productsmenu").style.display="none";
        document.getElementById("productsmenulink").src="http://www.flyingmoth.co.uk/images/products/productsboxtop_01.png";

        document.getElementById("prodwidgetml").title="click to show our products finder widget";

        
        } else if (pfw=="none") {

        pfw="block";
        document.getElementById("fppw").style.display=pfw
        
        document.getElementById("prodwidgetml").title="click to minimize our products finder widget";
        
        }


}

function close_products_finder_widget(){

   

    var products_widget = document.getElementById("products_widget").style.display

     if (products_widget=="block"){

        products_widget="none";
        document.getElementById("products_widget").style.display=products_widget
        document.getElementById("productsmenu").style.display="none";
        document.getElementById("productsmenulink").src="http://www.flyingmoth.co.uk/images/products/productsboxtop_01.png";

        
        } else if (products_widget=="none") {

        products_widget="block";
        document.getElementById("products_widget").style.display=products_widget
       
        
        }


}






