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/processing_oil_b.gif"]
boldimages[1]=["http://www.gulfoilindia.com/images/thermic_fluid_b.gif"] 
boldimages[2]=["http://www.gulfoilindia.com/images/transformer_oil_b.gif"] 
boldimages[3]=["http://www.gulfoilindia.com/images/rust_preventives_b.gif"] 

var normalimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
normalimages[0]=["http://www.gulfoilindia.com/images/processing_oil.gif"] 
normalimages[1]=["http://www.gulfoilindia.com/images/thermic_fluid.gif"] 
normalimages[2]=["http://www.gulfoilindia.com/images/transformer_oil.gif"] 
normalimages[3]=["http://www.gulfoilindia.com/images/rust_preventives.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 showwine()
{
	if(document.URL.toString().indexOf('=') != "-1")
	{
       	var Thremic= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var Transformer= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		var Rust= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		
	

		
		if(Thremic=="true")
		{
			//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,4);
		}
		
		else
		if(Transformer=="true11")
		{
			//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,4);
		}
		
		else
		if(Rust=="true111")
		{
			//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(4,4);
		}
		
		else
		
		{	
			alert("Error");
		}
	}

}
