﻿//preload images
var imgDir="/images/";

if (document.images) { 
	var imgObjs=[];
	var iurls=new Array("searchbutton_over.jpg","enterbutton_over.jpg", "createaccountbutton_over.jpg"); 
	for(var i=0; i<iurls.length; i++) { 
		imgObjs[i]=new Image(); imgObjs[i].src = imgDir+iurls[i];
	}
}
function onBtnOver(e){
    var idx = e.target.src.lastIndexOf(".");
    var file = e.target.src.substring(0, idx);
    var ext = e.target.src.substring(idx);
    e.target.src=file+"_over"+ext;
}
function onBtnOut(e){
   e.target.src=e.target.src.split("_over").join("");
}
$(document).ready(function (){
	if($(".rollover").length<=0) return false; //don't go through if there's no form
	$('.rollover').each(function(e){
		$(this).bind('mouseover', onBtnOver);
		$(this).bind('mouseout', onBtnOut);
	});
});
function TellFriend(ref)
{ 
    var str="toolbar=no,status=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height=635,width=500"
	tellaFriend = window.open(ref,"TellObj",str);
    tellaFriend.opener = top;
} 

