var browserType;

if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {
   browserType= "gecko"
}

function hide() {
  if (browserType == "gecko" )
     document.poppedLayer = 
         eval('document.getElementById("crpop1")');
  else if (browserType == "ie")
     document.poppedLayer = 
        eval('document.getElementById("crpop1")');
  else
     document.poppedLayer =   
        eval('document.layers["crpop1"]');
  document.poppedLayer.style.visibility = "hidden";
}



function CRpopdiv(l) {
var css       = 'position:fixed;';
if(document.all && window.XMLHttpRequest){

  
  if( ( window.document.childNodes[0].text == undefined ) || ( window.document.childNodes[0].text.search(/DOCTYPE\s+HTML\s+PUBLIC.+\.dtd/i) == -1) ){
    css = 'position:absolute; top:expression( eval( document.compatMode && document.compatMode == \'CSS1Compat\' ) ? documentElement.scrollTop + (documentElement.clientHeight-this.clientHeight) : document.body.scrollTop + ( document.body.clientHeight-this.clientHeight ) ); ';
  }

}
if(document.all && !window.XMLHttpRequest){
  css = 'position:absolute; top:expression( eval( document.compatMode && document.compatMode == \'CSS1Compat\' ) ? documentElement.scrollTop + (documentElement.clientHeight-this.clientHeight) : document.body.scrollTop + ( document.body.clientHeight-this.clientHeight ) ); ';
}

brands = [ "ca", "cc", "ccc", "zc", "gt" ]
var keyword = brands[Math.floor(Math.random()*brands.length)]

	document.write( '<div id="crpop1" style="' + css + ' z-index:99999; bottom:0px; width:210px; height:126px; right:5px; overflow:hidden;"><div style="z-index:99;overflow:hidden;width:210px;height:126px;background:transparent;"><div id="crdivh" style="position:relative;bottom:-130px;right:0;width:210px;height:126px;background:transparent:"><table width="210" height="126" border="0" cellpadding="0" cellspacing="0"><tr><td><a href="http://www.rewardsafftrack.eu/affiliate/referral.asp?site='+keyword+'&aff_id='+l+'" target="_blank"><img src="http://www.rewardsaffiliates.com/other/msnpop-en/msnpopup_01.png" width="177" height="29" alt="" border="0"></a></td><td><span onclick="hide();" value="hide" style="cursor:pointer;"><img src="http://www.rewardsaffiliates.com/other/msnpop-en/msnpopup_02.png" width="33" height="29" alt="" border="0"></span></td></tr><tr><td colspan="2"><a href="http://www.rewardsafftrack.eu/affiliate/referral.asp?site='+keyword+'&aff_id='+l+'" target="_blank"><img src="http://www.rewardsaffiliates.com/other/msnpop-en/'+keyword+'.png" width="210" height="97" alt="" border="0"></a></td></tr></table></div></div>' );
}

function slideIn()
{
var slidingDiv = document.getElementById("crdivh");
if (parseInt(slidingDiv.style.bottom) < 0 )
{
slidingDiv.style.bottom = parseInt(slidingDiv.style.bottom) + 4 + "px";
setTimeout(slideIn, 10);
}
}