//轮播的JS代码
var display_style = 'lunbo';
var display_element_id = 'wauee_'+display_style


var width = wauee_width;
var height = wauee_height;
var mid = wauee_mid;
var channel = wauee_channel;
var extra = wauee_extra;

resource_url = slideimages.shift();

slideimages.push(resource_url);

function WaueeReplaceStr(str){
	str=str.replace(/\$\{width\}/g,width);
	str=str.replace(/\$\%7Bwidth\%7D/g,width);
	
		str=str.replace(/\$\{height\}/g,height);
	str=str.replace(/\$\%7Bheight\%7D/g,height);
	
	str=str.replace(/\$\{mid\}/g,mid);
	str=str.replace(/\$\%7Bmid\%7D/g,mid);
	
	str=str.replace(/\$\{channel\}/g,channel);
	str=str.replace(/\$\%7Bchannel\%7D/g,channel);

	str=str.replace(/\$\{extra\}/g,extra);
	str=str.replace(/\$\%7Bextra\%7D/g,extra);
	
		str=str.replace(/\$\{resource_url\}/g,resource_url);
	str=str.replace(/\$\%7Bresource_url\%7D/g,resource_url);
return str;
}

			codeHtml = [];
			codeHtml.push('<div id="wauee_lunbo" style="height:${height};width:${width};overflow:hidden;">');
			codeHtml.push('<iframe width="${width}" scrolling="no" height="${height}" frameborder="0" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0" src="${resource_url}?mid=${mid}&channel=${channel}&extra=${extra}" name="wauee"></iframe>');
			
			codeHtml.push("</div>");
			codestr = codeHtml.join("");
			codestr = WaueeReplaceStr(codestr);
			document.writeln(codestr);



function ratation() {
  
   resource_url = slideimages.shift();
   slideimages.push(resource_url);
   ele = document.getElementById("wauee_lunbo");
   rethtml = '<iframe width="${width}" scrolling="no" height="${height}" frameborder="0" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0" src="${resource_url}?mid=${mid}&channel=${channel}&extra=${extra}" name="wauee"></iframe>'
   codestr = WaueeReplaceStr(rethtml);
   ele.innerHTML = codestr;
	
}

setInterval("ratation()",slidespeed);


  				

