// JavaScript Document


//for browser styles				

// for menu images

function nimg(nimgs)
{
var imgtag1="<img src='images/";
var imgtag2="' height='118' width='252' border='0' hspace='10' />";
var imgtag=imgtag1 + nimgs + imgtag2;

document.getElementById("div1").style.display="block";
document.getElementById("div1").innerHTML=imgtag;
}


/// for the scroller function



function rightarrowover()
{
document.rightarrow.src="images/right_arrow_red.gif";
}
function rightarrowout()
{
document.rightarrow.src="images/right_arrow_grey.gif";
}
function leftarrowover()
{
document.leftarrow.src="images/left_arrow_red.gif";
}
function leftarrowout()
{
document.leftarrow.src="images/left_arrow_grey.gif";
}
	
	
// leftnavigation


function lcontent(secondlvlmenu)
{
divcount=document.getElementById("leftnavi").getElementsByTagName("div").length;

for(u=1;u<divcount+1;u++)
{
var m="submenu"+u;
document.getElementById(m).style.display="none";
}
document.getElementById(secondlvlmenu).style.display="block";

}	

function secondlcontent(secondlvlmenu)
{
var p;
for(p=1;p<36;p++)
{

var m="secndlvlsubmenu"+p;
document.getElementById(m).style.display="none";
}

document.getElementById(secondlvlmenu).style.display="block";
document.getElementById("leftnav").style.height="820px";
}

function secondlcontent1(secondlvlmenu)
{
var p;
for(p=1;p<1;p++)
{

var m="secndlvlsubmenu"+p;
document.getElementById(m).style.display="none";
}

document.getElementById(secondlvlmenu).style.display="block";
document.getElementById("leftnav").style.height="820px";
}



function productdetails(menudetail,imgdetail,n)
{


var fhead="head"+n;
var markarrow="arrow"+n;
var newbg="mouseover"+n;
if(document.getElementById(menudetail).style.display=="none")
{
for(t=1;t<16;t++)
{
var md="prod"+t;
var imgid="imgprod"+t;
var fonthead="head"+t;
var marrow="arrow"+t
var bg="mouseover"+t

document.getElementById(md).style.display="none";
document.getElementById(imgid).innerHTML="<img src='images/open.gif' />";
document.getElementById(fonthead).className="prodheadingblock"
document.getElementById(marrow).src="images/orangearrow.gif";
document.getElementById(bg).style.backgroundColor="#FFFFFF";
document.getElementById(bg).style.cursor="hand";
document.getElementById(bg).style.cursor="pointer";
if(n==1)
{
javascript:tabSwitch_2(1, 3, 'tab_', 'content_');
}
if(n==2)
{
javascript:tabSwitch_2(4, 5, 'tab_', 'content_');
}
if(n==3)
{
javascript:tabSwitch_2(6, 8, 'tab_', 'content_');
}
if(n==4)
{
javascript:tabSwitch_2(9, 10, 'tab_', 'content_');
}
if(n==5)
{
javascript:tabSwitch_2(11, 12, 'tab_', 'content_');
}
if(n==6)
{
javascript:tabSwitch_2(13, 14, 'tab_', 'content_');
}
if(n==7)
{
javascript:tabSwitch_2(15, 17, 'tab_', 'content_');
}
if(n==8)
{
javascript:tabSwitch_2(18, 20, 'tab_', 'content_');
}
if(n==9)
{
javascript:tabSwitch_2(21, 22, 'tab_', 'content_');
}

if(n==10)
{
javascript:tabSwitch_2(23, 24, 'tab_', 'content_');
}

if(n==11)
{
javascript:tabSwitch_2(25, 26, 'tab_', 'content_');
}


if(n==12)
{
javascript:tabSwitch_2(27, 29, 'tab_', 'content_');
}

if(n==13)
{
javascript:tabSwitch_2(30, 31, 'tab_', 'content_');
}

if(n==14)
{
javascript:tabSwitch_2(32, 33, 'tab_', 'content_');
}

if(n==15)
{
javascript:tabSwitch_2(34, 35, 'tab_', 'content_');
}

}

document.getElementById(menudetail).style.display="block";
document.getElementById(imgdetail).innerHTML="<img  src='images/close.gif' />";
document.getElementById(fhead).className="prodheadingblockactive";
document.getElementById(markarrow).src="images/dorangearrow.gif";
document.getElementById(newbg).style.backgroundColor="#F0F0F0";
document.getElementById(newbg).style.cursor="hand";
document.getElementById(newbg).style.cursor="pointer";





}
else{

document.getElementById(menudetail).style.display="none";
document.getElementById(imgdetail).innerHTML="<img  src='images/open.gif' />";
document.getElementById(fhead).className="prodheadingblock"
document.getElementById(markarrow).src="images/orangearrow.gif";
document.getElementById(newbg).style.backgroundColor="#FFFFFF";
document.getElementById(newbg).style.cursor="hand";
document.getElementById(newbg).style.cursor="pointer";
}
}	


function defaultloader()
{
for(t=1;t<16;t++)
{
var bg="mouseover"+t
document.getElementById(bg).style.cursor="hand";
document.getElementById(bg).style.cursor="pointer";
}
}


function tabSwitch_2(active, number, tab_prefix, content_prefix) {   

    for (var i=1; i < number+1; i++) {   
      document.getElementById(content_prefix+i).style.display = 'none';   
      document.getElementById(tab_prefix+i).className = '';   
    }   
    document.getElementById(content_prefix+active).style.display = 'block';   
    document.getElementById(tab_prefix+active).className = 'active';       
       var tabval=tab_prefix+active;
	if(tabval=="tab_1")
	{    
	document.getElementById("ietopline").style.marginLeft="0px";
	document.getElementById("ietopline").style.width="77px";
     }  
	if(tabval=="tab_2")
	{    
	document.getElementById("ietopline").style.marginLeft="78px";
	document.getElementById("ietopline").style.width="77px";
     }  
	 if(tabval=="tab_3")
	{    
	document.getElementById("ietopline").style.marginLeft="156px";
	document.getElementById("ietopline").style.width="90px";
     }  
	 
	
	if(tabval=="tab_4")
	{    
	document.getElementById("ietopline1").style.marginLeft="0px";
	document.getElementById("ietopline1").style.width="77px";
     }  
	if(tabval=="tab_5")
	{    
	document.getElementById("ietopline1").style.marginLeft="78px";
	document.getElementById("ietopline1").style.width="90px";
     }  
	
	if(tabval=="tab_6")
	{    
	document.getElementById("ietopline2").style.marginLeft="0px";
	document.getElementById("ietopline2").style.width="77px";
     }  
	if(tabval=="tab_7")
	{    
	document.getElementById("ietopline2").style.marginLeft="78px";
	document.getElementById("ietopline2").style.width="77px";
     }  
		 if(tabval=="tab_8")
	{    
	document.getElementById("ietopline2").style.marginLeft="156px";
	document.getElementById("ietopline2").style.width="90px";
     }  
	 if(tabval=="tab_9")
	{    
	document.getElementById("ietopline3").style.marginLeft="0px";
	document.getElementById("ietopline3").style.width="77px";
     }  
	if(tabval=="tab_10")
	{    
	document.getElementById("ietopline3").style.marginLeft="78px";
	document.getElementById("ietopline3").style.width="90px";
     }  
	 
	 if(tabval=="tab_11")
	{    
	document.getElementById("ietopline4").style.marginLeft="0px";
	document.getElementById("ietopline4").style.width="77px";
     }  
	if(tabval=="tab_12")
	{    
	document.getElementById("ietopline4").style.marginLeft="78px";
	document.getElementById("ietopline4").style.width="90px";
     }
	  if(tabval=="tab_13")
	{    
	document.getElementById("ietopline5").style.marginLeft="0px";
	document.getElementById("ietopline5").style.width="77px";
     }  
	if(tabval=="tab_14")
	{    
	document.getElementById("ietopline5").style.marginLeft="78px";
	document.getElementById("ietopline5").style.width="90px";
     }
	 
	   if(tabval=="tab_15")
	{    
	document.getElementById("ietopline6").style.marginLeft="0px";
	document.getElementById("ietopline6").style.width="77px";
     }  
	if(tabval=="tab_16")
	{    
	document.getElementById("ietopline6").style.marginLeft="78px";
	document.getElementById("ietopline6").style.width="77px";
     }
	 	 if(tabval=="tab_17")
	{    
	document.getElementById("ietopline6").style.marginLeft="156px";
	document.getElementById("ietopline6").style.width="90px";
     }  
	 
	    if(tabval=="tab_18")
	{    
	document.getElementById("ietopline7").style.marginLeft="0px";
	document.getElementById("ietopline7").style.width="77px";
     }  
	if(tabval=="tab_19")
	{    
	document.getElementById("ietopline7").style.marginLeft="78px";
	document.getElementById("ietopline7").style.width="77px";
     }
	 	 if(tabval=="tab_20")
	{    
	document.getElementById("ietopline7").style.marginLeft="156px";
	document.getElementById("ietopline7").style.width="90px";
     } 
	 
	    if(tabval=="tab_21")
	{    
	document.getElementById("ietopline8").style.marginLeft="0px";
	document.getElementById("ietopline8").style.width="77px";
     }  
	if(tabval=="tab_22")
	{    
	document.getElementById("ietopline8").style.marginLeft="78px";
	document.getElementById("ietopline8").style.width="90px";
     }
	 
	     if(tabval=="tab_23")
	{    
	document.getElementById("ietopline9").style.marginLeft="0px";
	document.getElementById("ietopline9").style.width="77px";
     }  
	if(tabval=="tab_24")
	{    
	document.getElementById("ietopline9").style.marginLeft="78px";
	document.getElementById("ietopline9").style.width="90px";
     }
	      if(tabval=="tab_25")
	{    
	document.getElementById("ietopline10").style.marginLeft="0px";
	document.getElementById("ietopline10").style.width="77px";
     }  
	if(tabval=="tab_26")
	{    
	document.getElementById("ietopline10").style.marginLeft="78px";
	document.getElementById("ietopline10").style.width="90px";
     }
	       if(tabval=="tab_27")
	{    
	document.getElementById("ietopline11").style.marginLeft="0px";
	document.getElementById("ietopline11").style.width="77px";
     }  
	if(tabval=="tab_28")
	{    
	document.getElementById("ietopline11").style.marginLeft="78px";
	document.getElementById("ietopline11").style.width="90px";
     }
	 	 if(tabval=="tab_29")
	{    
	document.getElementById("ietopline11").style.marginLeft="156px";
	document.getElementById("ietopline11").style.width="75px";
     } 
	 
	        if(tabval=="tab_30")
	{    
	document.getElementById("ietopline12").style.marginLeft="0px";
	document.getElementById("ietopline12").style.width="77px";
     }  
	if(tabval=="tab_31")
	{    
	document.getElementById("ietopline12").style.marginLeft="78px";
	document.getElementById("ietopline12").style.width="90px";
     }
	 
	         if(tabval=="tab_32")
	{    
	document.getElementById("ietopline13").style.marginLeft="0px";
	document.getElementById("ietopline13").style.width="77px";
     }  
	if(tabval=="tab_33")
	{    
	document.getElementById("ietopline13").style.marginLeft="78px";
	document.getElementById("ietopline13").style.width="90px";
     }
	 
	         if(tabval=="tab_34")
	{    
	document.getElementById("ietopline14").style.marginLeft="0px";
	document.getElementById("ietopline14").style.width="77px";
     }  
	if(tabval=="tab_35")
	{    
	document.getElementById("ietopline14").style.marginLeft="78px";
	document.getElementById("ietopline14").style.width="90px";
     }
	 
} 


//Left Nav menu

$(document).ready(function(){
  $(".sublnk").click(function(){
		$("div.sublevel1").hide();	//hide all sub menu						 
 	 	$(this).next().show(); //show current menu
		$("ul.sublevel2").hide();	//hide all second levelsub menu	
		
		 $(".sublnk").css('color', '#666666'); // default color main level
		  $(".sublnk1").css('color', '#666666'); // default color first level
		  $(".sublnk2").css('color', '#666666'); // default color second level
		$(this).css('color', '#d71920'); // selected color
		
	});
  
   $(".sublnk1").click(function(){
		$("ul.sublevel2").hide();	//hide all second level sub menu						 
 	 	$(this).next().show(); //show current menu
		$(this).css('color', '#d71920'); // selected color
	});
   
   $(".sublnk2").click(function(){
		 $(".sublnk2").css('color', '#666666'); // default color second level
		$(this).css('color', '#d71920'); // selected color
	});
});






		
function popopen(popimg,contenttxt)
{
document.getElementById("popupcontent").style.display="block";
document.popupimage.src="images/"+popimg+".jpg";
document.popupimage.alt=popimg;
document.getElementById("popcontent").innerText=contenttxt;
document.getElementById("gebname").innerText=popimg;
}

function popclose()
{
document.getElementById("popupcontent").style.display="none";
}

