﻿var IE = (navigator.userAgent.indexOf('MSIE ') != -1);
var IE6 = (navigator.userAgent.indexOf('MSIE 6.0') != -1);
var IE7 = (navigator.userAgent.indexOf('MSIE 7.0') != -1);
var FF = (navigator.userAgent.indexOf('Firefox/') != -1);
var FF2 = (navigator.userAgent.indexOf('Firefox/2.0') != -1);
var OPERA = (navigator.userAgent.indexOf('Opera') >= 0);

var imgUrl1 = escape("http://bbs.bujingqi.com/focus/baishi1.jpg");
var imgtext1 = "三人行，必有我师";
var imgLink1 = escape("http://www.72ren.com");

var imgUrl2 = escape("http://bbs.bujingqi.com/focus/xiaobaishu.jpg");
var imgtext2 = "国货小白鼠评测团成立了";
var imgLink2 = escape("http://home.iwallchina.com/space-mtag-tagid-9.html");

var imgUrl3 = escape("http://bbs.bujingqi.com/focus/zhijiao.jpg");
var imgtext3 = "2009上海话剧艺术中心陕西支教行";
var imgLink3 = escape("http://bbs.bujingqi.com/thread-8039-1-1.html");

var imgUrl4 = escape("http://bbs.bujingqi.com/focus/tuoyi.jpg");
var imgtext4 = "BJQ的脱衣舞娘：我们很快乐";
var imgLink4 = escape("http://bbs.bujingqi.com/thread-8285-1-1.html");

var imgUrl5 = escape("http://bbs.bujingqi.com/focus/fenghua1.jpg");
var imgtext5 = "蜂花檀香皂，包装多好看啊";
var imgLink5 = escape("http://bbs.bujingqi.com/thread-7789-1-1.html");


var focus_width = 300;
if (FF || FF2)
{
var focus_height = 175;
var text_height = 35;
}
else if (OPERA){
var focus_height = 175;
var text_height = 35;
}else{
var focus_height = 175;
var text_height = 20;
}
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;
document.write('<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="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
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="focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false"  type="application/x-shockwave-flash" width="'+ focus_width +'" height="'+ focus_height +'"></embed>');
document.write('</object>');