function insertFlash(elm, url, w, h) {
if (!document.getElementById(elm)) return;
var str='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ w +'" height="'+ h +'"><param name="movie" value="'+ url +'" /><param name="quality" value="high" /><embed src="'+ url +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ w +'" height="'+ h +'"></embed></object>';
document.getElementById(elm).innerHTML = str;
}
function tmFlash(elm, url, w, h) {
if (!document.getElementById(elm)) return;
var str='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ w +'" height="'+ h +'"><param name="movie" value="'+ url +'" /><param name="quality" value="high" /><param name="wmode" value="transparent"><embed src="'+ url +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ w +'" height="'+ h +'"></embed></object>';
document.getElementById(elm).innerHTML = str;
}

function insertflv(elm, files, swf_width, swf_height, filesnum) {
if (!document.getElementById(elm)) return;
//files='http://auto.bfb100.com:8000/flv/bfb100.flv|'+files;
var str='<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="'+ swf_width +'" height="'+ swf_height +'"><param name="movie" value="http://auto.bfb100.com/news/vcastr22.swf"><param name="quality" value="high"><param name="menu" value="false"><param name="allowFullScreen" value="true"><param name="FlashVars" value="vcastr_file='+files+'&IsAutoPlay=1&DefaultVolume=100&IsShowBar=1&BarColor=0xFF6600&IsContinue=1"><embed src="http://auto.bfb100.com/news/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&IsAutoPlay=1&DefaultVolume=100&IsShowBar=1&BarColor=0xFF6600&IsContinue=1" menu="false"  quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
document.getElementById(elm).innerHTML = str;
filesnumtext=filesnum+100;
filesnumwmv=filesnum+1000;
if(filesnum==22){
  Movie_title.innerHTML="大灾无情　大爱无疆";}
else{
  if(filesnum>=55){
    Movie_title.innerHTML="<a href='http://auto.bfb100.com:8000/flv/"+filesnumwmv+".flv' title='下载视频:请使用右击->目标另存为'  target='_blank'>车坛百分百"+filesnumtext+"期[节目下载]</a>";}
  else{
    Movie_title.innerHTML="<a href='http://auto.bfb100.com/jiemu/zhujiang/"+filesnumwmv+".wmv' title='下载视频:请使用右击->目标另存为'  target='_blank'>车坛百分百"+filesnumtext+"期[节目下载]</a>";}}
for (i = 135; i < 1000; i++){
elmobj="flvimg"+i;
  if (i == filesnum){
    document.getElementById(elmobj).src = "/movie/article_elite3.gif";
	}
  else{
    if (document.getElementById(elmobj)){
        document.getElementById(elmobj).src = "/movie/article_common5.gif";
	  }
	else{
		break
	  }
	}
}
}
//幻灯片1
function insertpic(elm){


imgUrl1="/news/zm2.jpg";
imgtext1="尚品欣赏-车模评选";
imgLink1=escape("http://auto.bfb100.com/car/zm.asp");

imgUrl2="http://twt.bfb100.com/news/bfbjm.jpg";
imgtext2="百分百经贸-利华伦红酒";
imgLink2=escape("http://shop.bfb100.com");
	
imgUrl3="/news/SBR.jpg";
imgtext3="东风本田-思铂睿";
imgLink3=escape("http://auto.bfb100.com/Article/ShowArticle.asp?ArticleID=2429");

imgUrl4="/news/Alto.jpg";
imgtext4="长安铃木-新奥拓";
imgLink4=escape("http://auto.bfb100.com/Article/ShowArticle.asp?ArticleID=2482");

imgUrl5="/news/S80L.jpg";
imgtext5="沃尔沃S80L加长版";
imgLink5=escape("http://auto.bfb100.com/Article/ShowArticle.asp?ArticleID=2555");


 var focus_width=190;
 var focus_height=120;
 var text_height=18;
 var swf_height = focus_height+text_height;
 var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5;
 var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5;
 var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5;
 var str='<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 +'"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/ad/adplay.swf"><param name="quality" value="high"><param name="bgcolor" value="CCCCCC"><param name="menu" value="false"><param name=wmode value="opaque"><param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"><embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="FFCC00" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
document.getElementById(elm).innerHTML = str;
}
//幻灯片2
function insertpic2(elm){

imgUrl1="/news/by5.jpg";
imgtext1="驾御生活-百域人生";
imgLink1=escape("http://auto.bfb100.com/Article/ShowArticle.asp?ArticleID=3137");


imgUrl2="/news/whx.jpg";
imgtext2="王荣祥的VOLVO情缘-畅享瑞典经典美食";
imgLink2=escape("http://auto.bfb100.com/Article/ShowArticle.asp?ArticleID=2244");

imgUrl3="/news/ys.jpg";
imgtext3="阳朔自驾画中游-阳朔河畔度假酒店";
imgLink3=escape("/Article/ShowArticle.asp?ArticleID=2675");


imgUrl4="/news/redwine.jpg";
imgtext4="美国原支进口利华伦红酒-百分百经贸";
imgLink4=escape("http://shop.bfb100.com");


 var focus_width=335;
 var focus_height=182;
 var text_height=18;
 var swf_height = focus_height+text_height;
 var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4;
 var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4;
 var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4;
 var str='<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 +'"><param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/ad/adplay.swf"><param name="quality" value="high"><param name="bgcolor" value="CCCCCC"><param name="menu" value="false"><param name=wmode value="opaque"><param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"><embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="FFCC00" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
document.getElementById(elm).innerHTML = str;
}

function insertjxflv(elm, files, swf_width, swf_height, filesnum) {
if (!document.getElementById(elm)) return;
var str='<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="'+ swf_width +'" height="'+ swf_height +'"><param name="movie" value="http://auto.bfb100.com/news/vcastr22.swf"><param name="quality" value="high"><param name="menu" value="false"><param name="allowFullScreen" value="true"><param name="FlashVars" value="vcastr_file='+files+'&IsAutoPlay=1&DefaultVolume=100&IsShowBar=1&BarColor=0xFF6600&IsContinue=1"><embed src="http://auto.bfb100.com/news/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&IsAutoPlay=1&DefaultVolume=100&IsShowBar=1&BarColor=0xFF6600&IsContinue=1" menu="false"  quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
document.getElementById(elm).innerHTML = str;
if(filesnum){
  mvtitle.innerHTML=filesnum;}
  else{
  mvtitle.innerHTML="大灾无情　大爱无疆";}
}

function insertbfbflv(elm, files, swf_width, swf_height,title,isok) {
if (!document.getElementById(elm)) return;
var texts=title;
if(isok){
var str='<object type="application/x-shockwave-flash" data="vcastr3.swf" width="'+ swf_width +'" height="'+ swf_height +'" id="vcastr3"><param name="movie" value="/v3/vcastr3.swf"/><param name="allowFullScreen" value="true" /><param name="FlashVars" value="xml=<vcastr><channel><item><source>'+ files +'</source><duration></duration><title></title></item></channel><config></config></vcastr>"/></object>';
}
else{
var str='<object type="application/x-shockwave-flash" data="vcastr3.swf" width="'+ swf_width +'" height="'+ swf_height +'" id="vcastr3"><param name="movie" value="/v3/vcastr3.swf"/><param name="allowFullScreen" value="true" /><param name="FlashVars" value="xml=<vcastr><channel><item><source>'+ files +'</source><duration></duration><title></title></item></channel><config></config></vcastr>"/></object>';
}

document.getElementById(elm).innerHTML = str;
}