﻿// JScript 文件
function HuanDeng(pic,link,text)
{
    var focus_width=240;
    var focus_height=170;
    var text_height=22;
    var swf_height = focus_height+text_height;
    var pics=pic;
    var links=link;
    var texts=text;
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
    document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="Images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="cccccc">');
    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="Images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="ffffff" 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 alysxcfadmin(u,w,h,ADF,d,p){
if(!p)p=0;if(!d)d="xc"+Math.ceil(Math.random()*1000000);document.write("<div class='Pic_hengfu' id="+d+"></div>");
ADFHOST12783="../Images/touming.gif";
ADFCID12783=259;
ADFBID12783=12783;
var flash_fl08061809421017=1;
alysxc(u,w,h,p,d,ADFHOST12783,"1278308061809421017",0,0,ADF);}

function alysxcf(u,w,h,ADF,d,p){
if(!p)p=0;if(!d)d="xc"+Math.ceil(Math.random()*1000000);document.write("<div class='Pic_hengfu' id="+d+"></div>");
ADFHOST12783="Images/touming.gif";
ADFCID12783=259;
ADFBID12783=12783;
var flash_fl08061809421017=1;
alysxc(u,w,h,p,d,ADFHOST12783,"1278308061809421017",0,0,ADF);}

function alysxc(u,w,h,p,d,c,b,i,r,a){//2.0.3
var o=document.getElementById(d),ad;p=(!p)?'Transparent':'Opaque';
ad='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" WIDTH="'+w+'" HEIGHT="'+h+'"><PARAM NAME="movie" VALUE="'+u+'"><PARAM NAME="wmode" VALUE="'+p+'"><EMBED src="'+u+'" WIDTH="'+w+'" HEIGHT="'+h+'" WMODE="'+p+'" TYPE="application/x-shockwave-flash"></EMBED></OBJECT>';
o.innerHTML=(!i)?'<div style="POSITION:relative;Z-INDEX:1;width:'+w+'px;height:'+h+'px"><DIV style="POSITION:absolute;left:0;top:0;Z-INDEX:2;width:'+w+'px;height:'+h+'px">'+ad+'</div><a href="'+a+'" target="_blank"><IMG SRC="'+c+'" style="POSITION:absolute;left:'+((r)?r[3]:0)+'px;top:'+((r)?r[0]:0)+'px;Z-INDEX:3;width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px" border=0></a></div>':ad;
return d;}


var b_v = navigator.appVersion; 
var IE6 = b_v.search(/MSIE 6/i) != -1;
var IE7 = b_v.search(/MSIE 7/i) != -1; 
var IE8 = b_v.search(/MSIE 8/i) != -1; 

if (IE6) 
{ 
    document.getElementById("dhcss").href="CSS/daohang.css";
} 
else if (IE7) 
{ 
    document.getElementById("dhcss").href="CSS/daohang.css";
} 
else if (IE8) 
{ 

} 

function startmarquee(h,speed,delay,id){
	var t = null;
	var p = false;
	var o = document.getElementById(id);
	o.innerHTML += o.innerHTML;
	o.onmouseover = function(){p = true}
	o.onmouseout = function(){p = false}
	o.scrollTop = 0;
	function start(){
	    t = setInterval(scrolling,speed);
	    if(!p){
			o.scrollTop += 1;
		}
	}
	function scrolling(){
	    if(p) return;
		if(o.scrollTop % h != 0){
	        o.scrollTop += 1;
	        if(o.scrollTop >= o.scrollHeight/2) o.scrollTop = 0;
	    }
		else{
	        clearInterval(t);
	        setTimeout(start,delay);
	    }
	}
	setTimeout(start,delay);
}
