<!-- Begin
function detectBrowser()
{
var browser=navigator.appName
var b_version=navigator.appVersion
var version=parseFloat(b_version)
if ( (browser=="Microsoft Internet Explorer") )
  {return true;}
else
  {return false;}
}

function openNoScrollWindow(url, title, width, height) {
var      x = screen.width;
var      y = screen.height;
var    top = parseInt((y-height) / 2);
var   left = parseInt((x-width) / 2);
window.open(url, title, 'width='+width+',height='+height+',left='+left+',top='+top+',scrollbars=no,resize=yes,resizable=yes,menubar=no,toolbar=no,directories=no');
}

function openMenuWindow(url, title, width, height) {
var      x = screen.width;
var      y = screen.height;
var    top = parseInt((y-height) / 2);
var   left = parseInt((x-width) / 2);
window.open(url, title, 'width='+width+',height='+height+',left='+left+',top='+top+',scrollbars=no,resize=no,resizable=no,menubar=yes,toolbar=no,directories=no');
}

function openPrintWindow(url, title, width, height) {
if (detectBrowser()) {
	width = 468;
	height = 450;
}

var      x = screen.width;
var      y = screen.height;
var    top = parseInt((y-height) / 2);
var   left = parseInt((x-width) / 2);

s = new String(url);
s = s.replace(/#/g, "*ps*");
s = s.replace(/&/g, "*am*");
window.open("../movies/printMe.php?title="+s, title, 'width='+width+',height='+height+',left='+left+',top='+top+',scrollbars=no,resize=no,resizable=no,menubar=yes,toolbar=no,directories=no');
}

function openWindow(url, title, width, height) {
if (detectBrowser()) {
	width = 485;
}

var      x = screen.width;
var      y = screen.height;
var    top = parseInt((y-height) / 2);
var   left = parseInt((x-width) / 2);
window.open(url, title, 'width='+width+',height='+height+',left='+left+',top='+top+',scrollbars=yes,resize=yes,resizable=yes,menubar=yes,toolbar=no,directories=no');
}

function openNoMenuWindow(url, title, width, height){
var      x = screen.width;
var      y = screen.height;
var    top = parseInt((y-height) / 2);
var   left = parseInt((x-width) / 2);
window.open(url, title, 'width='+width+',height='+height+',left='+left+',top='+top+',scrollbars=yes,resize=yes,resizable=yes,menubar=no,toolbar=no,directories=no');
}

function downloadNow(file, redUrl, extUrl) {
var browser = (window.navigator.userAgent.indexOf("SV1") != -1);
if (browser && (extUrl == 0)){
window.open(file, 'dlnow', 'toolbar=0,location=no,directories=0,status=0,scrollbars=no,resizable=0,width=1,height=1,top=0,left=0');
window.focus();
location.href = redUrl + '?idl=n';}else{location.href = redUrl;}
} // End -->
