<!--
var frameWidth;
var frameHeight;

// positioning the window based on browser size
if (self.innerWidth){
frameWidth = self.innerWidth;
frameHeight = self.innerHeight;
} 
else if (document.documentElement && document.documentElement.clientWidth){
frameWidth = document.documentElement.clientWidth;
frameHeight = document.documentElement.clientHeight;
} 
else if (document.body){
frameWidth = document.body.clientWidth;
frameHeight = document.body.clientHeight;
} 
else {
frameWidth = 600;
frameHeight = 400;
}
	
function openPromoWindow(URLtoOpen,windowName){
    windowFeatures = "width=250,height=350,toolbar=no,scrollbars=no";
	var winl = (frameWidth/2) + 145;
	var wint = (frameHeight/2) -165;
	var promoWindow = window.open(URLtoOpen, windowName, windowFeatures + ',left='+winl+',top='+wint+'');
	promoWindow.focus();
	}

function openVideoWindow(URLtoOpen,windowName){
    windowFeatures = "width=525,height=400,toolbar=no,scrollbars=no";
	var winl = (frameWidth/2) + 145;
	var wint = (frameHeight/2) -165;
	var promoWindow = window.open(URLtoOpen, windowName, windowFeatures + ',left='+winl+',top='+wint+'');
	promoWindow.focus();
	}
	
function openSmallVideoWindow(URLtoOpen,windowName){
    windowFeatures = "width=340,height=276,toolbar=no,scrollbars=no";
	var winl = (frameWidth/2) + 145;
	var wint = (frameHeight/2) -165;
	var promoWindow = window.open(URLtoOpen, windowName, windowFeatures + ',left='+winl+',top='+wint+'');
	promoWindow.focus();
	}

function updateParent(newURL) {
opener.document.location = newURL
}

// end of script -->
