function wH(){ if (document.all){ // msie of opera var HVal=(document.compatMode=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight; }else{ // mozilla var HVal = window.innerHeight; } return HVal; } function wW(){ if (document.all){ // msie of opera var HVal=(document.compatMode=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth; }else{ // mozilla var HVal = window.innerWidth; } return HVal; } function gw(i) { var ival = (i.innerWidth ? i.innerWidth : (i.offsetWidth ? i.offsetWidth : i.screen.availWidth)); return ival; } function gh(i) { var ival = (i.innerHeight ? i.innerHeight : (i.offsetHeight ? i.offsetHeight : i.screen.availHeight)); return ival; } function getRealPos(ele,ask){ (ask=="x") ? pos = ele.offsetLeft : pos = ele.offsetTop; tempEle = ele.offsetParent; while(tempEle != null){ pos += (ask=="x") ? tempEle.offsetLeft : tempEle.offsetTop; tempEle = tempEle.offsetParent; } return pos; } function stringReplace(sIn, sFind, sReplace){ var i; var sTemp = sIn; for (i = 1; i < sIn.length; i++){ sTemp = sTemp.replace(sFind, sReplace); } return sTemp; } function trim(value) { var temp = value; var obj = /^(\s*)([\W\w]*)(\b\s*$)/; if (obj.test(temp)) { temp = temp.replace(obj, '$2'); } var obj = / /g; while (temp.match(obj)) { temp = temp.replace(obj, " "); } return temp; }var pid =0; var Winh = 0; var Winw = 0; var bHeight = 0; var Btop = 0; var bLeft = 0; var isInframe = 0; var admatchbpageisloaded = false; function banfunct_893_ads(cnt){ var url = "http://adspaces.totalwebvertising.com/banads/bannerview.php?pid=1342&siteid=553&adtype=2&ad_format=8&ad_channel=1638&catfilter=0&exclcatfilter=0&adcolor=0&transparent=1&ad_bgcolor=FFFFFF&ad_bordercolor=006FCC&ad_titlecolor=AA0007&ad_textcolor=000000&ad_urlcolor=FFE098&adwidth=234&adheight=72&adformat=0&spaceid=1099"; var b=window;var a=document;var e=null; var sloc = escape(a.location); try{ if (b.parent !=e){ if (b.parent.location != a.location && b.parent.location !=e){ sloc2 = escape(a.referrer); if (sloc2 !=""){sloc = sloc2;} } } }catch(_e){} url += "&document="+sloc; var query = b.location.search.substring(1); var vars = query.split("&"); for (var i=0;i'); return url; } function err_handler(b,a){return true} var banurl_693_ =''; var timer = 1328345102; if (window.admatch_bantel == null){ var admatch_bantel=0; var admatch_banloadtel=1; var admatch_banurls = new Array(); var oldonload = window.onload; } if (window.admatch_pid !=null){ pid = window.admatch_pid; } if (admatch_bantel <=4 || pid==1 ){ admatch_bantel++; admatch_banurls[admatch_bantel] = banfunct_893_ads(admatch_bantel); } function banfunct_893_run(cnt,chk){ var surl = admatch_banurls[cnt]; var frm = document.getElementById("admatch_banner" +cnt); if (surl !='' && surl!='undefined'){ if (frm){ calcbannerpos(frm); surl += "&pos="+Winw+","+Winh+","+bHeight+","+bLeft+","+Btop+","+isInframe; if (cnt == admatch_bantel){ surl += '&act=end';} if (frm.src !=surl){ frm.src = surl;} banfunct_893_run(cnt +1,1); if (cnt == admatch_bantel){ // admatch_banurls = null; // admatch_bantel=0; // window.admatch_bantel = null; } }else{ if (cnt < admatch_bantel){ if (chk <10){ setTimeout("banfunct_893_run("+cnt+","+ chk +1+");",200); } } } } } function banfunct_893_admatch_loaded(frame,tel){ if (frame.src != 'about:blank'){ admatch_banloadtel++; banfunct_893_run(admatch_banloadtel,0); }else{ if (tel == 1){return;} if (tel == admatch_banloadtel && frame.src == 'about:blank'){ banfunct_893_run(admatch_banloadtel,0); } } } function calcbannerpos(frm){ if (frm){ try{ Btop = getRealPos(frm,"y"); Bleft = getRealPos(frm,"x"); var d = document.body; bHeight = wH() + d.scrollTop; //bHeight = gh(d) + d.scrollTop; Winh = bHeight + d.scrollHeight; Winw = gw(d); }catch(_e){} } if (window.parent !=null && window.parent !=this){ isInframe =1; try{ var f = this.frameElement; Btop = getRealPos(f,"y"); Bleft = getRealPos(f,"x"); var d = window.parent.document.body; bHeight = gh(d) + d.scrollTop; Winh = bHeight + d.scrollHeight; Winw = gw(d); isInframe =0; }catch(_e){} } } function checkPageload(){ if (document.body){ try{ if (wH() > 0){ admatchbpageisloaded = true; banfunct_893_run(1,0); return; } }catch(_e){} } setTimeout("checkPageload();",500); } if (admatch_bantel ==1){ //window.onload = function(){ //if (!admatchbpageisloaded){ banfunct_893_run(1,0);} //if (oldonload !=null){try{oldonload} catch(_e){};} //} window.onunload = function(){ for (var i=0; i<= admatch_bantel; i++){ var frm = document.getElementById("admatch_banner" +i); if (frm){ frm.parentNode.removeChild(frm); } } admatch_banurls = null; admatch_bantel=0; window.admatch_bantel = null; } /* */ ///setTimeout("checkPageload();",500); checkPageload(); }