//Your banner
var bp_timer_w6aXiupP1a3dNqMxR1uC=null;
var bp_w6aXiupP1a3dNqMxR1uC_banner=null;
function bp_display_w6aXiupP1a3dNqMxR1uC(bp_code,bp_w,bp_h,bp_bid) {
	bp_w6aXiupP1a3dNqMxR1uC_banner=bp_bid;
	bp_ins=document.createElement("div");
	bp_ins.style.width=bp_w+"px";
	bp_ins.style.height=bp_h+"px";
	bp_ins.innerHTML=bp_code;
	if (bp_tar=document.getElementById("bp_holder_w6aXiupP1a3dNqMxR1uC")) {
		bp_kids=bp_tar.childNodes;
		for(bp_i=bp_kids.length-1;bp_i>=0;bp_i--) bp_tar.removeChild(bp_kids[bp_i]);
		bp_tar.appendChild(bp_ins);
		bp_rotate=5;
		if (bp_rotate>0) setTimeout('bp_fetch_w6aXiupP1a3dNqMxR1uC()',bp_rotate*1000*60);
	}
}
function bp_fetch_w6aXiupP1a3dNqMxR1uC() {
    bp_docUrl="http://www.bannerpanel.net/holder.php?apikey=w6aXiupP1a3dNqMxR1uC&type=json&lastbanner="+bp_w6aXiupP1a3dNqMxR1uC_banner;
	bp_Obj = new bp_JSON(bp_docUrl);
	bp_Obj.buildScriptTag();
	bp_Obj.addScriptTag();
}
function bp_JSON(fullUrl) {
    this.fullUrl = fullUrl; 
    this.noCacheIE = '&noCacheIE=' + (new Date()).getTime();
    this.headLoc = document.getElementsByTagName("head").item(0);
    this.scriptId = 'JscriptId' + bp_JSON.scriptCounter++;
}
bp_JSON.scriptCounter = 1;
bp_JSON.prototype.buildScriptTag = function () {
    this.scriptObj = document.createElement("script");
    this.scriptObj.setAttribute("type", "text/javascript");
    this.scriptObj.setAttribute("charset", "utf-8");
    this.scriptObj.setAttribute("src", this.fullUrl + this.noCacheIE);
    this.scriptObj.setAttribute("id", this.scriptId);
}
bp_JSON.prototype.removeScriptTag = function () {
    this.headLoc.removeChild(this.scriptObj);  
}
bp_JSON.prototype.addScriptTag = function () {
    this.headLoc.appendChild(this.scriptObj);
}
bp_display_w6aXiupP1a3dNqMxR1uC('<a href=\"http://bannerpanel.net/click44\" target=\"_blank\"><img src=\"http://bannerpanel.net/banner/44.gif\" border=0 /></a>',180,150,106);

