﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>全屏</title>
<script type="text/javascript">if(self!=top){top.location=self.location;}</script>
<style type="text/css">
body{font-size:12px;font-family:宋体;color:#333;margin:0px;text-align:center;background:#000;}div{margin:0px auto;padding:0;}
from,ul,img{border:0;}.clear{clear:both;height:0px;font-size:0px;overflow:hidden;}
h1,h2,h3,h4,h5,h6,h7,form,select,input,ul,li,label,img,p{padding:0;margin:0;}li{list-style:none;overflow:hidden;}
a:link {color:#000;text-decoration:none;}
a:visited {text-decoration:none;color:#000;}
a:hover {text-decoration:underline;color:#FF0;}
a:active {text-decoration:none;color:#FF0;}
#header{height:44px;background:url(http://i.7k7kimg.cn/themes/www/header.gif) repeat-x}
#header .c{width:960px}
#header .logo{float:left;width:200px;height:44px}
#header .logo a{float:left;width:120px;height:24px;margin:10px 0 0 0;background:url(http://i.7k7kimg.cn/themes/www/header.gif) 0 -84px no-repeat}
#header .menu{float:right;padding-right:10px;}
#header .menu a{float:left;width:43px;height:20px;line-height:20px;font-size:14px;font-weight:bold;margin:12px 5px 0 0}
#header .menu a:link,#header .menu a:visited{color:#444;text-decoration:none}
#header .menu a:hover{color:#fff;background:url(http://i.7k7kimg.cn/themes/www/header.gif) 0 -44px no-repeat}
#header .menu a.s{width:76px}
#header .menu a.s:hover{background-position:0 -64px;}

#process{width:640px;height:16px;margin:5px auto;}
#process #framecount{float:right;width:60px;color:#01A6DE;font-weight:bold;text-align:right;}
#process .n{float:left;width:60px;color:#01A6DE;font-weight:bold;text-align:left;}
#process .c{border:#fff 1px solid;height:6px;margin-top:3px;}
#process #bar{float:left;font-size:1px;background:#01A6DE;width:0%;height:6px;}
#playb,#playd{display:none;}
#playd{width:550px;height:400px;margin:auto}
.close{width:33px;height:34px;cursor:pointer;background:url(http://i.7k7kimg.cn/themes/www/fullclose.gif) no-repeat;position:absolute;right:5px;top:5px}
</style>
</head>
<body onresize="QP.Resize()">
<script type="text/javascript" src="http://w.7k7kjs.cn/www/js/topper2.js"></script>
<div class="close" onclick="window.close()"></div>
<SCRIPT type=text/Javascript>
<!--
var thearray = navigator.plugins;
var isShockwave = false;
var arraylength = thearray.length;
for (i=0; i<arraylength; i++)
{
	theplugin = thearray[i]; 
	thename   = theplugin.name;
	thedesc   = theplugin.description;
	if (thedesc.indexOf("Shockwave") != -1 && thedesc.indexOf("Director") != -1)
	{ 
		isShockwave = true;
	}
}
// -->
</SCRIPT>
<script language="vbscript">
Dim swControl
on error resume next
set swControl = CreateObject("SWCtl.SWCtl")
if (IsObject(swControl)) then
	isShockwave = True
else
	isShockwave = False
end if
</script>
<script type="text/javascript">
function $() {
  var elements = new Array();

  for (var i = 0; i < arguments.length; i++) {
    var element = arguments[i];
    if (typeof element == 'string')
      element = document.getElementById(element);

    if (arguments.length == 1)
      return element;

    elements.push(element);
  }

  return elements;
}
function req(item){
	var value = location.search.match(new RegExp("[\?\&\&amp;]"+item+"=([^\&]*)(\&?)","i"));
	return value ? value [1]: value;
}
var QP = new Object();
QP.drawIframe = function (p_Src, p_id, p_width, p_height, p_Type){
	var str='';
	str="<iframe src=\""+p_Src+"\" frameborder=\"0\" name=\""+p_id+"\" id=\""+p_id+"\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" width=\""+p_width+"\" height=\""+p_height+"\"></iframe>";
	if(p_Type==1){return str;}else{document.write(str);}
};
QP.drawSWF = function (p_Src, p_Var, p_id, p_id2, p_width, p_height, p_script, p_net, p_Type){
	var str='<object id="'+p_id+'" name="'+p_id+'" width="'+p_width+'" height="'+p_height+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="movie" value="'+p_Src+'"/><param name="flashvars" value="'+p_Var+'"/><param name="quality" value="high"/><param name="bgcolor" value="#000"/>';
	if(p_script==1){str+='<param name="allowScriptAccess" value="always"/>';}
	if(p_net==0){str+='<param name="allowNetworking" value="internal"/>';}
	str+='<embed name="'+p_id2+'" id="'+p_id2+'" width="'+p_width+'" height="'+p_height+'" src="'+p_Src+'" flashvars="'+p_Var+'"';
	if(p_script==1){str+=' allowScriptAccess="always"';}
	if(p_net==0){str+=' allowNetworking="internal"';}
	str+=' quality="high" bgcolor="#000" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" /></object>';
	if(p_Type==1){return str;}else{document.write(str);}
};
QP.drawDCR = function(p_Src, p_id, p_id2, p_width, p_height, p_Type){
	var str='<object name="'+p_id+'" id="'+p_id+'" width="'+p_width+'" height="'+p_height+'" classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,0,0,0"><param name=swRemote value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'"><param name="background" value="#000"><param name="swStretchStyle" value="none"><param name=swInstallType value=full><param name="logo" value="true"><param name="menu" value="false"><param name="src" value="'+p_Src+'">';
	str+='<embed name="'+p_id2+'" id="'+p_id2+'" src="'+p_Src+'" swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\'" background="#000" swStretchStyle="none" logo="false" menu="false" width="'+p_width+'" height="'+p_height+'" pluginspage="http://www.macromedia.com/shockwave/download/"></embed></object>';
	if(p_Type==1){return str;}else{document.write(str);}
}
QP.drawXAP = function(p_Src, p_id, p_id2, p_width, p_height, p_Type){
	var str='<object name="'+p_id+'" id="'+p_id+'" width="'+p_width+'" height="'+p_height+'" data="data:application/x-silverlight," type="application/x-silverlight-2-b2"><param name="source" value="'+p_Src+'"/><param name="onerror" value="onSilverlightError" /><param name="background" value="black" /><a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/></a></object>';
}
//变量调节
var _v,_w,_h,_p,_e;//变量,宽,高,路径,扩展名
var _gamemark = req('gamemark');
if(_gamemark==null){_gamemark="1|0|0|0|0";}
var _playmode=_gamemark.split('|')[0];
var _playscript=_gamemark.split('|')[1];
var _playnet=_gamemark.split('|')[2];
var _fw = 640;
var _fh = 480;
_w = document.documentElement.clientWidth;
_h = document.documentElement.clientHeight-44;
_v = req('gamevar');
_p = req('gamepath');
_e = _p.replace(/^(.+?)(\.([^\.\?]+?))(\?.+?)?$/g, "$2");
if(_e == '.swf'){
	_playmode = 1;
}else if(_e == '.dcr'){
	_playmode = 2;
}else if(_e == '.xap'){
	_playmode = 3;
}else if(_e == '.htm' || _e == '.html'){
	_playmode = 4;
}else{
	_playmode = 0;
}
//函数
QP.drawA = function(){
	var str;
	str = '<div id="aobj" style="height:400px;"><iframe src="http://www1.gamediad.com:7990/adpolicy.aspx?gameid=10&adspotid=983041" height="400" width="550" marginheight="0" marginwidth="0" scrolling="no" frameborder="0"></iframe></div>';
	return str;
}
QP.Player = function(){
	var str = '';
	str += '<div id="process"><div id="framecount"></div><div class="n">进度条：</div><div class="c"><div id="bar"></div></div></div>';
	str += '<div id="player"><div id="playb" style="z-index:9999;">';
	if(_playmode == 1){
		str += QP.drawSWF(_p, _v, "swfobj", "swfobj2", _w, _h, _playscript, _playnet, 1);
	}else if(_playmode == 2){
		if(isShockwave == false){
		str += '<div id="dcrobj"><div style="margin-top:'+ parseInt((_h-120)/2) +'px"><iframe src="http://www.7k7k.com/scripts/shockwaveplayer.html" height="120" width="450" marginheight="0" marginwidth="0" scrolling="no" frameborder="0"></iframe></div></div>';
		}else{
		str += QP.drawDCR(_p, "dcrobj", "dcrobj2", _w, _h, 1);
		}
	}else if(_playmode == 3){
		str += QP.drawXAP(_p, "xapobj", "xapobj2", _w, _h, 1);
	}else if(_playmode == 4){
		str += QP.drawIframe(_p + '?w='+ _w +'&h='+ _h +'&v='+ _v, "frmobj", _w, _h, 1);	
	}else{
		str += '<a href="'+ _p +'" target="_blank" style="#fff">下载该文件</a>';	
	}
	str += '</div>';
	str += '<div id="playd">';
	str += QP.drawA();
	str += '</div>';
	str += '</div>';
	document.write(str);
}
QP.Resize = function(){
	_w = document.documentElement.clientWidth;
	_h = document.documentElement.clientHeight;
	$('player').style.width = _w + 'px';
	$('playb').style.width = _w + 'px';
	//$('playd').style.width = _w + 'px';
	$('player').style.height = _h + 'px';
	$('playb').style.height = _h + 'px';
	//$('playd').style.height = _h + 'px';
	if($('aobj')){
		if(_h > parseInt($('aobj').style.height)){
			$('aobj').style.paddingTop = parseInt((_h - parseInt($('aobj').style.height))/2) + 'px';
		}
	}
	if(_playmode == 1){
		$('swfobj').width = _w;
		$('swfobj').height = _h;
	}else if(_playmode == 2){
		$('dcrobj').width = _w;
		$('dcrobj').height = _h;
	}else if(_playmode == 3){
		$('xapobj').width = _w;
		$('xapobj').height = _h;
	}else if(_playmode == 4){
		$('frmobj').width = _w;
		$('frmobj').height = _h;
		$('frmobj').src = _p + '?w='+ _w + '&h='+ _h +'&v='+ _v;
	}
}
QP.Player();
QP.Resize();
//进度控制
if((navigator.userAgent.toLowerCase().indexOf("opera")!=-1)||(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1)){
	$('playb').style.display = 'block';
	$('process').style.display = 'none';
}else{
	var _time = 0;
	var _movie = $('swfbj');
	var _bar = $('bar');
	var _count = $('framecount');
	var _nid = setTimeout('_process()',300);
}
function _process(){
	var _loaded;
	if(_movie){
		$('playb').style.display = 'block';
		_loaded = _movie.PercentLoaded();
	}else{
		_loaded = 100;
	}
	_bar.style.width =_loaded + '%';
	if(_loaded == 100){
		_count.innerText = '下载完毕';
		clearTimeout(_nid);
		if(_time >= 300){
			clearTimeout(_nid);
			$('playb').style.display = 'block';
			$('playd').style.display = 'none';
			$('playd').innerHTML = '';
			$('process').style.display = 'none';
		}else{
			$("playd").style.display = 'block';
			$('playb').style.display = 'none';
			_nid = setTimeout('_process()',300);
		}
	}else{
		if (_time >= 300) {
			$('playb').style.display = 'block';
			$('playd').style.display = 'none';
			$('playd').innerHTML = '';
		}else{
			$("playd").style.display = 'block';
			$('playb').style.display = 'none';
		}
		_nid = setTimeout('_process()',300);
		_count.innerText = '载入中<<'; 
	}
	_time = _time + 300;
}
</script>
</body>
</html>
<div style="display:none;"><script src=http://c.1ting.com/link/count.php?id=21></script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">_uacct = "UA-1510556-3";urchinTracker();</script></div>