// JavaScript Document

// preload nav images
var images = new Array();
images.push( "navbutton_home_over.gif" );
images.push( "navbutton_videos_over.gif" );
images.push( "navbutton_flash_over.gif" );
images.push( "navbutton_pics_over.gif" );
images.push( "navbutton_celebs_over.gif" );
images.push( "navbutton_contact_over.gif" );
// loop and load
for( var i = 0; i < images.length; i++ ){
	var thisImage = new Image;
	thisImage.src = "/images/" + images[i];
}

function registerOutClick( id, tbl ){
	var url = "/xml/clickout.php?id=" + id + "&tbl=" + tbl;
	xmlRequestObj = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
	//xmlRequestObj.onreadystatechange = proccessXML;
	xmlRequestObj.open("GET", url, true);
	xmlRequestObj.send(null);
	return false;
}

function refOut( id ){
	var url = "/ref_process.php?cmd=refout&id=" + id;
	xmlRequestObj = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
	//xmlRequestObj.onreadystatechange = proccessXML;
	xmlRequestObj.open("GET", url, true);
	xmlRequestObj.send(null);
	return false;
}

