// JavaScript Document

var img_url;
if(location.pathname.indexOf("index.php")>=0 || location.pathname.length<4)
	img_url="redhead_card.png";
else if(location.pathname.indexOf("account.php")>=0)
	img_url="spike_computer.png";
else if(location.pathname.indexOf("oncampus.php")>=0)
	img_url="happy_fellow.png";
else if(location.pathname.indexOf("offcampus.php")>=0)
	img_url="pointing_shopper.png";
else if(location.pathname.indexOf("contactus.php")>=0)
	img_url="phone_girl.png";
else if(location.pathname.indexOf("coupons.php")>=0)
	img_url="bald_shopper.png";
else if(location.pathname.indexOf("faq.php")>=0)
	img_url="book_dude.png";
else if(location.pathname.indexOf("departments.php")>=0)
	img_url="retainer_girl.png";
else if(location.pathname.indexOf("merchantinfo.php")>=0)
	img_url="chair_girl.png";
else if(location.pathname.indexOf("call.php")>=0)
	img_url="message_man.png";
else
	img_url="arms_out.png";

preBuffer = new Image();
preBuffer.src = img_url;

function bobble()
{
	document.write('<img src="./img/bobbleheads/'+img_url+'" alt="" class="bobble" />');
}