//var n=0;
//
//var changenum=5;
//
//function Mea(value){
//	n=value;
//	setBg(value);
//	plays(value);
//	}
//function setBg(value){
//	for(var i=0;i<changenum;i++){
//		document.getElementById("hd"+i+"").background="images/index/jdtmenu.gif";
//		document.getElementById("hd"+i+"").className="bbg0";
//		}
//		document.getElementById("hd"+value+"").background="http://img.shangjie.biz/index/images/1jdtmenu.gif";
//		
//	    document.getElementById("hd"+value+"").className="bbg1";
//	} 
//function plays(value){
//	with (fi){
//		filters[0].Apply();
//		for(i=0;i<changenum;i++)i==value?children[i].style.display="block":children[i].style.display="none"; 
//		filters[0].play(); 		
//		}
//}
//function clearAuto(){clearInterval(autoStart)}
//function setAuto(){autoStart=setInterval("auto(n)", 4000)}
//function auto(){
//	n++;
//	if(n>4)n=0;
//	Mea(n);
//} 
//setAuto(); 
//

function displayIMG(focus_width,focus_height,text_height,swf_height,pics,links,texts)
       {    
       
 document.write('<object 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="/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
 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 src="/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" 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>');
 }
 
