var huoju_playH; function xScrollStick_init(){ } function huoju_leftmove() { var scrollid = 0; var position = 1; try{ if ((scrollid == 2)&&(position != 1)){ var tv= document.getElementById('huoju_tv'); if ((position == 2) || (position == 4)){ tv.style.top= document.body.scrollTop; }else{ try{ tv.style.top= document.body.scrollTop + 550 - huoju_playH; }catch(e){ tv.style.bottom = 0; } } } }catch(e){ } setTimeout("huoju_leftmove()",30); } function huoju_writeTvWin(style,size,position,scrollid,fid,auto,w,h,loop,l,extend,voice,pid,info){ var code; var width; var height; if (size == 1){ if (style == 3){ width = 459; height= 340; }else if (style == 9){ width = 459; height= 380; }else{ width = 459; height= 425; } }else if (size == 2){ if (style == 3){ width = 320; height= 240; }else if (style == 9){ width = 320; height= 270; }else{ width = 320; height= 294; } }else if (size == 4){ width = w; height= h; }else{ if (style == 3){ width = 150; height= 113; }else if (style == 9){ width = 150; height= 127; }else{ width = 150; height= 140; } } huoju_playH = height; code = "<" + "object" + " id=\"playerCorp\" width=\"" + width + "\" height=\"" + height + "\">"; code += "<" + "param name=\"allowScriptAccess\" value=\"sameDomain\" /" + ">"; code += "<" + "param name=\"movie\" value=\"http://e.huojutv.com/flash/playerCorp.swf\" /" + ">"; code += "<" + "param name=\"quality\" value=\"high\" /" + ">"; code += "<" + "param name=\"allowFullScreen\" value=\"true\" /" + ">"; code += "<" + "param name=\"bgcolor\" value=\"#ffffff\" /" + "><"; code += "embed src=\"http://e.huojutv.com/flash/playerCorp.swf?skinName=" + style; code += "&fid=" + fid + "&auto=" + auto + "&loop=" + loop + "&l=" + l; code += "&extend=" + extend + "&voice=" + voice + "&pid=" + pid + "&info=" + info; code += "&tvid=2441\" quality=\"high\" wmode=\"transparent\" width=\"" + width + "\" height=\"" + height +"\""; code += " name=\"playerCorp\""; code += " allowScriptAccess=\"sameDomain\""; code += " allowFullScreen=\"true\""; code += " swLiveConnect=\"true\""; code += " type=\"application/x-shockwave-flash\""; code += "><" + "/embed" + "><" + "/object>"; if(position != 1){ var strCode = "<" + "div id='huoju_tv' style='display:none;z-index:9999'>"; strCode += "<" + "div style=\"height:15px;text-align:right\">"; strCode += "<" + "img src=\"http://e.huojutv.com/images/client/min.gif\" style=\"cursor:hand\" onclick=\"huoju_minTv();\"/" + ">&" + "nbsp;"; strCode += "<" + "img src=\"http://e.huojutv.com/images/client/max.gif\" style=\"cursor:hand\" onclick=\"huoju_maxTv();\"/" + ">&" + "nbsp;"; strCode += "<" + "img src=\"http://e.huojutv.com/images/client/close.gif\" style=\"cursor:hand\" onclick=\"huoju_closeTv();\"/" + ">&" + "nbsp;"; strCode += "<" + "/div>" + "<" + "div id='huoju_play' style=\"text-align:right\">"; strCode = strCode + code + "<" + "/div>"; strCode += "<" + "/div>"; code = strCode; height = height + 15; } document.write(code); if (position == 2){ huoju_lt(width,height,scrollid); }else if (position == 3){ huoju_lb(width,height,scrollid); }else if (position == 4){ huoju_rt(width,height,scrollid); }else if (position == 5){ huoju_rb(width,height,scrollid); } if (scrollid == 2){ huoju_leftmove(); } } function huoju_resetTv(width,height){ var tv=document.getElementById('huoju_tv'); tv.style.display='block'; tv.style.position = 'absolute'; tv.style.width=width; tv.style.height=height; } function huoju_lt(width,height,scrollid) { var tv=document.getElementById('huoju_tv'); huoju_resetTv(width,height); tv.style.left='0'; if (scrollid == 2){ tv.style.top='0'; }else{ tv.style.top='0'; } } function huoju_lb(width,height,scrollid) { var tv=document.getElementById('huoju_tv'); huoju_resetTv(width,height); tv.style.left='0'; if (scrollid == 2){ tv.style.bottom='0'; }else{ tv.style.bottom='0'; } } function huoju_rt(width,height,scrollid) { var tv=document.getElementById('huoju_tv'); huoju_resetTv(width,height); tv.style.right='0'; if (scrollid == 2){ tv.style.top='0'; }else{ tv.style.top='0'; } } function huoju_rb(width,height,scrollid) { var tv=document.getElementById('huoju_tv'); huoju_resetTv(width,height); tv.style.right='0'; if (scrollid == 2){ tv.style.bottom='0'; }else{ tv.style.bottom='0'; } } function huoju_closeTv(){ var tv=document.getElementById('huoju_tv'); tv.innerHTML = ""; } function huoju_minTv(){ var play=document.getElementById('huoju_play'); play.style.display='none'; var tv=document.getElementById('huoju_tv'); tv.style.height=15; } function huoju_maxTv(){ var play=document.getElementById('huoju_play'); play.style.display='block'; var tv=document.getElementById('huoju_tv'); tv.style.height=15 + huoju_playH; } function thisMovie(movieName) { var isIE = navigator.appName.indexOf("Microsoft") != -1; return (isIE) ? window[movieName] : document[movieName]; } function makeCall(str) { thisMovie("playerCorp").asFunc(str); } huoju_writeTvWin(4,2,1,0,0,1,0,0,1,0,0,0,0,0);