// JavaScript library of popup window functions 
// by Kristin Kinzler Deal

      /* Some Javascript that is used to open new smaller windows with additional information or definitions */
        var InfoWindow = null;
        var FaqWindow = null;
		var CompareWindow = null;
		var PopupWindow = null;
		var ReportWindow = null;


        function openInfoWindow(URL) {
                
                sFeatures = "width=600,height=600,screenX=10,screenY=10,left=10,top=10,toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes";
                infoWin = window.open (URL, "Info", sFeatures);
                if (infoWin.opener == null) {  // for Nav 2.0x
                        infoWin.opener = self  // this creates and sets a new property
                        if (window.focus) {infoWin.focus()}
                }
                if (navigator.userAgent.indexOf("MSIE") == -1)  {
                        // MSIE doesn't support focus() method.
                        if (window.focus) {infoWin.focus()}
                }       
        }


function openFaqWindow(URL) {
                
                sFeatures = "width=400,height=350,screenX=30,screenY=30,left=30,top=30,toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";
                faqWin = window.open (URL, "Faq", sFeatures);
                if (faqWin.opener == null) {  // for Nav 2.0x
                        faqWin.opener = self  // this creates and sets a new property
                        if (window.focus) {faqWin.focus()}
                }
                if (navigator.userAgent.indexOf("MSIE") == -1)  {
                        // MSIE doesn't support focus() method.
                        if (window.focus) {faqWin.focus()}
                }       
        }

function openPrintWindow(URL) {

		sFeatures = "width=680,height=500,screenX=350,screenY=150,left=350,top=150,toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes";
	
		compareWin = window.open (URL, "Compare", sFeatures);
		if (compareWin.opener == null) {  // for Nav 2.0x
			compareWin.opener = self  // this creates and sets a new property
		}
		if (navigator.userAgent.indexOf("MSIE") == -1)  {
			// MSIE doesn't support focus() method.
			compareWin.focus();
		}	
	}
	function openPopupWindow(URL) {
                
                sFeatures = "width=400,height=350,screenX=30,screenY=30,left=30,top=30,toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";
                popupWin = window.open (URL, "Popup", sFeatures);
                if (popupWin.opener == null) {  // for Nav 2.0x
                        popupWin.opener = self  // this creates and sets a new property
                        if (window.focus) {popupWin.focus()}
                }
                if (navigator.userAgent.indexOf("MSIE") == -1)  {
                        // MSIE doesn't support focus() method.
                        if (window.focus) {popupWin.focus()}
                }       
        }
		function openReportWindow(URL) {
                
                sFeatures = "width=600,height=350,screenX=200,screenY=50,left=200,top=50,toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes";
                reportWin = window.open (URL, "Report", sFeatures);
                if (reportWin.opener == null) {  // for Nav 2.0x
                        reportWin.opener = self  // this creates and sets a new property
                        if (window.focus) {reportWin.focus()}
                }
                if (navigator.userAgent.indexOf("MSIE") == -1)  {
                        // MSIE doesn't support focus() method.
                        if (window.focus) {reportWin.focus()}
                }       
        }
	function openGameWindow(URL) {
                
                sFeatures = "width=200,height=275,screenX=70,screenY=70,left=70,top=70,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes";
                gameWin = window.open (URL, "Game", sFeatures);
                if (gameWin.opener == null) {  // for Nav 2.0x
                        gameWin.opener = self  // this creates and sets a new property
                        if (window.focus) {gameWin.focus()}
                }
                if (navigator.userAgent.indexOf("MSIE") == -1)  {
                        // MSIE doesn't support focus() method.
                        if (window.focus) {gameWin.focus()}
                }       
        }