var mark_time;
mark_duilian=1;
var fdc_top_wdith=950;
var fdc_top_height=30;
var fdc_top_src="http://img3.fdc.com.cn/shows/2011/12/2011121310323834994.jpg";//小顶通950*30 .swf
var fdc_back_img="http://img3.fdc.com.cn/shows/2011/12/201112131032746029.jpg";//大背景
var fdc_back_link="http://shows.fdc.com.cn/manage/openad.asp?adtype=1&adid=11528";//小顶通的链接如果是swf就不用这个连接
var fdc_top_link="http://shows.fdc.com.cn/manage/openad.asp?adtype=1&adid=11528";//大背景的链接



var fdc_settimeout=20;
document.write('<div style="width:'+fdc_top_wdith+'px; height:'+fdc_top_height+'px; margin:0px auto; ">');
document.write('<div id="FlashID8FE94F8E_2418_101C_F42B_D7248BBF9EC4" style="position:absolute; width:'+fdc_top_wdith+'px; height:'+fdc_top_height+'px;">');
document.write('<a target="_blank" href='+fdc_top_link+'><img width="'+fdc_top_wdith+'" height="'+fdc_top_height+'" border="0" src="http://www.fdc.com.cn/images/blank.gif"></a>');
document.write('<div id="king_text" onmouseover="slideDown()" style="width:15px;display:none; height:'+fdc_top_height+'px; border:0px solid red;background:#ccc;font-size:12px; position:absolute;top:0px;right:-15px;cursor:pointer">展开');
document.write('</div>');
document.write('</div>');
document.write('<div style="width:'+fdc_top_wdith+'px; height:'+fdc_top_height+'px;">');
if(fdc_top_src.indexOf("swf")>-1){
document.write('<embed width="'+fdc_top_wdith+'" height="'+fdc_top_height+'" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="opaque" quality="autohigh" src="'+fdc_top_src+'">');
document.write('</embed>');
}
if(fdc_top_src.indexOf("jpg")>-1 || fdc_top_src.indexOf("gif")>-1 ||fdc_top_src.indexOf("png")>-1 ){
document.write('<a href='+ fdc_back_link+'  target="_blank"><img width="'+fdc_top_wdith+'" height="'+fdc_top_height+'" border="0" src="'+fdc_top_src+'"></a>');
}
document.write('</div>');
document.write('</div>');
//两边
var beijing_height=780;
var beijing_wid=198;
document.write('<div id="king_left" style=" border:0px solid red; height:'+beijing_height+'px;background:url('+fdc_back_img+') no-repeat 0px 0px;width:'+beijing_wid+'px; position:absolute; left:0px; top:0px;z-index:-9999">');
document.write('</div>');
document.write('<div id="king_right" style=" border:0px solid red; height:'+beijing_height+'px;background:url('+fdc_back_img+') no-repeat -1148px 0px;width:'+beijing_wid+'px; position:absolute; right:0px; top:0px;z-index:-9999">');
document.write('</div>');
function lefts(){
var client_h=document.documentElement?document.documentElement.clientWidth:document.body.clientHeight;
var widths=(client_h-fdc_top_wdith)/2-beijing_wid+"px";
document.getElementById("king_left").style.left=widths;
document.getElementById("king_right").style.right=widths;
}
window.setInterval(lefts,100);
var dis_timeout;
function ad_Down(){
var step=5;
var divh=document.getElementById("king_right").style.height;
//alert(divh);
var spx=parseInt(divh);
//alert(spx);
var cha=beijing_height-spx;
if(cha<5){
window.clearInterval(settime);
step=cha;
dis_timeout=window.setTimeout(slideUp,1000*fdc_settimeout);
}
document.getElementById("king_right").style.height=spx+step+"px";
document.getElementById("king_left").style.height=spx+step+"px";
}
function ad_Up(){
var step=5;
var divh=document.getElementById("king_right").style.height;
var spx=parseInt(divh);
if(spx<=5){
window.clearInterval(settime);
window.clearTimeout(dis_timeout);
document.getElementById("king_text").style.display="";
document.getElementById("king_right").style.display="none";
document.getElementById("king_left").style.display="none";
if(mark_time!=1){
mark_three=2;
}
}
if(spx>5){
document.getElementById("king_right").style.height=spx-step+"px";
document.getElementById("king_left").style.height=spx-step+"px";
}
}
function slideDown(){
document.getElementById("king_text").style.display="none";
document.getElementById("king_right").style.display="";
document.getElementById("king_left").style.display="";
settime=window.setInterval(ad_Down,1);
}
var settime;
function slideUp(){
settime=window.setInterval(ad_Up,1);
}
dis_timeout= window.setTimeout(slideUp,1000*fdc_settimeout);

