/*----------------------------------------
	Netscape Resize Css Fix 
	- thanx to the 
	  supa fresh Dan Steinman
----------------------------------------*/

function CSSfix() {
	if (document.self.CSSfix.initWindowWidth != window.innerWidth || document.self.CSSfix.initWindowHeight != window.innerHeight) {
		document.location = document.location;
	}
}

function CSSfixCheckIn() {
	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
		if (typeof document.self == 'undefined') {
			document.self = new Object;
		}
		if (typeof document.self.self_scaleFont == 'undefined') {
			document.self.CSSfix = new Object;
			document.self.CSSfix.initWindowWidth = window.innerWidth;
			document.self.CSSfix.initWindowHeight = window.innerHeight;
		}
		window.onresize = CSSfix;
	}
}

CSSfixCheckIn()


/*----------------------------------------
	Pop Up Window
----------------------------------------*/

function popWin(url, winName, w, h) {
	sw = screen.width
	sh = screen.height
	cx = ( .5 * sw ) - ( w * .5 )
	cy = ( .5 * sh ) - ( h * .5 )
	var values = 'toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,screenX=' + cx + ',screenY=' + cy + ',left=' + cx + ',top=' + cy + ',width=' + w + ',height=' + h + '';
	child = window.open(url, winName, values);
}



