
searchbutton_blur = new Image(33,30); searchbutton_blur.src='/graphics/searchbutton_blur.gif';
searchbutton_focus = new Image(33,30); searchbutton_focus.src='/graphics/searchbutton_focus.gif';

function image_toggle(img,imgpath,imgname,imglh,imgdh) {
	if(img.className=="cursor_zoomin") {
		img.className="cursor_zoomout";
		img.style.backgroundImage="url("+imgpath+"1"+imgname+")";
		img.firstChild.src="/graphics/clickheretozoomout_focus.gif";
		img.firstChild.style.width="590px";
		img.firstChild.style.height="620px";
		img.style.width="590px";
		img.style.height=imglh+"px";
		if(document.all) document.all.footer.style.bottom="-3px"; // Updates footer position on IE
	} else {
		img.className="cursor_zoomin";
		img.style.backgroundImage="url("+imgpath+"2"+imgname+")";
		img.firstChild.src="/graphics/clickheretozoomin_focus.gif";
		img.firstChild.style.width="300px";
		img.firstChild.style.height="330px";
		img.style.width="300px";
		img.style.height=imgdh+"px";
		if(document.all) document.all.footer.style.bottom="-2px"; // Updates footer position on IE
	}
	return(true);
}

function image_focus(img) {
	img.src=img.src.replace('_blur','_focus');
	return(true);
}

function image_blur(img) {
	img.src=img.src.replace('_focus','_blur');
	return(true);
}

function photo_rotate() {
	current++;
	if(current>7) current=0;
	if(document.all) {
	 document.getElementById('graphics_header_photo').style.filter="blendTrans(duration=1)";
	 document.getElementById('graphics_header_photo').filters.blendTrans.Apply();
	}
	document.getElementById('graphics_header_photo').src=photos[current].src;
	if(document.all)
	 document.getElementById('graphics_header_photo').filters.blendTrans.Play();
	timer = setTimeout('photo_rotate();',6000);
}

var current=Math.round(Math.random()*7);
var photos=new Array(new Image(143,124),new Image(143,124),new Image(143,124),new Image(143,124),new Image(143,124),new Image(143,124),new Image(143,124),new Image(143,124));
photos[0].src='/graphics/header_photo1.jpg';
photos[1].src='/graphics/header_photo2.jpg';
photos[2].src='/graphics/header_photo3.jpg';
photos[3].src='/graphics/header_photo4.jpg';
photos[4].src='/graphics/header_photo5.jpg';
photos[5].src='/graphics/header_photo6.jpg';
photos[6].src='/graphics/header_photo7.jpg';
photos[7].src='/graphics/header_photo8.jpg';

//var timer = setTimeout(photo_rotate(),1000);

