if (top.location != location) top.location.href = location.href;

mydate = new Date();
yyear = mydate.getYear();
if(yyear<1000) yyear+=1900;

function newWindow(url){
    open(url,'Commidiots','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=640,height=480')
}

// JS code by Andy Blau of JustAdequate Media - justadequate.net
function pixPopper(image_loc)
{
  HTML = "<html><style>body{margin:0px;}</style><body onLoad='top.focus()'><img src='"+ image_loc +"' border=0 name=loadedPic onLoad='window.resizeTo(document.loadedPic.width+10,document.loadedPic.height+20)'></body></html>";
  newPicWin = window.open('','_new','toolbar=no,scrollbars=no');
  newPicWin.document.open();
  newPicWin.document.write(HTML);
}


//Preload MouseOver images for navbar
if (document.images){
	var homeon=new Image();
	homeon.src="clipart/buttons/bhomex.gif";
	var homeoff=new Image();
	homeoff.src="clipart/buttons/bhome.gif";

	var infoon=new Image();
	infoon.src="clipart/buttons/binfox.gif";
	var infooff=new Image();
	infooff.src="clipart/buttons/binfo.gif";

	var photoson=new Image();
	photoson.src="clipart/buttons/bphotosx.gif";
	var photosoff=new Image();
	photosoff.src="clipart/buttons/bphotos.gif";

	var videoon=new Image();
	videoon.src="clipart/buttons/bvideox.gif";
	var videooff=new Image();
	videooff.src="clipart/buttons/bvideo.gif";
	
	var presson=new Image();
	presson.src="clipart/buttons/bpressx.gif";
	var pressoff=new Image();
	pressoff.src="clipart/buttons/bpress.gif";
	
	var storeon=new Image();
	storeon.src="clipart/buttons/bstorex.gif";
	var storeoff=new Image();
	storeoff.src="clipart/buttons/bstore.gif";

	var creditson=new Image();
	creditson.src="clipart/buttons/bcreditsx.gif";
	var creditsoff=new Image();
	creditsoff.src="clipart/buttons/bcredits.gif";

	var funon=new Image();
	funon.src="clipart/buttons/bfunx.gif";
	var funoff=new Image();
	funoff.src="clipart/buttons/bfun.gif";

	var contacton=new Image();
	contacton.src="clipart/buttons/bcontactx.gif";
	var contactoff=new Image();
	contactoff.src="clipart/buttons/bcontact.gif";
}

function hot(imgName){
	if (document.images)
	  document[imgName].src=eval(imgName+'on.src');
	}
function cold(imgName){
	if (document.images)
	  document[imgName].src=eval(imgName+'off.src');
	}