function $()
{var _=new Array();
for(var A=0;A<arguments.length;A++)
{var $=arguments[A];
if(typeof $=="string")
$=document.getElementById($);
if(arguments.length==1)
return $;_.push($)}return _}
document.getElementsByClassName=function(B){var _=document.getElementsByTagName("*")||document.all,D=new Array();for(var E=0;E<_.length;E++){var $=_[E],A=$.className.split(" ");for(var C=0;C<A.length;C++)if(A[C]==B){D.push($);break}}return D};function getCookie(_){var $=document.cookie.indexOf(_+"="),A=$+_.length+1;if((!$)&&(_!=document.cookie.substring(0,_.length)))return null;if($==-1)return null;var B=document.cookie.indexOf(";",A);if(B==-1)B=document.cookie.length;return unescape(document.cookie.substring(A,B))}function setCookie(_,E,$,D,C,B){var F=new Date();F.setTime(F.getTime());if($)$=$*1000*60*60*24;var A=new Date(F.getTime()+($));document.cookie=_+"="+escape(E)+(($)?";expires="+A.toGMTString():"")+((D)?";path="+D:"")+((C)?";domain="+C:"")+((B)?";secure":"")}function deleteCookie($,A,_){if(getCookie($))document.cookie=$+"="+((A)?";path="+A:"")+((_)?";domain="+_:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}function trim($){return $.replace(/(^\s*)|(\s*$)/g,"")}function adRandom(adDiv){var adImg=eval(adDiv+"_img"),adLink=eval(adDiv+"_link"),aid=rand(adImg.length),ad_img=adImg[aid],ad_src=(adLink[aid]==undefined)?"#":adLink[aid];creathtml(adDiv,ad_img,ad_src)}function nextAd(adDiv,adTime){var i=1,adImg=eval(adDiv+"_img"),adLink=eval(adDiv+"_link"),aid=adImg.length,ad_img=adImg[i-1],ad_src=(adLink[i-1]==undefined)?"#":adLink[i-1];creathtml(adDiv,ad_img,ad_src);var theTimer=setInterval(function(){var $=adImg[i],_=(adLink[i]==undefined)?"#":adLink[i];$.onload=A();function A(){creathtml(adDiv,$,_);if(i<(aid-1))i++;else i=0}},adTime*1000)}function creathtml(C,_,E,D){var G=$(C);G.innerHTML="";if(_=="flash"){var A=E.split("|");if(A[3]=="transparent")flash(C,A[0],"richad_swf"+rand(1000),A[1],A[2],true);else flash(C,A[0],"richad_swf"+rand(100),A[1],A[2],false)}else{var F=document.createElement("a");F.setAttribute("href",E);F.setAttribute("target","_blank");if(D!=undefined)F.setAttribute("id",D+"a");G.appendChild(F);var B=document.createElement("img");B.setAttribute("src",_);B.setAttribute("alt","");if(D!=undefined)B.setAttribute("id",D);F.appendChild(B)}}

function cssLeft(_,A)
{
	$(_).style.left=parseInt(A)+"px"
}
function cssTop(_,A)
{
	$(_).style.top=parseInt(A)+"px"
}

function cssEqual(_,D)
{
	var C=$(_),E=$(D),B=C.offsetHeight;
	B=parseInt(B);
	var A=E.offsetHeight;A=parseInt(A);
	var F=(B>A)?B:A;
	C.style.height=F+"px";
	E.style.height=F+"px"
}
function GetXY(A)
{
	if(arguments.length!=1||A==null)
	return null;
	var E=$(A),D=E.offsetTop,C=E.offsetLeft,B=E.offsetWidth,_=E.offsetHeight;
	while(E=E.offsetParent)
	{
		if(E.style.position=="absolute"||E.style.position=="relative"||(E.style.overflow!="visible"&&E.style.overflow!=""))break;
		D+=E.offsetTop;C+=E.offsetLeft}
		return{absoluteTop:D,absoluteLeft:C,offsetWidth:B,offsetHeight:_}}
		
function doZoom(A,_)
{
	if(_==undefined)
	{
		if($("content")!=null)
		$("content").style.fontSize=A+"px"}
		else 
		$(_).style.fontSize=A+"px"}
		var alLeft=0,alCenter=1,alRight=2,alTop=0,alMiddle=1,alBottom=2,f=new Array(),cnt=0;
		
function richMedia(_,B,A,E,D,C,$)
{
//			alert(_,B,A,E,D,C,$);
	f[cnt++]=new floatDiv(_,B,A,E,D,C,$);
	setTimeout("floatMove();",50)
	}
function floatDiv(A,C,B,F,E,D,_)
{
	this.adDiv=A;
	this.align=C;
	this.vAlign=B;
	this.x=F;
	this.y=E;
	this.move=D;
	this.smooth=_;
//	alert(C);
$(this.adDiv).style.position="absolute";
$(this.adDiv).style.zIndex="99"}

function floatMove()
{    
//	alert(B,D);
	var B,D;

if(document.getElementById)
{
	if(document.body.scrollLeft=="0")
		var A=document.documentElement;
	else 
		A=document.body;
		
	for(var F=0;F<f.length;F++)
	{
		var C=$(f[F].adDiv);
		if(f[F].move)
			var E=A.scrollLeft,_=A.scrollTop;
		else E=0,_=0;
		switch(f[F].align)
		{
			
			case"alLeft":B=E+f[F].x;break;
			case"alCenter":B=E+Math.ceil((A.clientWidth-C.offsetWidth)/2)+f[F].x;break;
			case"alRight":B=E+A.clientWidth-f[F].x-C.offsetWidth-20;break

			
			}
			switch(f[F].vAlign)
			{
				case"alTop":D=_+f[F].y;break;
				case"alMiddle":D=_+Math.ceil((A.clientHeight-C.offsetHeight)/2)+f[F].y;break;
				case"alBottom":D=_+A.clientHeight-f[F].y-C.offsetHeight;break
				}

			if(f[F].smooth)
				smoothMove(f[F].adDiv,B,D);
			else{
				C.style.left=B+"px";
				C.style.top=D+"px"}
			}
			}

if(document.layers)
for(F=0;F<f.length;F++)
{
	
	C=$(f[F].adDiv);if(f[F].move)E=pageXOffset,_=pageYOffset;else E=0,_=0;
	switch(f[F].align)
	{
		case"alLeft":B=E+f[F].x;break;case"alCenter":B=E+Math.ceil((window.innerWidth-C.width)/2)+f[F].x;break;

		case"alRight": B=E+A.clientWidth-f[F].x-C.offsetWidth-20;break
		}
	switch(f[F].vAlign)
	{
		case"alTop":D=_+f[F].y;break;case"alMiddle":D=_+Math.ceil(window.innerHeight/2)+f[F].y;break;
		case"alBottom":D=_+window.innerHeight-f[F].y-C.height;break
		}
		
	if(f[F].smooth)
	smoothMove(f[F].adDiv,B,D);
	else
	{C.left=B+"px";C.top=D+"px"}}
	setTimeout("floatMove();",50)}
	
function smoothMove(B,F,E)
{
//	alert(B,F,E);
	var A,C=$(B);
	if(document.getElementById)
	{

//		A=0.1*(F-parseInt(C.style.left));
		A=0.1*(F-parseInt(C.style.right));
//		alert(C.style.left);
		if(A>0)
			A=Math.ceil(A);
		else 
			A=Math.floor(A);
		
//		var _=parseInt(C.style.left)+A;
		var _=parseInt(C.style.right)+A;
		if(isNaN(_))_=0;
		C.style.left=_+"px";
		A=0.1*(E-parseInt(C.style.top));
		if(A>0)
			A=Math.ceil(A);
		else 
			A=Math.floor(A);
			
//		alert(A);
		var D=parseInt(C.style.top)+A;
		if(isNaN(D))D=0;
			C.style.top=D+"px"}
		if(document.layers)
		{A=0.1*(F-C.left);
		
		if(A>0)A=Math.ceil(A);
		else A=Math.floor(A);
		
		C.left+=A;A=0.1*(E-C.top);
		
		if(A>0)A=Math.ceil(A);
		else A=Math.floor(A);
		
		C.top+=A

		}
		
		}

function divOut(A,_,C)
{

	if(_)
	{
		$(A).style.visibility="visible";
		var B=setInterval(function()
								  
								   {
									   vista=($(A).style.visibility=="visible")?"hidden":"visible";
									   $(A).style.visibility=vista},C*1000)}
	else{
		$(A).style.display="block";
		B=setInterval(function()
							   {if($(A).style.display=="block")$(A).style.display="none";else clearInterval(B)},C*1000)
		}}
		
function hideORview(A)
{
	if(isNaN($(A).style.display)==false)
	$(A).style.display="block";
	var _=($(A).style.display=="block")?"none":"block";$(A).style.display=_}
	
function see()
{
	for(var A=0;A<arguments.length;A++)
	{
		var _=arguments[A];$(_).style.display="visible"}}
		
function disee()
{
	for(var A=0;A<arguments.length;A++)
	{
		var _=arguments[A];$(_).style.visibility="hidden"}}

function hide()
{
	for(var A=0;A<arguments.length;A++)
	{
		var _=arguments[A];$(_).style.display="none"}}
		
function view()
{
	for(var A=0;A<arguments.length;A++)
	{
		var _=arguments[A];$(_).style.display="block"}
		
}

function p($)
{
	document.write($)}
	
function newOpen(D,B,$,A,C)
{
	var _=(C=="no_scroll")?"no":"yes";window.open(D,A,"statusbar=no,scrollbars="+_+",status=no,resizable=no,width="+B+",height="+$)}
	
function layerClick(_,A,B)
{
	if(typeof _!="string")_=_.toString();
	if(B==0)
	{
		for(i=1;i<A+1;i++)$(_+i).style.display="none"}
	else
		{for(i=1;i<A+1;i++)$(_+i).style.display="none";$(_+B).style.display="block"}}
		
function timeOver(C,H,E,_,G,F,B){var A=new Date();A.setFullYear(H,E,_);
A.setHours(G,F,B);
var D=setInterval(function()
						   {
							   var H=new Date(),I=A.getTime()-H.getTime();_=I/(3600000*24);drnd=Math.floor(_);G=I/3600000-(24*drnd);hrnd=Math.floor(G);E=I/60000-(24*60*drnd)-(60*hrnd);mrnd=Math.floor(E);B=I/1000-(24*60*60*drnd)-(60*60*hrnd)-(60*mrnd);srnd=Math.round(B);if(srnd==60)srnd=59;var F="<span>"+drnd+"</span> \u5929 <span>"+hrnd+"</span> \u5c0f\u65f6 <span>"+mrnd+"</span> \u5206"+" <span>"+srnd+"</span> \u79d2";if(I>0)$(C).innerHTML=F;else{clearInterval(D);$(C).innerHTML=""}},100)}rnd.today=new Date();rnd.seed=rnd.today.getTime();function rnd(){rnd.seed=(rnd.seed*9301+49297)%233280;return rnd.seed/(233280)}

function rand($){return Math.floor(rnd()*$)}

function getUrlName(_){var $=String(window.location.href),B=new RegExp("(^|)"+_+"=([^&]*)(&|$)","gi").exec($),A;if(A=B)return A[2];else return"0"}

function flash(H,J,E,D,C,G){var F="",K="";if(G)F="<param name=\"wmode\" value=\"transparent\">",K="wmode=\"transparent\"";var _="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" name=\""+E+"\" width=\""+D+"\" height=\""+C+"\" id=\""+E+"\"><param name=\"movie\" value=\""+J+"\" /><param name=\"quality\" value=\"high\" />"+F+"<embed src=\""+J+"\" width=\""+D+"\" height=\""+C+"\" quality=\"high\" "+K+" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" name=\""+E+"\" id=\""+E+"\"></embed></object>";$(H).innerHTML=_;try{var B=$(E).GetVariable("Stage.width")?$(E).GetVariable("Stage.width"):$(E).TGetProperty("_root",8)}catch(A){}try{var I=$(E).GetVariable("Stage.height")?$(E).GetVariable("Stage.height"):$(E).TGetProperty("_root",9)}catch(A){}if(D==undefined||D==false||C==false||C==undefined){_="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" name=\""+E+"\" width=\""+B+"\" height=\""+I+"\" id=\""+E+"\"><param name=\"movie\" value=\""+J+"\" /><param name=\"quality\" value=\"high\" />"+F+"<embed src=\""+J+"\" width=\""+B+"\" height=\""+I+"\" quality=\"high\" "+K+" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" name=\""+E+"\" id=\""+E+"\"></embed></object>";$(H).innerHTML=_}}var _p=new Array();

function switchAd(adDiv,adTime,smallDiv)

{var adImg=eval(adDiv+"_img"),aid=adImg.length;$(adDiv).innerHTML="<style>#"+adDiv+" img{filter:progid:DXImageTransform.Microsoft.Fade(Overlap=1.00);}</style>";$(adDiv).innerHTML+="<div id=\""+adDiv+"_pf_img\"></div>";
var s="<div id=\""+adDiv+"_pf_menu\">";
for(var i=0;i<aid;i++)s+=("<div id=\""+adDiv+"_pf_menu_"+i+"\" class=\""+smallDiv+"\"><a href=\"javascript:startSwitchAd('"+adDiv+"',"+i+");\">"+(i+1)+"</a></div>");s+="</div>";$(adDiv).innerHTML+=s;$(adDiv).style.position="relative";var a=GetXY(adDiv),b=GetXY(adDiv+"_pf_menu"),xi=a.offsetWidth-b.offsetWidth,yi=a.offsetHeight-b.offsetHeight;cssLeft(adDiv+"_pf_menu",xi-2);cssTop(adDiv+"_pf_menu",yi-2);switchAd_main(adDiv,adTime,smallDiv)}

function switchAd_main(adDiv,adTime,smallDiv){var adImg=eval(adDiv+"_img"),adLink=eval(adDiv+"_link"),aid=adImg.length,ad_img=adImg[0],ad_src=(adLink[0]==undefined)?"#":adLink[0],imgId="x_filt_"+adDiv+"_img"+aid;creathtml(adDiv+"_pf_img",ad_img,ad_src,imgId);var filt=new Array();filt[0]="progid:DXImageTransform.Microsoft.gradientWipe(duration=1)";filt[1]="progid:DXImageTransform.Microsoft.Fade(Overlap=1.00)";filt[2]="revealTrans(Transition=12,Duration=1)";filt[3]="revealTrans(Transition=21,Duration=1.5)";filt[4]="revealTrans(Transition=22,Duration=1.5)";filt[5]="revealTrans(Transition=10,Duration=1.5)";_p[adDiv]=[adDiv,imgId,adImg,adLink,aid,adTime,0,filt,smallDiv];startSwitchAd(adDiv)}

function startSwitchAd(C,_)
{	
	try{
		window.clearTimeout(_pf_st)}
		catch(B){}var G=_p[C][6];if(_>=0)G=_;var A=_p[C][1],F=_p[C][2],J=_p[C][3],E=_p[C][5],D=_p[C][7],H=rand(D.length);$(A).src=F[G];$(A+"a").href=J[G];for(var I=0;I<_p[C][4];I++)$(C+"_pf_menu_"+I).className=_p[C][8];$(C+"_pf_menu_"+G).className=_p[C][8]+"_active";try{$(A).style.filter=D[H];$(A).filters.item(0).apply();$(A).filters.item(0).play()}catch(B){}G++;if(G>=_p[C][4])G=0;_p[C][6]=G;_pf_st=setTimeout(function(){startSwitchAd(C)},1000*E)}