//document.write("<link rel='stylesheet' href='../styles/sretsis.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 winWidth = 700;
var winHeight = 520;
var screen_height = window.screen.availHeight;
var screen_width = window.screen.availWidth;
var left = ((screen_width/2)-0.5*winWidth)-50;
var top = ((screen_height/2)-0.5*winHeight);



function launchPressWindow(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);
        newwin = window.open(winurl,winname,"width="+winWidth+", height="+winHeight+",location=0,statusbar=0,scrollbars=0,menubar=0,resizable=0,left="+left+",top="+top);
        
        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 launchPlainWin(_url){

        newwin = window.open(winurl,winname,"width="+winWidth+", height="+winHeight+",location=1,statusbar=1,scrollbars=1,menubar=1,resizable=1,left="+left+",top="+top);
        
        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();
	}
}

function initWin(){
        window.moveTo(0,0);
        window.resizeTo(screen_width,screen_height);
}

//PRESS WINDOW
var pressViewerWinWidth = 740;
var pressViewerWinHeight = 600;
var pvWleft = ((screen_width/2)-0.5*pressViewerWinWidth)-50;
var pvWtop = ((screen_height/2)-0.5*pressViewerWinHeight);

function initPressViewerWin(){
        window.moveTo(pvWleft,pvWtop);
        window.resizeTo(pressViewerWinWidth,pressViewerWinHeight);
}

function launchPressViewer(_path){
	
    newwin = window.open(_path,"pressViewer","width="+pressViewerWinWidth+", height="+pressViewerWinHeight+",location=1,statusbar=1,scrollbars=0,menubar=0,resizable=1,left="+pvWleft+",top="+pvWtop);
    
    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 closeWin(){
        newwin.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 VideoLightboxDelegate(url,caption,width,height) {
   var objLink = document.createElement('a');
   objLink.setAttribute('href',url);
   objLink.setAttribute('rel','lightbox');
   objLink.setAttribute('title',caption);
   Lightbox.prototype.start(objLink);
}

