function MarqueeUpB()
{
	var speedB=80;
	demoB2.innerHTML=demoB1.innerHTML
	function MarqueeB()
	{
	 if(demoB2.offsetTop-demoB.scrollTop<=0)
	  demoB.scrollTop-=demoB1.offsetHeight;
	 else
	  demoB.scrollTop++;
	}
	var MyMarB=setInterval(MarqueeB,speedB)
	demoB.onmouseover=function() {clearInterval(MyMarB)}
	demoB.onmouseout=function() {MyMarB=setInterval(MarqueeB,speedB)}
}

function ShowTabs(a,b,c,d) {
		var i;
        for (i = 0; i < b; i++) {
            if (i == a) {
               	document.getElementById("tit" + c + i).className = "over";
				document.getElementById("txt" + c + i).className = "show";
            }
            else {
               	document.getElementById("tit" + c + i).className = "";
				document.getElementById("txt" + c + i).className = "hidden";
            }
        }
    }
	
	
	
function banner(width,height,pics,links,texts) { //v2.0
	var focus_width=width
	var focus_height=height
	var text_height=0
	var swf_height = focus_height+text_height

var pics=pics
var links=links
var texts=texts
	
	document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#E7E7E7">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
	document.write('<embed ID="focus_flash" src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#E7E7E7" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');		document.write('</object>');
}


function overProCat(tyle,i) {
		var tyle;
		var i;
		if(tyle=="over"){
			document.getElementById("proCat"+i).className = "proCat overCat";
		}else{
			document.getElementById("proCat"+i).className = "proCat";
		}

    }
