function writeFlash(idad, swfurl, wad, had, vs){
		var str = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + wad + "' height='" + had + "' id='" + idad + "' align='middle'>";
		str += "<param name='allowScriptAccess' value='always'>";
		str += "<param name='quality' value='high'>";
		str += "<param name='wmode' value='transparent'>";
		str += "<param name='movie' value='" + swfurl + "'>";
		str += "<param name='flashvars' value='" + vs + "'>";
		str += "<embed src='" + swfurl + "' flashvars='" + vs + "' quality='high' wmode='transparent' width='" + wad + "' height='" + had + "' name='" + idad + "' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
		str += "</object>";
		document.write(str);
}
function getXML(){
	return "<?xml version='1.0' encoding='utf-8'?><root>" +
			"<list pic='/images/roll/1.gif' title='计算机软件著作权登记证书'  url='/images/roll/1.jpg' target='_blank'/>" +
			"<list pic='/images/roll/2.gif' title='博克智能制鞋CAD系统证书' url='/images/roll/2.jpg' target='_blank'/>" +
			"<list pic='/images/roll/3.gif' title='博克智能内衣CAD系统证书' url='/images/roll/3.jpg' target='_blank'/>" +
			"<list pic='/images/roll/4.gif' title='博克智能箱包皮具CAD系统证书' url='/images/roll/4.jpg' target='_blank'/>" +
			"<list pic='/images/roll/5.gif' title='质量信得过产品证书' url='/images/roll/5.jpg' target='_blank'/>" +
			"<list pic='/images/roll/6.gif' title='中国著名品牌证书' url='/images/roll/6.jpg' target='_blank'/>" +
			"<list pic='/images/roll/7.gif' title='国家级高新技术企业' url='/images/roll/7.jpg' target='_blank'/>" +
			"<list pic='/images/roll/8.gif' title='计算机软件著作权登记证书' url='/images/roll/8.jpg' target='_blank'/>" +
			"<list pic='/images/roll/9.gif' title='软件企业认定证书' url='/images/roll/9.jpg' target='_blank'/>" +
			"</root>";
}

function tips_pop(){
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);//将对象的高度转化为数字
   if (popH==0){
   MsgPop.style.display="block";//显示隐藏的窗口
show=setInterval("changeH('up')",2);
   }
else { 
   hide=setInterval("changeH('down')",2);
}
}
function changeH(str) {
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);
if(str=="up"){
if (popH<=500){//高度
MsgPop.style.height=(popH+30).toString()+"px";
}
else{ 
clearInterval(show);
}
}
if(str=="down"){ 
if (popH>=500){ 
MsgPop.style.height=(popH-30).toString()+"px";
}
else{ 
clearInterval(hide);   
MsgPop.style.display="none"; //隐藏DIV
}
}
}
window.onload=function(){//加载
document.getElementById('winpop').style.height='0px';
setTimeout("tips_pop()",200);//3秒后调用tips_pop()这个函数
var tt=document.documentElement.clientHeight-500;//离底部距离
new couplet("winpop",tt,-1); 
//alert(document.documentElement.clientHeight);
}

function couplet(){ 
if(arguments.length>=1) this.objID = document.getElementById(arguments[0]); 
if(arguments.length>=2) this.divTop = arguments[1]; 
if(arguments.length>=3) this.divPlane = arguments[2]; 
if(arguments.length>=4) this.scrollDelay = arguments[4]; 
if(arguments.length>=5) this.waitTime = arguments[5]; 
if(!this.objID){ 
alert("对象名【"+ arguments[0] +"】无效，对联无法初始化，请检查对象名称是否正确！"); 
this.objID = null; return; 
}else{ 
this.objID.style.position="absolute"; 
this.objID.style.display="block"; 
this.objID.style.zIndex=9999; 
} 
if("" == this.objID.style.top){ 
if(isNaN(this.divTop)){ 
alert("对象垂直位置(top)参数必须为数字。"); return; 
}else{ 
this.objID.style.top = this.divTop+"px"; 
} 
} 
if("" == this.objID.style.left && "" == this.objID.style.right){ 
if(isNaN(this.divPlane)){ 
alert("对象水平位置(left||right)参数必须为数字。"); return; 
} 
if(this.divPlane>0) this.objID.style.left = this.divPlane+"px"; 
if(this.divPlane<0) this.objID.style.right = Math.abs(this.divPlane)+"px"; 
} 
if(this.scrollDelay<15 || isNaN(this.scrollDelay)) this.scrollDelay = 15; 
if(this.waitTime<500 || isNaN(this.waitTime)) this.waitTime = 500; 
if(arguments.length>=1) this.start(); 
} 
couplet.prototype.start = function(){ 
if(null == this.objID) return; 
var objCouplet = this; 
timer = this.scrollDelay; 
objCouplet.lastScrollY = 0; 
objCouplet.timerID = null; 
objCouplet.startID = function(){ 
if("block" == objCouplet.objID.style.display){ 
objCouplet.run(); 
}else{ 
clearInterval(objCouplet.timerID); 
} 
} 
objCouplet.Begin = function(){ 
objCouplet.timerID = setInterval(objCouplet.startID,timer); 
}

setTimeout(objCouplet.Begin,this.waitTime); 
} 
couplet.prototype.run = function(){ 
if(document.documentElement && document.documentElement.scrollTop){ 
uu_scrY = parseFloat(document.documentElement.scrollTop); 
}else if(document.body){ 
uu_scrY = parseFloat(document.body.scrollTop); 
} 
uu_divX = parseFloat(this.objID.style.top.replace("px","")); 
uu_curTop = .1 * (uu_scrY - this.lastScrollY); 
uu_curTop = uu_curTop>0?Math.ceil(uu_curTop):Math.floor(uu_curTop); 
this.objID.style.top = parseFloat(uu_divX + uu_curTop) + "px"; 
this.lastScrollY += uu_curTop; 
}
/*window.open ("ad.html", "newwindow", "height=300, width=400,right:0,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")*/
