function sel(obj){
	var SHOW=(window.navigator.userAgent.toLowerCase().indexOf("msie")==-1)?"table-row":"block";
	var HIDE="none";
	var o=findObj("p"+obj);
	var s=findObj(obj);
	var h,b;
	var c="current";

	if(o!=null){
		o.style.display=SHOW;
	}

	if(s!=null)	s.className=c;

	for(var oTab in infoTabs){
		h=findObj("p"+infoTabs[oTab]);
		if(h!=null && h!=o)
			h.style.display=HIDE;
		b=findObj(infoTabs[oTab]);
		if(b!=null && b!=s)
			b.className="";
	}

}

function showZoomPic(e){
	var obj;
	obj=findObj("zoom");
	if(obj==null)return;
	obj.style.display=(e)?"block":"none";
}

function findObj(id){
	if(document.getElementById)return document.getElementById(id);
	if(document.all)return document.all[id];
	if(document.layers)return document.layers[id];
	return null
}
function submitSearch(sform,s)
{
	var obj=sform["q"];
	if(obj.value.replace(/\ /ig,"")=="")
	{
		if(s!="")alert(s);
		obj.select();
		return false;
	}
	return true;
}
function writeflash(objId,width,height,url)
{
var obj=findObj(objId);
if(!obj)return;
if(url.replace(/\ /ig,"")==""||url.indexOf(".swf")==-1)return;

var s="";
s+='\n<object class="objFlash" align="top" ';
s+='\n id="'+objId+'_flash" ';//id
if(!isNaN(width))
	s+='\n	width="'+width+'"';
if(!isNaN(height))
	s+='\n	height="'+height+'" ';
else
	s+='\n	height="100%" ';
s+='\n	classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  ';
s+='\n	codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,0,0"> ';
s+='\n<param name="allowScriptAccess" value="sameDomain" \/> ';
s+='\n<param name="movie"	value="'+url+'" \/> ';
s+='\n<param name="menu"	value="false" \/> ';
s+='\n<param name="quality"	value="high" \/> ';
s+='\n<param name="scale"	value="noscale" \/> ';
s+='\n<param name="salign"	value="lt" \/> ';
s+='\n<param name="wmode"	value="transparent" \/> ';
s+='\n<param name="devicefont"	value="true" \/> ';
s+='\n<param name="bgcolor"	value="#ffffff" \/> ';
s+='\n';
s+='\n<embed src="'+url+'" ';
if(!isNaN(width))	s+='\n	width="'+width+'"';
if(!isNaN(height))	s+='\n	height="'+height+'" ';
s+='\n	menu="false" quality="high" ';
s+='\n	scale="noscale"';
s+='\n  wmode="transparent" ';
s+='\n	devicefont="true" bgcolor="#ffffff" ';
s+='\n	name="objFlash" align="top" salign="lt" ';
s+='\n	allowScriptAccess="sameDomain" ';
s+='\n	type="application\/x-shockwave-flash" ';
s+='\n	pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" />';
s+='\n<\/object>';

obj.innerHTML=s;

}
//Confirm Exit Site
function ces(url)
{
	var msg="You are now leaving the W2 Lighting website and entering a third party site. W2 Lighting is not responsible for the content presented by a third party website, including advertising claims, special offers, illustrations, names or endorsements. Thank you for visiting waclighting.com. Click \"OK\" to continue.";
	var cf=confirm(msg);
	if(!cf)return;
	var e=open(url);
}
