  
//document.write("<link rel='stylesheet' href='../styles/bartendingStyles.css' type='text/css'>")

//document.write(navigator.appName + "<br>")
//document.write("BROWSERVERSION: ")
//document.write(navigator.appVersion + "<br>")
//document.write("CODE: ")
//document.write(navigator.appCodeName + "<br>")
//document.write("PLATFORM: ")
//document.write(navigator.platform + "<br>")
//document.write("REFERRER: ")
//document.write(document.referrer + "<br>")

var newwin;
var creditsPage;
var winWidth = 800;
var winHeight = 500;


var newsWidth = 840;
var newsHeight = 600;

var screen_height = window.screen.availHeight;
var screen_width = window.screen.availWidth;
var left = ((screen_width/2)-0.5*winWidth);
var top = ((screen_height/2)-0.5*winHeight);

var newsX = ((screen_height/2)-0.5*newsWidth);
var newsY = ((screen_height/2)-0.5*newsHeight);




var creditsWidth = screen_width;
var creditsHeight = 250;


var creditsTop = 0;
var creditsLeft = ((screen_height/2)-0.5*creditsWidth);


var BBWidth = 800;
var BBHeight = 700;
var BBTop = ((screen_height/2)-0.5*newsWidth);;
var BBLeft = ((screen_height/2)-0.5*newsHeight);;




function launchFS(winurl)
{
         window.moveTo(0,0);
         window.resizeTo(screen_width,screen_height);
 	window.navigate(winurl);
 	
}



function launchNewsWin(winurl)
{
        //This launches a new window and then
        //focuses it if window.focus() is supported.
        if(newwin){
                newwin.close();
        }
        if(creditsPage){
                creditsPage.close();
        }

        newwin = window.open(winurl,"popup","width="+newsWidth+", height="+winHeight+",location=0,statusbar=0,scrollbars=1,menubar=0,resizable=1,left="+newsX+",top="+newsY);
        
        if(javascript_version > 1.0)
        {
                //delay a bit here because IE4 encounters errors
                //when trying to focus a recently opened window
                setTimeout('newwin.focus();',250);
        }
}



function launchWin(winurl,winname,winfeatures)
{
        //This launches a new window and then
        //focuses it if window.focus() is supported.
        if(newwin){
                newwin.close();
        }

        newwin = window.open(winurl,winname,winfeatures);
        
        if(javascript_version > 1.0)
        {
                //delay a bit here because IE4 encounters errors
                //when trying to focus a recently opened window
                setTimeout('newwin.focus();',250);
        }
}


function launchCreditsWin()
{
        //This launches a new window and then
        //focuses it if window.focus() is supported.
        if(creditsPage){
                creditsPage.close();
        }

         creditsPage = window.open("credits.html","popup","width="+creditsWidth+", height="+creditsHeight+",location=0,statusbar=0,scrollbars=0,menubar=0,resizable=0,screenX="+creditsLeft+",screenY="+creditsTop+"left="+creditsLeft+",top="+creditsTop);
     
        if(javascript_version > 1.0)
        {
                //delay a bit here because IE4 encounters errors
                //when trying to focus a recently opened window
                setTimeout('newwin.focus();',250);
        }
}


function launchBBWin(winurl)
{
        //This launches a new window and then
        //focuses it if window.focus() is supported.
        if(creditsPage){
                creditsPage.close();
        }

         creditsPage = window.open(winurl,"popup","width="+BBWidth+", height="+BBHeight+",location=0,statusbar=0,scrollbars=0,menubar=0,resizable=0,screenX="+BBLeft+",screenY="+BBTop+"left="+BBLeft+",top="+BBTop);
     
        if(javascript_version > 1.0)
        {
                //delay a bit here because IE4 encounters errors
                //when trying to focus a recently opened window
                setTimeout('newwin.focus();',250);
        }
}

function closepopup(){
	if(newwin){
		newwin.close();
	}
        if(creditsPage){
                creditsPage.close();
        }
	
}

function initWin(){
        window.moveTo(0,0);
        window.resizeTo(screen_width,screen_height);
        if(creditsPage){
                creditsPage.close();
        }
}


function closeWin(){
        newwin.close();
        if(creditsPage){
                creditsPage.close();
        }
}

function media_select(_url){
	self.location='medianav_'+_url+'.asp';
	stage.location=_url+'.asp';
}


function initMediaWin(){
       window.moveTo(0,0);
       window.resizeTo(680,530);
}

function initMediaWin_2(){

       window.moveTo(0,0);
       window.resizeTo(700,660);
	window.focus();
}

function focusWin(){
        if(creditsPage){
                creditsPage.close();
        }

}


var visible = "hidden";

function toggleVisibility(){
	if (visible=="hidden"){
		visible="visible";
		document.credistlist.src='img/credistlist.gif';
		document.creditsbutton.src='img/close.gif';
		}
	else {		
		visible="hidden";
		document.credistlist.src='img/empty.gif';
		document.creditsbutton.src='img/credits.gif';
		}
}
