﻿var blankImgAddress='';
var shouCountPageAddress='';
var randNumber=Math.random();
var a27='http://www.360che.com/CSS/Default/images/xinke26379gps960_1016.swf';
var l27='http://www.onda.cn/china/move/gps/index.jsp?FROM1=360che';
var h27='60';
var w27='960';
var nad_960_1='60';
var txt27='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" WIDTH="960" HEIGHT="60"><PARAM NAME="src" VALUE="'+a27+'"><param name=wmode value=transparent><embed wmode="transparent" src="'+a27+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="960" height="60"></embed></OBJECT><div onClick="gugaOnClick(27,l27,true,true);" style="BACKGROUND-IMAGE: url('+blankImgAddress+'?id=27);cursor: pointer;position:relative;width:960px;height:60px;z-index:10;left:0px;margin-top:-60px;"></div>';
function showGuGa27()
{
    if (document.getElementById('ad_960_1')!=null){document.getElementById('ad_960_1').innerHTML=txt27;document.getElementById('ad_960_1').style.height=nad_960_1.toString() + 'px';}
}
var a29='http://www.360che.com/images/300150.jpg';
var l29='http://www.360che.com/topic/20100703/';
var h29='150';
var w29='302';
var nad_302_1='150';
var txt29='<img width="302" height="150" src="'+a29+'"><div onClick="gugaOnClick(29,l29,true,true);" style="BACKGROUND-IMAGE: url('+blankImgAddress+'?id=29);cursor: pointer;position:relative;width:302px;height:150px;z-index:10;left:0px;margin-top:-150px;"></div>';
function showGuGa29()
{
    if (document.getElementById('ad_302_1')!=null){document.getElementById('ad_302_1').innerHTML=txt29;document.getElementById('ad_302_1').style.height=nad_302_1.toString() + 'px';}
}
var a47='http://ad.360che.com/AdFiles/2010/0901/0901191615.jpg';
var l47='http://www.360che.com/b_6.html';
var h47='250';
var w47='302';
var nad_302_4='250';
var txt47='<img width="302" height="250" src="'+a47+'"><div onClick="gugaOnClick(47,l47,true,true);" style="BACKGROUND-IMAGE: url('+blankImgAddress+'?id=47);cursor: pointer;position:relative;width:302px;height:250px;z-index:10;left:0px;margin-top:-250px;"></div>';
function showGuGa47()
{
    if (document.getElementById('ad_302_4')!=null){document.getElementById('ad_302_4').innerHTML=txt47;document.getElementById('ad_302_4').style.height=nad_302_4.toString() + 'px';}
}

document.write('<scr'+'ipt id=cSrt></scr'+'ipt>');

function recEnc(eid, gugaid){
SendToPage('http://ad.360che.com/enhccount.aspx?id='+eid+'&adid='+gugaid+'&rnd'+Math.random());
}

function LoadAdvertise(){
LoadGuGa();
}
function LoadGuGa(){
var a19=new Array();
a19[0]=27;

var gugaid=Math.floor(Math.random()*1);
eval("showGuGa"+a19[gugaid]+"();");
SendToPage('http://ad.360che.com/showcount.aspx?id='+a19[gugaid]);
var a20=new Array();
a20[0]=29;

var gugaid=Math.floor(Math.random()*1);
eval("showGuGa"+a20[gugaid]+"();");
SendToPage('http://ad.360che.com/showcount.aspx?id='+a20[gugaid]);
var a35=new Array();
a35[0]=47;

var gugaid=Math.floor(Math.random()*1);
eval("showGuGa"+a35[gugaid]+"();");
SendToPage('http://ad.360che.com/showcount.aspx?id='+a35[gugaid]);

}

function gugaOnClick(gugaid, url, recHit, newWin){
if(newWin) window.open(url);
if(recHit) SendToPage('http://ad.360che.com/hitcount.aspx?id='+gugaid+'&rnd='+Math.random());
}
function SendToPage(fullurl)
{ 
	var SendPageImg = new Image();
	SendPageImg.src = fullurl;
}
function GetGuguaSetHeight(AdSpanId)
{
	  eval('var AdHeight;if(typeof(n'+AdSpanId+')==\'string\'){AdHeight=n'+ AdSpanId+';}else{if(typeof(gugaid_' + AdSpanId + ')=="number"){var IsHaveVar;eval("IsHaveVar=typeof(n' + AdSpanId + '_"+gugaid_' + AdSpanId + '+")");if(IsHaveVar=="string"){eval("AdHeight=n' + AdSpanId + '_"+gugaid_' + AdSpanId + ')}else{AdHeight=0}}else{AdHeight=0}}');
	  return AdHeight;
}
function WriteGuguaDiv(AdSpanId,AdHeight)
{
	if ( AdHeight != 0 )
	{
		document.write('<div id=' + AdSpanId + ' style=height:' + AdHeight + 'px;z-index:0></div>');
	}
	else
	{
		document.write('<div id=' + AdSpanId + ' style=height:1px;z-index:0><spacer></spacer></div>');
	}
}
function WriteAdSpan(AdSpanId)
{
	var AdHeight = GetGuguaSetHeight(AdSpanId);
	WriteGuguaDiv(AdSpanId,AdHeight)
}
function WriteAdSpan(AdSpanId,AdHeight)
{
	var tempHeight = GetGuguaSetHeight(AdSpanId);
	WriteGuguaDiv(AdSpanId,tempHeight);
}
function WriteSpan(AdSpanId)
{
	WriteAdSpan(AdSpanId);
}
function WriteSpan(AdSpanId,AdHeight)
{
	WriteAdSpan(AdSpanId,AdHeight);
}
