flag=1;
function showSchedule(no,t)
{	
	flag=no;
	for(i=0,j=1;i<t;i++,j++)
	{	//alert(t);
		document.getElementById('xyz' + j).style.display='none';
		document.getElementById('img'+ j).src=normalimages[i];
		//alert(document.getElementById('img'+ j).src);
		
	}
		document.getElementById('xyz' + no).style.display='block';
		document.getElementById('img'+ no).src = boldimages[no-1];
}


function overlay_close()
{
document.getElementById('back').style.display = 'none';
}

var boldimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
boldimages[0]=["http://www.gulfoilindia.com/images/neat_cutting_oils_b.gif"]
boldimages[1]=["http://www.gulfoilindia.com/images/soluble_cutting_oils_b.gif"] 
boldimages[2]=["http://www.gulfoilindia.com/images/honing_oils_b.gif"] 


var normalimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
normalimages[0]=["http://www.gulfoilindia.com/images/neat_cutting_oils.gif"] 
normalimages[1]=["http://www.gulfoilindia.com/images/soluble_cutting_oils.gif"] 
normalimages[2]=["http://www.gulfoilindia.com/images/honing_oils.gif"] 

function hide_bold(n,t)
{
	
		for(i=0,j=1;i<t;i++,j++)
		{
			if(i==flag-1)
			{
				continue;
			}
			document.getElementById('img'+j).src=normalimages[i];
			//alert("aaa");
		}
		document.getElementById('img'+n).src=boldimages[n-1];

	

}
function img_normal(n,t)
{	
	for(i=0,j=1;i<t;i++,j++)
	{
		if(i==flag-1)
		{
			continue;
		}
		document.getElementById('img'+j).src=normalimages[i];
	}
	
	
}















function showproductnew()
{
	if(document.URL.toString().indexOf('=') != "-1")
	{
       
		var gulfcutc= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcuta= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcutAn= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcutsa= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcutmetal= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		
		var metsilc= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var metsilz= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfmetsilzz= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcutb= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcutd= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcutg= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var gulfcutm= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		
		var gulfcuthh= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		
		var gulfsoluble= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		
		var gulfhining= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		
		
		if(gulfcutc=="true111")
		{
			//alert('hiiiiiiiiiiiii');
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(2,6);
		}
		
		else
		
		if(gulfcuta=="true1111")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(3,6);
		}
		else
		if(gulfcutAn=="true11111")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(4,6);
		}
		
		else
		if(gulfcutsa=="true13")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(5,6);
		}
		else
		
		if(gulfcutmetal=="true12")
		{
			
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(6,6);
		}
		else
		
		if(metsilc=="true14")
		{
			
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(2,8);
		}
		else
		if(metsilz=="true15")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(3,8);
		}
		
		else
		
		if(gulfmetsilzz=="true16")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(4,8);
		}
		else
		
		if(gulfcutb=="true17")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(5,8);
		}
		else
		
		if(gulfcutd=="true18")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(6,8);
		}
		else
		
		if(gulfcutg=="true19")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(7,8);
		}
		else
		
		if(gulfcutm=="true20")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(8,8);
		}
		else
		
		if(gulfcuthh=="true22222")
		{
			
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showtab(2,2);
		}
		else
		if(gulfsoluble=="true21")
		{
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showSchedule(2,3);
		}
		else
		
		if(gulfhining=="true23")
		{
			
			//alert("pls check url of page ") //if u reomve this comment u  understand that first menu page is loaded after that wine tab is showing
			showSchedule(3,3);
		}
		
		else
		{	
			alert("Error");
		}
	}

}
