if(!GNV_StdPlayer_Players){ var GNV_StdPlayer_Players=new Object(); } GNV_StdPlayer_Players['gv_882e7b04_d90f_1000_8001_001aa00da3fe']={ channel_id:"882e7b04_d90f_1000_8001_001aa00da3fe", div_id:"GNVFloatClip_882e7b04_d90f_1000_8001_001aa00da3fe", header_height:26, width:'352', height:'313', page_pos:'normal', isPreview:false, playerPath:'http://p.generalv.com/player/player.swf', urlList:["*","www.nj.gov.cn"], firstShow:true, autoPlay:false}; function GNV_checkUrl(list){ var h=window.location.href; var p= /^http\:\/\/([^\/]+)/; for(var q=0; q=0){ return true; } } //return false; return true; } function GNV_delegate(){ var obj = arguments[0]; var func = arguments[1]; var presetArgs = new Array(); for( var i = 2; i < arguments.length; i++ ){ presetArgs.push( arguments[i] ); } var delegate = function(){ var inputArgs = new Array(); for( var i=0; i" +"" +" " +"" +""; if(GNV_checkUrl(ps.urlList)){ var pbody= '' + '' + '' + '' + '' + '' +"" +""; }else{ var pbody="
"; } var html= "
" + pageHead + "
"+ pbody+"
"; document.write(html); if(ps.page_pos!='normal' && ps.page_pos!=''){ setTimeout(GNV_delegate(window,GNV_StdPlayer_setPos,pid),0); if(!GNV_StdPlayer_checkFixedStyle()){ setTimeout(GNV_delegate(window,GNV_StdPlayer_setPos,pid),0); window.attachEvent('onscroll',GNV_delegate(window,GNV_StdPlayer_setPos,pid)); window.attachEvent('onresize', GNV_delegate(window,GNV_StdPlayer_setPos,pid)); } } } function GNV_StdPlayer_resizePlayer(pid){ var ps=GNV_StdPlayer_getPlayerData(pid); var node=document.getElementById(ps.div_id); var objNode=node.lastChild.firstChild; var boxNode=node.lastChild; var embedNode=node.lastChild.firstChild.lastChild; var button=document.getElementById(ps.div_id).firstChild.lastChild; if(boxNode.offsetHeight<=1){ objNode.style.height=embedNode.style.height=ps.height+"px"; node.style.height=(ps.height*1+ps.header_height)+"px"; button.style.backgroundPosition='top right' }else{ objNode.style.height=embedNode.style.height="0px"; node.style.height=ps.header_height+"px"; button.style.backgroundPosition='top left'; } if(!GNV_StdPlayer_checkFixedStyle()){ GNV_StdPlayer_setPos(pid); } } function GNV_StdPlayer_setFixedPos(pid){ var ps=GNV_StdPlayer_getPlayerData(pid); var clip=document.getElementById(ps.div_id); var pos=ps.page_pos; clip.style.position='fixed'; if(pos.indexOf('b')>-1){ clip.style['bottom']='0px'; } if(pos.indexOf('t')>-1){ clip.style['top']='0px'; } if(pos.indexOf('l')>-1){ clip.style.left='0px'; } if(pos.indexOf('r')>-1){ clip.style['right']='0px'; } } function GNV_StdPlayer_setAbsPos(pid){ var ps=GNV_StdPlayer_getPlayerData(pid); var clip=document.getElementById(ps.div_id); var pos=ps.page_pos; clip.style.position='absolute'; /*if(clip.lastChild && clip.lastChild.style.display=='none'){ clip.style['height']='30px' }else{ clip.style['height'] =(parseInt(window['GNV_StdPlayer_ps_'+cid].height)+30)+'px'; //'246px'; }*/ var xScrollBarWidth=yScrollBarWidth=26; if(pos.indexOf('b')>-1){ t_st=(document.body.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop; clip.style.top = window.document.documentElement.offsetHeight + t_st - clip.offsetHeight -xScrollBarWidth+ "px"; } if(pos.indexOf('t')>-1){ var t_st=(document.body.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop; clip.style['top']= t_st+'px'; } if(pos.indexOf('l')>-1){ clip.style.left='1pt'; clip.style.left='0pt'; } if(pos.indexOf('r')>-1){ t_sl=(document.body.scrollLeft)?document.body.scrollLeft:document.documentElement.scrollLeft; clip.style.left = window.document.documentElement.offsetWidth-0 + t_sl - clip.offsetWidth-yScrollBarWidth + "px"; } } function GNV_StdPlayer_getIEVersonNumber(){ var ua = navigator.userAgent; var msieOffset = ua.indexOf("MSIE "); if(msieOffset < 0){ return 0; } return parseFloat(ua.substring(msieOffset + 5, ua.indexOf(";", msieOffset))); } function GNV_StdPlayer_checkFixedStyle(){ var iev=GNV_StdPlayer_getIEVersonNumber(); return (iev==0); } function GNV_throwInfo(s_pid, s_status, s_args) { var ps =GNV_StdPlayer_getPlayerData(s_pid); if(s_status=(ps.autoPlay?"playing":"buffering")){ if(!(ps.page_pos=='normal' || !ps.page_pos) && ps.firstShow){ ps.firstShow=false; GNV_StdPlayer_resizePlayer(s_pid); } } } function GNV_StdPlayer_setPos(pid){ if(!GNV_StdPlayer_checkFixedStyle()){ GNV_StdPlayer_setAbsPos(pid); }else{ GNV_StdPlayer_setFixedPos(pid); } } //-------main----------- if(!GNV_StdPlayer_stdPlayerEventAttached){ var GNV_StdPlayer_stdPlayerEventAttached=true; if(window.attachEvent){ window.attachEvent('onbeforeunload',GNV_StdPlayer_clearAllStdPlayers); } } GNV_StdPlayer_writePlayer('882e7b04_d90f_1000_8001_001aa00da3fe');