// JavaScript Document
window.onload=home_;
function home_(){
	
	ajaxpage('Top_Band.html','Logo');
	ajaxpage('Links.html','Links');
	
	ajaxpage('electronics/electronics.html','ele');
	ajaxpage('temperature/temperature.html','tempsen');
	ajaxpage('terminals/terminals.html','terminal');
	ajaxpage('miniature/miniature.html','miniat');
	ajaxpage('power_cable/power_cable.html','powercm');
	ajaxpage('Flash.html','Flash');
	setTimeout('vih("bgg");',3000);
	}
	
function tb()
{
	ajaxpage('Top_Band.html','Logo');
	
}

function pls()
{
	ajaxpage('Links.html','Links');
	ajaxpage('product_links.html','products');	
}

function about_us()
{
	tb();
	ajaxpage('about_us.html','ic');
	setTimeout('pls();',100)
}

function contact_us()
{
	tb();
	ajaxpage('contact_us.html','ic');	
	setTimeout('pls();',100)
}
	
function news()
{
	tb();
	ajaxpage('news.html','ic');
	setTimeout('pls();',100)
}
	
function certificate()
{
	tb();
	ajaxpage('ceerrtificate.html','ic');
	setTimeout('pls();',100)
}
	
function global_links()
{
	tb();
	ajaxpage('content.html','ic');
	setTimeout('pls();',100)
}

function ipc(chtm,cid,lhtm,clid)
{
	global_links();
	ajaxpage(lhtm+"/"+chtm+'.html',cid);
	ajaxpage(lhtm+"/"+lhtm+'.html',clid);
	//ajaxpage('uc.html',cid);
}


function sblnks(htm,cid,incl)
{
	
	ajaxpage(htm+"/"+htm+'.html',cid);
	document.getElementById(cid).style.height="420px";
	document.getElementById(incl).innerHTML="";
}



function under()
{
	
	var a = document.getElementById("content");
		a.style.height="500px";
		a.innerHTML="<b class='cr' style='padding:15px; font-size:14px;'>This page in under construction</b>";
	}
	
	
var vhx=1;

function vh(ciid)
{
	if(vhx == 1){
	document.getElementById(ciid).style.display="none";
	vhx=0;
	}
	else if(vhx==0)
	{
		document.getElementById(ciid).style.display="block";
		vhx=1;
	}
}

	
function vih(ciid)
{
	document.getElementById(ciid).style.display="none";
}

