sfHover = function() {
var sfEls = document.getElementById("Nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover); 

function scroll(n)  
{a=n;  
	document.getElementById("scroller").scrollTop=document.getElementById("scroller").scrollTop+a;  
	if (a==0) return;  
	setTimeout("scroll(a)",80);  
}  
function scrollw(n)  
{b=n;  
	document.getElementById("scroller").scrollLeft=document.getElementById("scroller").scrollLeft+b;  
	if (b==0) return;  
	setTimeout("scrollw(b)",80);  
}  
var HasLoad=false;
function addHeightFD(){
	HasLoad=true;
var fd1=document.getElementById("footDiv");
var Eheight=document.documentElement.clientHeight;
if(fd1!=null&&fd1!=undefined)
{
	if(Eheight>document.body.clientHeight){
		fd1.style.height=(20+document.documentElement.clientHeight-document.body.clientHeight)+"px";
		}
}
}
window.attachEvent("onload", addHeightFD);

function addHFD()
{
	if(HasLoad){addHeightFD();}
	}
setInterval(addHFD,1000);
function setMPic(str)
{
	var mPro=document.getElementById("mProductShow");
	var bstr=str.replace("/m/","/b/");
	mPro.innerHTML="<a href=\"/flash/bigimg.swf?picsrc="+bstr+"&load=ok\" class=\"lightwindow page-options\" params=\"lightwindow_iframe_embed=true,lightwindow_width=940,lightwindow_height=600\" title=\"Product Show\"  ><img src='"+str+"'/></a>";
	lightwindowInit();
}

function setBPic(str)
{
	var mPro=document.getElementById("mProductShow");
	mPro.src=str;
}

function setCusShow(id,str){
	var mPro=document.getElementById("demoImg");
	mPro.src=str;
	var cusIntro=document.getElementById("cusintr"+id);
	var demoIntro=document.getElementById("demoIntro");
	demoIntro.innerHTML=cusIntro.value;
	
}

function setFlashShowUrl(url){
	var flashShowUrl=document.getElementById("flashShowUrl");
	flashShowUrl.href=url;
}
