// Handles rollover images for NN3+ and IE4+
var loaded = new Array();

function F_loadRollover(image,imageName) {
	if (image && image.src &&
		(null == image.out || typeof(image.out) == typeof(void(0)))) {
		s = image.src;
		image.out = new Image();
		image.out.src = s;
		image.over = new Image();
		if (imageName.lastIndexOf('/') >= 0 || imageName.lastIndexOf('\\') >= 0) {
			s = imageName;
		} else {
			i = s.lastIndexOf('/');
			if (i<0) i = s.lastIndexOf('\\');
			if (i<0) { s = imageName; }
			else	 { s = s.substring(0,i+1) + imageName; }
		}
		image.over.src = s;
		loaded[image.name] = image;
	}
}
function F_roll(imageName,over) {
	if (document.images) {
	if (over) { imageObject = "over"; }
	else	  { imageObject = "out"; }
	image = loaded[imageName];
	if (image) {
		ref = eval("image."+imageObject);
		if (ref) image.src = eval("image."+imageObject+".src");
	}
	if (window.event)
		window.event.cancelBubble = true;
	}
}
function ChangeFrames(URL1,URL2/*,URL3*/)
{
	parent.Layout.location.href=URL1;
	parent.Header.location.href=URL2;
	//parent.Navigation.location.href=URL3;
}

function ViewImage(ifile,ix,iy,ititle) 
{ 
	var win;
	var sWidth;
	var sHeight;
	var NS = (document.layers) ? 1 : 0;

	win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");

	if (NS)
	{
		sWidth = win.innerWidth;
		sHeight = win.innerHeight;
	}
	else
	{
		sWidth = win.document.body.clientWidth;
		sHeight = win.document.body.clientHeight;
	}

	if(sWidth!=ix || sHeight!=iy)
	{
		win.close();
		setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
		return;
	}

	win.document.open();
	win.document.write("<html><head><title>"+ititle +"</title>");
	win.document.write("</head><body>");
	win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
	win.document.write("<img src="+ifile+"></div></body></html>");
	win.document.close();
}



