function thunderrightbutton_openURL(url) {
	window.open(url);
	if(false){
		try{
			top.fn_banner_click();
		}catch(e){}
	}
}

function thunderrightbutton_sendInfo() {
	var d = new Date();
	var divId = "thunderrightbutton";
	var div = document.getElementById(divId);
	if (!div || div.style.display == "none")
		return;
	if(d.getMinutes() == 1 && d.getSeconds() < 10)
		return;
	
	// zero means don't send randomly
	var isRandom = 20;
	if (Math.floor(Math.random() * isRandom) == 0) {
		var img = document.createElement("img");	
		img.src = getUrlWithPID("http://mediapv.sandai.net/commstat/banner_stat?itemid=1&domain=" + encodeURI(window.location.host) + "&position=1179&ramdon="+Math.random());
	}
}

if (typeof(peerID) == "undefined" || peerID == null) {
	peerID = null;
	try {
		peeridobj = new ActiveXObject("MediaAddin.MediaComm");
		if (peeridobj != null)
			peerID = "xlpeeruuid=" + peeridobj.peerid;
	} catch(e) {
	 peerID = null;
	}
}
if(false && (typeof(peerID)=="undefined"||peerID==null)) {
	peerID=null;
	try{
		thunder_server=new ActiveXObject("ThunderServer.WebThunder.1");
		if(thunder_server!=null){
			peerID="xlpeeruuid="+thunder_server.GetVariable("PEERID");
		}
	}catch(e) {
		peerID=null;
	}
}

if (typeof(window.getUrlWithPID) == "undefined") {
	eval(
		  "function getUrlWithPID(fullurl, split) {"
		+ "	if(peerID == null || fullurl == null) "
		+ "		return fullurl;"
		+ "	var index = fullurl.indexOf('?'); "
		+ "	if(index < 0) return fullurl;"
		+ "	if (index == fullurl.length - 1) "
		+ "		return  fullurl + peerID;"
		+ "	if (split == null) {"
		+ "		split = '&';"
		+ "		var search = fullurl.indexOf('&amp;');"
		+ "		if (search > index) {"
		+ "			split = '&amp;';"
		+ "		} else {"
		+ "			search = fullurl.indexOf('%26');"
		+ "			if (search > index)"
		+ "				split = '%26';"
		+ "		}"
		+ "	}"
		+ "	return fullurl.substring(0, index + 1) + peerID + split + fullurl.substring(index + 1);"
		+ "}"
	);
}

if (true)
	setTimeout("thunderrightbutton_sendInfo()", 10);    if(document.getElementById('thunderrightbutton') != null) { 
    var str = "" 

 str += "<a href='" + getUrlWithPID('http://cknum.sandai.net/fcg-bin/cgi_banner_stat.fcg?id=283516&position=1179&url=http://mediapv.sandai.net/fcg-bin/vzone_entry?itemid=6&position=rightbutton&url=http://v.gougou.com/brand/brandindex.html') + "' target=_blank>";
 str += "<img  src='http://biz5.sandai.net/portal/images/n1208829360234.jpg' border=0 height=217 width=154></img>";
 str += "</a>";

   document.getElementById('thunderrightbutton').innerHTML = str;
   }
 
try{
var r_77=Math.floor(Math.random() * 10)+1;
if(r_77==1){
var i_77=new Image(1,1);
i_77.src="http://mpv.sandai.net/commstat/pv?pvkey=%2Fportal%2Fthunderright";
i_77.onload=function() {return;}
}
}catch(e){
}

