//reloads the window if Nav4 resized



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);


//the alpha and omega popup scripts
function windowPop(pathName,winName,intWidth,intHeight,intScroll,intLocation,resize) {

if (resize == null)
var resizable = "yes";
else
var resizable = resize;

if (document.all)
var xWidth = screen.width, yHeight = screen.height;
else
if (document.layers)
var xWidth = window.outerWidth, yHeight = window.outerHeight;
else
var xWidth = 800, yHeight=600;

var xOffset = (xWidth - intWidth)/2, yOffset = (yHeight - intHeight)/2;

var features;
features = 'width=' + intWidth
features += ',height=' + intHeight
features += ',screenX=' + xOffset
features += ',screenY=' + yOffset
features += ',top=' + yOffset
features += ',left=' + xOffset
features += ',scrollbars=' + intScroll
features += ',location=' + intLocation
features += ',resizable=' + resizable 

var newWindow
newWindow = window.open(pathName,winName,features)
newWindow.focus()

}


//"Print Page" Button

function printPage() {
if (window.print)
window.print()
else 
alert("Sorry, your browser doesn't support this feature.");
}


//open trailer window

function trailer(path){

crtwin =
window.open(path, "openwin", "width=362,height=420,resizable=1,dependent=1,screenx=10,screeny=10,left=10,top=10,scrollbars=1,menubar=1,statusbar=0,toolbar=0,location=0");
crtwin.focus();
}

//for free coupon 
function showsubject(){
					var x = document.all('promocode').selectedIndex;
					if(x == 5){
					document.all('sub1').style.display = '';
					document.all('sub2').style.display = '';
					}
					else {
					document.all('sub1').style.display = 'none';
					document.all('sub2').style.display = 'none';
					}
}
