
	function myOpenWindow(url, w, h)
	{
		// Use this function to shutdown the flash if the pop-up
		// is used on a page with the flash nav
		if(flashCk == 1)
		{
       		if ( navigator.platform.indexOf("Mac") < 0 )
            	window.document.mainnav.StopPlay();
		}
		
		if (w === undefined) {
    		w = "400";
  		}
  		if (h === undefined) {
    		h = "550";
  		}
        window.open(url,'title','width=' + w + ',height=' + h + ',scrollbars=0').focus();
	}

	function myOpenWindowNS(url, w, h)
	{
		// Use this function to shutdown the flash if the pop-up
		// is used on a page with the flash nav
		if(flashCk == 1)
		{
       		if ( navigator.platform.indexOf("Mac") < 0 )
            	window.document.mainnav.StopPlay();
		}
		
		if (w === undefined) {
    		w = "400";
  		}
  		if (h === undefined) {
    		h = "550";
  		}
        window.open(url,'title','width=' + w + ',height=' + h + ',scrollbars=1,resizable=0').focus();
	}
	
	function myOpenWindowColl(url)
	{
        window.open(url,'title','width=660,height=480,scrollbars=1,resizable=1').focus();
	}
	
	
	function myOpenWindowPC(url)
	{
        window.open(url,'title','width=670,height=580,scrollbars=1,resizable=1').focus();
	}
	

	function startFlash()
	{
		function thisMovie(movieName) {
			// IE and Netscape refer to the movie object differently.
			// This function returns the appropriate syntax depending on the browser.
			if (navigator.appName.indexOf ("Microsoft") !=-1) {
				return window[movieName]
			} else {
			    return document[movieName]
			}
		}

		// Checks if movie is completely loaded.
		// Returns true if yes, false if no.
		function movieIsLoaded (mainnav) {
			if (typeof(mainnav) != "undefined") {
				return theMovie.PercentLoaded() == 100;
			} else {
				return false;
			}
		}
	
		function playmovie(mainnav) { 
		//alert( movieIsLoaded(thisMovie(mainnav)) ); 
			if (movieIsLoaded(thisMovie(mainnav))) { 
				thisMovie(mainnav).play(); 
			} 
		}
	}

	function newOpenWindow(url)
	{
        if(flashCk == 1)
		{
       		if ( navigator.platform.indexOf("Mac") < 0 )
            	window.document.mainnav.StopPlay();
		}
        title = Math.round(100 * Math.random());
        window.open(url,title,'location=1,scrollbars=1,status=1,resizable=1');
	}

    /**
     * This function was created because the other two window open functions (newOpenWindow and myOpenWindow)
     * are not flexible enough.
     */
    function localWindowOpen(url, title, options) {
        window.open(url, title, options).focus();
    }
	
	/*
		This function is for the addition of a link to Tickets.com, allowing there to be a pop-up for the 
		tickets window.
	*/
	
	function ticketsComNewWindow(PID)
	{
		if (PID == "" || PID == null)
		{	
			window.open('http://purchase.tickets.com/buy/TicketPurchase?organ_val=21713','tickets','width=780,height=600,scrollbars=1,menubar=1,location=1,status=1,resizable').focus();
		}
		else
		{
			window.open('http://purchase.tickets.com/buy/TicketPurchase?organ_val=21713&pid=' + PID,'tickets','width=780,height=600,scrollbars=1,menubar=1,location=1,status=1,resizable').focus();
		}
	}

