function autoDivHeight(lname, rname, lx, rx){
	var l = $(lname), r = $(rname);
	var lheight = l.height();
	var rheight = r.height();
	
	var layoutHeight = Math.max(lheight, rheight);
	l.css("height",layoutHeight + lx+"px"); 
	r.css("height",layoutHeight + rx+"px"); 
}
//flash幻灯广告
var getFlashAdvs = function(xml,w,h,ofocus){
	var focus_width=w; //图片框的宽度 
	var focus_height=h; //图片框的高度 
	
	html = "";
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
	html += ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
	html += ' width="'+ focus_width +'" height="'+ focus_height +'">'; 
	html += '<param name="allowscriptAccess" value="sameDomain"><param name="movie" value="'+ofocus+'">';
	html += '<param name="quality" value="high"><param name="bgcolor" value="#F2F2F2">'; 
	html += '<param name="menu" value="false"><param name=wmode value="opaque">'; 
	html += '<param name="FlashVars" value="bcastr_xml_url='+xml+'">'; 
	html += '<embed src="'+ofocus+'" wmode="opaque" FlashVars="bcastr_xml_url='+xml+'" menu="false"';
	html += ' bgcolor="#F2F2F2" quality="high" width="'+ focus_width +'" height="'+ focus_height +'"'
	html += 'allowscriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	return html;
}

//FLV视频播放
function getFlv(w,h,t,f){
	var swf_width=w //445
	var swf_height=h //301
	var texts=t //'男左女右'
	var files=f//'http://www.yxgz.cn/Files/adminFiles/jzt/ok2_3.flv'
	
	//var files='http://www.ruochi.com/product/vcastr/flv/happy_feet.flv|http://www.transformersmovie.com/transformers_640.flv|http://www.ruochi.com/product/vcastr/flv/江南.flv|http://www.ruochi.com/product/vcastr/flv/晚安部落.flv'
	var strText = "";
	
	strText = strText+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
	strText = strText+'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+swf_height +'">';
	strText = strText+'<param name="movie" value="'+PUBLIC+'/flash/vcastr22/vcastr22.swf"><param name="quality" value="high">';
	strText = strText+'<param name="menu" value="false"><param name=wmode value="opaque"><param name="allowFullScreen" value="true" />';
	strText = strText+'<param name="FlashVars" value="vcastr_file='+files+'&vcastr_title='+texts+'&IsAutoPlay=0&IsContinue=0">';
	strText = strText+'<embed src="'+PUBLIC+'/flash/vcastr22/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&vcastr_title='+texts+'&IsAutoPlay=0&IsContinue=0"';
	strText = strText+' menu="false" wmode="opaque" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash"';
	strText = strText+' pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	
	return strText;
}
//微软将播放器
function getPlay(setWidth,setHeight,setUrl){
	var strText="<object title=\"视频播放\" align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"object\" id=\"MediaPlayer\" width="+setWidth+" height="+setHeight+">";
	strText = strText+"<param name=\"AUTOSTART\" value=\"true\"/>";
	strText = strText+"<param name=\"ShowStatusBar\" value=\"-1\"/>";
	strText = strText+"<param name=\"Filename\" value="+setUrl+">";
	strText = strText+"<param name=\"DisplaySize\" value=\"0\"> ";
	strText = strText+"<embed title=\"视频播放\" type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" flename=\"mp\" src="+setUrl+" >";
	strText = strText+"</embed>";
	strText = strText+"</object>";
	return strText;
}
