//..FR....... // initialise globals // is a hover already open? var lastOpened = ''; // are you over a hover? var rolling = false; // timeout var sleepTimeout; var wakeTimeout; // set the x/y offsets if (!document.body.offsetWidth) { winW = window.innerWidth; winH = window.innerHeight; } else { winW = document.body.offsetWidth; winH = document.body.offsetHeight; } /* ** get the width of an object */ function getWidth(obj) { if(typeof obj=="string") obj = document.getElementById(obj); return (obj.offsetWidth); } /* ** find the x position of an object */ function findPosX(obj) { // if the object is a string then get the element with that id/name if(typeof obj == "string") obj = document.getElementById(obj); var curleft = 0; // if there is a parent ... if (obj.offsetParent) { // get the x pos of the current object while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } // otherwise just get the x coord else if (obj.x) curleft += obj.x; // return the left/x coord return curleft; } /* ** find the y position of an object */ function findPosY(obj) { // get the actual entity if the obj is a string if(typeof obj == "string") obj = document.getElementById(obj); var curtop = 0; // if has a parent .. if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } // .. otherswise just get y coord else if (obj.y) curtop += obj.y; // return top y coord return curtop; } /* ** decide if to show on the right or the left */ function showRightLeft() { // if the ppartners_cd div is more than half way // show on left, otherwise right if(findPosX('ppartners_cd0')>=(winW/2)) { return 'left'; } else { return 'right'; } } /* ** set the visibility of an object */ function setVisible(obj, bool){ // see if it's a document id, if it's not, then it must be an obj reference if(typeof obj == "string") obj = document.getElementById(obj); // if user chose false, then lets see if the obj needs to be hidden, //and if it does, then hide it. if(bool == false) { if(rolling!=true) { obj.style.display = 'none'; //obj.style.zIndex = 2; } } // the user chose true, or omitted the second parameter. //see if the object is visible. If it isn't, the show it. else { // set display style if(obj.style.display != 'block'); obj.style.display = 'block'; obj.style.visibility = 'hidden'; // set the horizontal to something visible if(showRightLeft()=='left') { // 20px to the left of the image, minus the width of the hover obj.style.left = (parseInt(document.getElementById('ppartners_adimg0').offsetLeft) - (parseInt(getWidth(obj))+20)) + 'px'; } else { // 20px to the right of the right hand edge of the image obj.style.left = (parseInt(document.getElementById('ppartners_adimg0').offsetLeft) + 145) + 'px'; } // set visibility obj.style.visibility = 'visible'; //obj.style.zIndex = 9999999; } // if the rollover is too high move it down if(obj.style.top.replace('px','') <= 0) obj.style.top = '0px'; } //new sleep code /* ** close after delay */ function goSleep(div) { sleepTimeout = window.setTimeout('setVisible(lastOpened, false)', 500); } /* ** open after a small delay */ function wakeUp(div) { lastOpened = div; clearTimeout(wakeTimeout); wakeTimeout = window.setTimeout('setVisible(lastOpened, true)', 350); } function getObj(name) { if (document.getElementById) { return document.getElementById(name); } else if (document.all) { return document.all[name]; } else if (document.layers) { return document.layers[name]; } } /* ** set visibility helper, checks for existance of already opened rollovers */ function invi(flag,div) { if(flag==false) { // close the popup after a delay goSleep(div); } else if(flag=='close') { // x was clicked, just close rolling=false; setVisible(div, false); } else { // if another window is open, close it if(lastOpened!='') { clearTimeout(sleepTimeout); setVisible(lastOpened, false); } // now open this one wakeUp(div); lastOpened=div; } } // /* ** function to sort the array */ function shuffle( myArray ) { var i = myArray.length; if ( i == 0 ) return false; while ( --i ) { var j = Math.floor( Math.random() * ( i + 1 ) ); var tempi = myArray[i]; var tempj = myArray[j]; myArray[i] = tempj; myArray[j] = tempi; } } /* ** */ function doPing() { var y; var ref; var rn; y = findPosY('partnersAdblock'); ref = escape(document.referrer); rn = Math.floor(Math.random()*99999999); document.images['pping'].src = 'http://partners.performancing.com/ping.php?b=' + partnersBlogId + '&y=' + y + '&r=' + ref + '&rn=' + rn; } /* ** */ function getHighest() { var allElems = document.getElementsByTagName?document.getElementsByTagName('*'): document.all; // or test for that too var maxZIndex = 0; for(var i=0;i'); this_ad = '';this_ad ='

#### Email Service

Free Email for Life with Unlimited Storage
Register Now
'; partner_ad[x] = this_ad;x=x+1; this_ad = '';this_ad ='

#### Holiday

Same day loans up to 500 Dollars with no Credit Check! Apply Online or by Phone Instant Approval
Holiday Shopping Money
'; partner_ad[x] = this_ad;x=x+1; this_ad = '';this_ad ='

#### Credit Card Search Engine

Compare and Apply for Credit Cards
Apply for Credit Cards
'; partner_ad[x] = this_ad;x=x+1; this_ad = '';this_ad ='

#### Free Prints and Photo Gifts

Exclusive HotTorrent Offers. 30 Free Prints. Free Photo Mug. Free 8.5x11 12 Month Photo Calendar. and More....
GET YOURS NOW!!!
'; partner_ad[x] = this_ad;x=x+1; shuffle(partner_ad); var paidads = partner_ad; partner_ad = Array(); shuffle(partner_ad); var pubads = partner_ad; partner_ad = new Array(); partner_ad = paidads.concat(pubads); for(var b=0;b<(partner_ad.length);b++){ if(partner_ad[b]) document.write(partner_ad[b]); }; document.write('
');doPing();