// Code for IE6 for CSS dropdown menu
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/*--------Preload images used in CSS a:hover--------*/
if (document.images) 
{
   img1 = new Image();
   img1.src = "/images/playboy-gaming-nav-over.gif";
}
function write_me(html) {
	document.write(html);
}

window.onload = function () {
	attach_tracking_code();
}

// attach source cod in the href of an exe
function attach_tracking_code(){
	if (getCookie('src_cd')) {
		if (document.getElementsByTagName) {
			var hrefs = document.getElementsByTagName('a');
		} else if(document.all) {
			var hrefs = document.all.tags('a');
		}
		for (i=0;i<hrefs.length;i++)
		{
			var url = hrefs[i].href.split("/");
			var temp_id = "playboypoker_software_" + i;
			var real_id = hrefs[i].id;
			hrefs[i].id=temp_id;
			hrefs[i].href = hrefs[i].href+'?'+unescape(getCookie('src_cd'));
			hrefs[i].id=real_id;
		}
	}
}