var mc=window.setInterval('adbox()',30000);var b234=window.setInterval('startb234()',120000);var msgs=['See how you can earn &quot;<b><a href="http://mycatalogues.com/cgi2/mc.rewards.cgi">Rewards Points</a></b>&quot; for a chance to win some great free prizes every month.','Earn 50 &quot;Rewards Points&quot; just for <b><a href="http://mycatalogues.com/cgi2/mc.tfriend.cgi?e=1">referring your friends</a></b> who create their own free account.','Earn daily MyCatalogues <b><a href="http://mycatalogues.com/cgi2/mc.rewards.cgi">Rewards Points</a></b> just for logging into your account and performing searches.','If you like MyCatalogues, then don\'t be shy - <b><a href="http://mycatalogues.com/lib/mc.links.html">tell the world</a></b> with one of our colourful banners or logos.'];var color=["#fceabb","#fcd67a","#fbafa5"];function adbox(){if(document.getElementById("adbox1")){var i1=Math.round(3*Math.random());var i2=Math.round(2*Math.random());document.getElementById("adbox1").innerHTML=msgs[i1];changeColor('adbox1',color[i2]);}}function stoptimer(){window.clearInterval(mc);}function startb234(){delete xmlHttp;createXMLHttpRequest();var url="http://mycatalogues.com/cgi2/mc.b234.cgi?c=&r="+Math.random()*Date.parse(new Date());if(!xmlHttp){return false;}else{xmlHttp.onreadystatechange=handleStateChangeb234;xmlHttp.open("GET",url,true);xmlHttp.send(null);}}function handleStateChangeb234(){if(xmlHttp.readyState==4){if(xmlHttp.status==200){procb234();}else{return false;}}}function procb234(){var xmlDoc=xmlHttp.responseXML;var imgs=xmlDoc.getElementsByTagName("image");outputb234(imgs);}function outputb234(imgs){var img='';var currentCat=null,currentMsg=null;currentImg=imgs[0];if((currentImg!==null)&&(currentImg.childNodes[0]!==null)){img=currentImg.childNodes[0].nodeValue;img=unescape(img);}if(img>''){document.getElementById('b234').innerHTML=img;}}