﻿/*
 * MWNF - "About Us" Page: Common Scripts
 *
 * v Beta 1.0.
 *
 */

function PopupImage( myimage ) {
 
 html =  '<html><head><title>Preview</title></head> ' +
		 '<body lang="en" dir="ltr" style="margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; "> ' +
		 '<center> ' +
		 '<img id="preview" name="preview" src="'+myimage+'" style="border-width: 0px; border-style: none;" ' +
		 ' onload="window.resizeTo( document.getElementById(\'preview\').width + 25,  document.getElementById(\'preview\').height + 40); " /> ' +
		 '</center> ' +
		 '</body> ' +
		 '</html> ';
 popup = window.open('','preview','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1' );
 popup.document.open();
 popup.document.write(html);
 popup.document.focus();
 popup.document.close()
}

var overcolor = "#F4F4F4";
var outcolor = "#DADADA";

function onOverMenu( obj ) {
	if( obj == null || obj.style == null ) {
		return true;
	}
	obj.style.backgroundColor = overcolor;
	return true;
}
function onOutMenu( obj ) {
	if( obj == null || obj.style == null ) {
		return true;
	}
	obj.style.backgroundColor = outcolor;
	return true;
}
function onClickMenu( obj, target, dest ) {
	if( obj == null || obj.style == null ) {
		return true;
	}
	obj.style.backgroundColor = overcolor;
	
	if( target == '_top' || target == '_parent' ) {
		parent.location.href = dest;
	} else 
	if( target == '_self' ) {
		parent.frames['header'].location.href = dest;
	} else 
	if( target == '_blank' ) {
		window.open( dest );
	} else {
		if( parent.frames == null || parent.frames[target] == null ) {
			return true;
		}
		parent.frames[target].location.href = dest;
	}
	
	return true;
}

/* Show Actual URL in the status bar */

if ( null != document.URL && -1 == document.URL.indexOf("aboutus_banner.html")) {
	window.status = document.URL;
}
