function getViewportWH(){var w,h;if(window.innerWidth){w=window.innerWidth;h=window.innerHeight;}else if(document.documentElement&&document.documentElement.clientWidth){w=document.documentElement.clientWidth;h=document.documentElement.clientHeight;}else if(document.body.clientWidth){w=document.body.clientWidth;h=document.body.clientHeight;}return{w:w,h:h};}
function getScrollXY(){var x,y;if(window.innerWidth){x=window.pageXOffset;y=window.pageYOffset;}else if(document.documentElement&&document.documentElement.clientWidth){x=document.documentElement.scrollLeft;y=document.documentElement.scrollTop;}else if(document.body.clientWidth){x=document.body.scrollLeft;y=document.body.scrollTop;}return{x:x,y:y}}
var JasnetMovie=(function(){
  var selfName='JasnetMovie';
  var txt={close:'閉じる'};

  var img = "2" ;
  var adress = "jasnet1/" ;
  var volume = "1" ;
  var autoplay = "1" ;
  var loop = "1" ;
  var url = document.URL ;

  var htm = ""
  htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
  htm+="        codebase='http://download.macromedia.com/pub/shockwave/"
  htm+="cabs/flash/swflash.cab'"
  htm+="        width   = 804 "
  htm+="        data   = 'http://c-pro.tv/site/flash/embed_ver3_bigdivide.swf' "
  htm+="        height  = 364 >"
  htm+="<param  name    = movie value='http://c-pro.tv/site/flash/embed_ver3_bigdivide.swf'>"
  htm+="<param  name    = quality value=high>"
  htm+="<param  name    = FlashVars value=adressf=" + adress + "&volumef=" + volume + "&imgf=" + img + "&autoplayf=" + autoplay + "&loopf=" + loop + "&docu=" + url +">"
  htm+="<param  name    = wmode value=transparent>"
  htm+="<param  name    = allowFullScreen value=true>"
  htm+="<embed  src     = 'http://c-pro.tv/site/flash/embed_ver3_bigdivide.swf' "
  htm+="        quality = high"
  htm+="        width   = 804"
  htm+="        height  = 364"
  htm+="        allowFullScreen   = true"
  htm+="        FlashVars  = adressf=" + adress + "&volumef=" + volume + "&imgf=" + img + "&autoplayf=" + autoplay + "&loopf=" + loop + "&docu=" + url + " "
  htm+="        wmode   = transparent"
  htm+="        type    = 'application/x-shockwave-flash' "
  htm+="        pluginspage='http://www.macromedia.com/go/getflashplayer'>"
  htm+="</embed>"
  htm+="</object>"

  var layer,title,movie;return{show:function(e){e=e||event;if(!layer){init();}layer.style.display='';movie.innerHTML=htm;var vpWH=getViewportWH();var scXY=getScrollXY();layer.style.left=Number((vpWH.w-layer.offsetWidth)/2+scXY.x)+'px';layer.style.top=Number((vpWH.h-layer.offsetHeight)/2+scXY.y)+'px';},hide:function(){layer.style.display='none';movie.innerHTML=''}};function init(){layer=document.createElement('div');layer.className='MovieLayer';layer.style.display='none';layer.style.position='absolute';layer.style.left='0px';layer.style.top='0px';title=document.createElement('div');title.className='MovieTitleArea';title.innerHTML='<a href="#" onclick="'+selfName+'.hide();return false;">'+txt.close+'</a>';movie=document.createElement('div');movie.className='MovieContentsArea';layer.appendChild(title);layer.appendChild(movie);document.body.appendChild(layer);}
}());
var XlogMovie=(function(){
  var selfName='XlogMovie';
  var txt={close:'<img src=../common/img/close_bt.gif>'};

  var img = "1" ;
  var adress = "jasnet2/" ;
  var volume = "1" ;
  var autoplay = "1" ;
  var loop = "1" ;
  var url = document.URL ;

  var htm = ""
  htm+="<object id='PlayList' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'"
  htm+="        codebase='http://download.macromedia.com/pub/shockwave/"
  htm+="cabs/flash/swflash.cab'"
  htm+="        width   = 580 "
  htm+="        height  = 362 >"
  htm+="<param  name    = movie value='http://c-pro.tv/site/flash/asp_ver2_big.swf'>"
  htm+="<param  name    = quality value=high>"
  htm+="<param  name    = FlashVars value=adressf=" + adress + "&volumef=" + volume + "&imgf=" + img + "&autoplayf=" + autoplay + "&loopf=" + loop + "&docu=" + url +">"
  htm+="<param  name    = wmode value=transparent>"
  htm+="<param  name    = allowFullScreen value=true>"
  htm+="<embed  src     = 'http://c-pro.tv/site/flash/asp_ver2_big.swf' "
  htm+="        quality = high"
  htm+="        width   = 580"
  htm+="        height  = 362"
  htm+="        name    = PlayList"
  htm+="        allowFullScreen   = true"
  htm+="        FlashVars  = adressf=" + adress + "&volumef=" + volume + "&imgf=" + img + "&autoplayf=" + autoplay + "&loopf=" + loop + "&docu=" + url + " "
  htm+="        wmode   = transparent"
  htm+="        type    = 'application/x-shockwave-flash' "
  htm+="        pluginspage='http://www.macromedia.com/go/getflashplayer'>"
  htm+="</embed>"
  htm+="</object>"

  var layer,title,movie;return{show:function(e){e=e||event;if(!layer){init();}layer.style.display='';movie.innerHTML=htm;var vpWH=getViewportWH();var scXY=getScrollXY();layer.style.left=Number((vpWH.w-layer.offsetWidth)/2+scXY.x)+'px';layer.style.top=Number((vpWH.h-layer.offsetHeight)/2+scXY.y)+'px';},hide:function(){layer.style.display='none';movie.innerHTML=''}};function init(){layer=document.createElement('div');layer.className='MovieLayer';layer.style.display='none';layer.style.position='absolute';layer.style.left='0px';layer.style.top='0px';title=document.createElement('div');title.className='MovieTitleArea';title.innerHTML='<a href="#" onclick="'+selfName+'.hide();return false;">'+txt.close+'</a>';movie=document.createElement('div');movie.className='MovieContentsArea';layer.appendChild(title);layer.appendChild(movie);document.body.appendChild(layer);}
}());

