
if(!GNV_StdPlayer_Players){
var GNV_StdPlayer_Players=new Object();
}
 GNV_StdPlayer_Players['gv_b60b1184_8166_102a_82c5_0019b9c12eb7']={
 channel_id:"b60b1184_8166_102a_82c5_0019b9c12eb7",
 div_id:"GNVFloatClip_b60b1184_8166_102a_82c5_0019b9c12eb7",
 header_height:26,
 width:'240',
 height:'200',
 page_pos:'normal',
 isPreview:false,
 playerPath:'http://crm.vnc.cn:8080/HCCommonVideo/FlashPlay/Flvplayer.swf',
 urlList:["http:\/\/http://www.vnc.cn",""],
 firstShow:true,
 autoPlay:true};
 function GNV_checkUrl(list){
 var h=window.location.href;
var p= /^http\:\/\/([^\/]+)/; 
 for(var q=0; q<list.length; q++){
  if(list[q]=='*'){
  return true;
 }
 var pr=p.exec(list[q]);
 if(!pr || pr.length<2){
		    continue;
   }
  var domain=pr[1].toLowerCase();
	    if(domain.indexOf('www.')==0){
		    domain=domain.substring(4);
	    }
	    if(h.toLowerCase().indexOf(domain.toLowerCase()+'/')>=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<presetArgs.length; i++ ){
      inputArgs[i] = presetArgs[i];
     }
    for ( var i = 0; i < arguments.length; i++ ){
inputArgs.push( arguments[i] );
    }
    return func.apply( obj, inputArgs );
 }
   return delegate;
          }
function GNV_StdPlayer_clearAllStdPlayers(){
  for(var q in GNV_StdPlayer_Players){
	    if(q.indexOf('gv_')==0){
	    var ele=document.getElementById(GNV_StdPlayer_Players[q].div_id);
		    if(ele){
				    ele.outerHTML='';
		    }
	    }
   }
}
          function GNV_StdPlayer_getPlayerData(pid){
   return window['GNV_StdPlayer_Players']['gv_'+pid];
}
 function GNV_StdPlayer_writePlayer(pid){
 var ps=GNV_StdPlayer_getPlayerData(pid);
   var flashVars = "file=http://crm.vnc.cn:8080/HCCommonVideo/reference/sm/HCBusinessVideo/20091031/2009103111451111.xml&height=200&displayheight=100&autostart=false&repeat=true&corpTitle=相关信息&corpDescription=保定市航程网络资讯有限公司\n0312-5906055\n河北省保定市时代路65—1号原有线广播电视台大厦A区八层808室";
 if(ps.isPreview){
	    flashVars+='&PREVIEW=1';
 }
 var pageHead=(ps.page_pos=='normal'||ps.page_pos=='')?'':"<div style=\"width:"+ps.width+"px;height:"+ps.header_height+"px;background:url(http://crm.vnc.cn:8080/HCCommonVideo/FlashPlay/tbg.gif) no-repeat bottom left\">" 
   +"<span style=\"height:"+ps.header_height+"px;width:100px;float:left;cursor:pointer;\" ><a href='http://www.vnc.cn' target=_blank><img src='http://crm.vnc.cn:8080/HCCommonVideo/FlashPlay/space.gif' width='100' height='"+ps.header_height+"' border='0'></a></span>"
   +" <span style=\"width:19px;height:19px;margin-top:4px;background:url(http://crm.vnc.cn:8080/HCCommonVideo/FlashPlay/tclose.gif) no-repeat;float:right;cursor:pointer;margin-right:5px;\" onclick=\"this.parentNode.parentNode.innerHTML=''\"></span>" 
	    +"<span style=\"background:url(http://crm.vnc.cn:8080/HCCommonVideo/FlashPlay/tsize.gif) no-repeat top left;width:19px;height:19px;float:right;margin-top:4px;margin-right:5px;cursor:pointer\""
	    +" onclick=\"GNV_StdPlayer_resizePlayer('"+pid+"',this)\"></span>" 
 +"</div>";
  if(GNV_checkUrl(ps.urlList)){
	    var pbody=
		    '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
	    + 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" ' 
			    + 'width="'+ps.width+'" height="'+(pageHead ? 1 :ps.height)+'" data="'+ps.playerPath+'">'
		    + '<param name="allowScriptAccess" value="always" />'
		    + '<param name="allowfullscreen" value="true" />'
	    + '<param name="movie" value="'+ps.playerPath+'" />'
	    + '<param name="quality" value="high" />'
	    + '<param name="FlashVars" value="'+flashVars+'" />'
	    +"<embed width=\""+ps.width+"\"  height=\""+(pageHead ? 1 :ps.height)+"\" src=\""
	    +ps.playerPath
	    +"\" FlashVars=\""+flashVars+"\" menu=\"true\" quality=\"high\" allowfullscreen='true' bgcolor=\"#ffffff\" allowScriptAccess=\"always\"  type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>"
   +"</object>";
 }else{
	    var pbody="<div style='background:center no-repeat url(http://crm.vnc.cn:8080/HCCommonVideo/FlashPlay/urlerror.gif);width:"+ ps.width + "px;height:"+(pageHead?1:ps.height)+"px'"
				    + "id='GNVPlayer_"+ps.channel_id+"'></div>";
   }
  var html=
   "<div id='"+ps.div_id+"' style='overflow:hidden;height:"+(pageHead ? ps.header_height : ps.height)+"px;width:"+ps.width+"px;'>"
 + pageHead
   + "<div>"+ pbody+"</div></div>";
 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('b60b1184_8166_102a_82c5_0019b9c12eb7');
