// launches centered window from flash with bar/scrolling
//=========================================================


function PrintWindow(mypage, myname, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=1 , toolbar=1'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// launches centered window from flash
//=========================================================


function NewWindow(mypage, myname, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// launches new window from flash
//=========================================================


function launchwin(winurl,winname,winfeatures)  {
	      
	window.open(winurl, winname, winfeatures);
}



			
function MM_openBrWindow(theURL,winName,width,height) { //v2.0

		windowProp ='resizable=0, scrollbars=0, status=0,width=' + width + ',height=' + height;

		window.open(theURL,winName,windowProp);

}
			


// pop a window when pulldown select index calls it from navigator  
//=========================================================


function formHandler(form) {
var windowprops = "height=400,width=400,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=no";

var URL = form.site.options[form.site.selectedIndex].value;
popup = window.open(URL,"MenuPopup",windowprops);
}



// launches full screen window.  
//=========================================================


	    function maxiPad(winurl) {
                if (navigator.appName == 'Microsoft Internet Explorer' && (navigator.platform.substring(0,3) == 'Win')) {
                        var scw=screen.Width-10;
                        var sch=screen.Height-52;
                        woo=window.open ("kevin_home.html", "KC_fullscreen", "left=0,top=0,width=" + scw + ",height=" + sch);
                }
                else if (navigator.appName == 'Netscape' || navigator.platform == 'MacPPC') {
                        woo=window.open ("kevin_home.html", "KC_fullscreen", "screenX=0,screenY=0,outerWidth=" + screen.width + ",outerHeight=" + screen.height);
                }
                else {
                        document.write("<HTML><BODY><CENTER><H1>Get Netscape or IE 4.0</H1></CENTER></BODY></HTML>")
                }
        }


        
// resize to full on load       
//=========================================================


function full_resize() {

window.moveTo(0,0);	
	var winH;
	var winW;
	var wComp;
	var hComp;

	if (navigator.appName == 'Microsoft Internet Explorer' && (navigator.platform.substring(0,3) == 'Win')) {
		wComp=0;
		hComp=0;
	}
	else if (navigator.appName == 'Netscape' && navigator.platform.substring(0,3) == 'Win') {
		wComp=12;
		//hComp=59; extra px ??? works.
		hComp=159;
	}
	else if (navigator.platform == 'MacPPC' && navigator.appName == 'Netscape'){
		//wComp=13;
		wComp=27;
		// extra 18 px for net on mac (don't know why?? but works)
		//hComp=49;
		hComp=169;
	}
	else {
		wComp=13;
		hComp=31;		
	}

	winW=screen.width-wComp;
	winH=screen.height-hComp;

	window.resizeTo(winW,winH);
}

