// Copyright 2002 Eddie Traversa, etraversa@dhtmlnirvana.com, http://dhtmlnirvana.com
// Free to use as long as this copyright notice stays intact.
// Permission granted to SimplytheBest.net to feature the script in the 
// DHTML script collection at http://simplythebest.net/info/dhtml_scripts.html

var ie5 = (document.getElementById&&document.all); 
var n6 	= (document.getElementById&&!document.all); 
var x,y,el,pageW,pageH;  
if (n6)  document.addEventListener("mouseup",showMenu,false);
if (ie5) document.attachEvent("oncontextmenu",showMenu); 
if (ie5) document.attachEvent("onclick",showMenu); 

function showMenu(event) {
if (document.getElementById) {
pageW   = document.body.offsetWidth;
pageH   = document.body.offsetHeight;
x	    = event.clientX  
y     	= event.clientY 
el 		= document.getElementById("menu");
if ((ie5&&event.type=="contextmenu")||(n6 && event.which>1)) {
if ((x+parseInt(el.offsetWidth))>=pageW) {
x		= parseInt(el.offsetWidth);
y		= parseInt(el.offsetHeight);
}
el.style.top=y+"px";
el.style.left=x+"px";
fadeIn();
return false;
}
if ((ie5&&event.type=="click")||(n6 && event.which==1)) {
el.style.visibility="hidden";
fade_index = 0;
}
}
}
document.oncontextmenu=new Function("return false") ;
fade_index = 0;

function fadeIn() {
if(ie5 || n6) {
	document.getElementById('menu').style.visibility = 'visible';
	
	if(n6) {
	document.getElementById('menu').style.MozOpacity = fade_index/100; 
	}
	fade_index += 3;
	goIn = setTimeout("fadeIn()", 50);
	if(fade_index >= 100) 
	clearTimeout(goIn);
}
}

//Open a 400 px window

function openWin400w(URL)  
{
aWindow = window.open(URL,"primewindow","toolbar=no,width=400,height=500,status=no,scrollbars=yes,resize=yes,menubar=no");
}

//Open a 650 px window
// 
// current promotion
// 

var current2X = (screen.width/2)-375;
var current2Y = (screen.height/2)-287;
var pos = "left="+current2X+",top="+current2Y;

function current(){
currentWindow = window.open("currentoffer.htm","redbaron6","scrollbars=no,width=480,height=570,top=10,left=10");
}

//programming comparison
var prgmcmpX = (screen.width/2)-375;
var prgmcmpY = (screen.height/2)-287;
var pos = "left="+prgmcmpX+",top="+prgmcmpY;

function prgmcmp(){
prgmcmpWindow = window.open("prgrm-ch-comp-fr.htm","glenthegraphicsguyreturns","scrollbars=yes,width=800,height=450,"+pos);
}
//ESPN Details
var espndetailsX = (screen.width/2)-375;
var espndetailsY = (screen.height/2)-287;
var pos = "left="+espndetailsX+",top="+espndetailsY;

function espndetails(){
espndetailsWindow = window.open("prgm-sportsubs-espn-details.htm","glenthegraphicsguyreturns","scrollbars=no,width=370,height=290,"+pos);
}
//Para Todos Details
var paradtodosdetailsX = (screen.width/2)-375;
var paradtodosdetailsY = (screen.height/2)-287;
var pos = "left="+paradtodosdetailsX+",top="+paradtodosdetailsY;

function paradtodosdetails(){
paradtodosdetailsWindow = window.open("prgm-intl-paratodos-details.htm","glenthegraphicsguyreturns","scrollbars=yes,width=380,height=480,"+pos);
}
//Jadeworld Details
var jadeworlddetailsX = (screen.width/2)-375;
var jadeworlddetailsY = (screen.height/2)-287;
var pos = "left="+jadeworlddetailsX+",top="+jadeworlddetailsY;

function jadeworlddetails(){
jadeworlddetailsWindow = window.open("prgm-intl-jadeworld-details.htm","glenthegraphicsguyreturns","scrollbars=yes,width=370,height=460,"+pos);
}

function southasiandetails(){
southasiandetailsWindow = window.open("prgm-intl-southasian-details.htm","gleniscool","left=0,top=0,screenX=0,screenY=0,width=360,height=495,scrollbars=no");
}

function filipinodetails(){
filipinodetailsWindow = window.open("prgm-intl-filipino-details.htm","glenthegraphicsguyreturns","scrollbars=yes,width=360,height=460,"+pos);
}

function russiandetails(){
russiandetailsWindow = window.open("prgm-intl-russian-details.htm","glenthegraphicsguyreturns","scrollbars=yes,width=370,height=460,"+pos);
}

//standardsystems1
var standardsystems1X = (screen.width/2)-375;
var standardsystems1Y = (screen.height/2)-287;
var pos = "left="+standardsystems1X+",top="+standardsystems1Y;

function standardsystems1(){
standardsystems1Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=26&products_id=34&osCsid=405d9777d43702ca5670dd21d3b2968d","sys1","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//standardsystems2
var standardsystems2X = (screen.width/2)-375;
var standardsystems2Y = (screen.height/2)-287;
var pos = "left="+standardsystems2X+",top="+standardsystems2Y;

function standardsystems2(){
standardsystems2Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=26&products_id=36&osCsid=405d9777d43702ca5670dd21d3b2968d","sys2","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//standardsystems3
var standardsystems3X = (screen.width/2)-375;
var standardsystems3Y = (screen.height/2)-287;
var pos = "left="+standardsystems3X+",top="+standardsystems3Y;

function standardsystems3(){
standardsystems3Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=26&products_id=37&osCsid=405d9777d43702ca5670dd21d3b2968d","sys3","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//standardsystems4
var standardsystems4X = (screen.width/2)-375;
var standardsystems4Y = (screen.height/2)-287;
var pos = "left="+standardsystems4X+",top="+standardsystems4Y;

function standardsystems4(){
standardsystems4Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=26&products_id=38&osCsid=405d9777d43702ca5670dd21d3b2968d","sys4","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

function standardsystems5(){
standardsystems4Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=26&products_id=51&osCsid=a02e8fbc188c5eb88e4e0624408983d9","sys5","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//dvrsystems1
var dvrsystems1X = (screen.width/2)-375;
var dvrsystems1Y = (screen.height/2)-287;
var pos = "left="+dvrsystems1X+",top="+dvrsystems1Y;

function dvrsystems1(){
dvrsystems1Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=27&products_id=39&osCsid=405d9777d43702ca5670dd21d3b2968d","dvr1","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//dvrsystems2
var dvrsystems2X = (screen.width/2)-375;
var dvrsystems2Y = (screen.height/2)-287;
var pos = "left="+dvrsystems2X+",top="+dvrsystems2Y;

function dvrsystems2(){
dvrsystems2Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=27&products_id=40&osCsid=405d9777d43702ca5670dd21d3b2968d","dvr2","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//dvrsystems3
var dvrsystems3X = (screen.width/2)-375;
var dvrsystems3Y = (screen.height/2)-287;
var pos = "left="+dvrsystems3X+",top="+dvrsystems3Y;

function dvrsystems3(){
dvrsystems3Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=27&products_id=41&osCsid=405d9777d43702ca5670dd21d3b2968d","dvr3","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//dvrsystems4
var dvrsystems4X = (screen.width/2)-375;
var dvrsystems4Y = (screen.height/2)-287;
var pos = "left="+dvrsystems4X+",top="+dvrsystems4Y;

function dvrsystems4(){
dvrsystems4Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=27&products_id=42&osCsid=405d9777d43702ca5670dd21d3b2968d","dvr4","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

function dvrsystems5(){
dvrsystems4Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=27&products_id=52&osCsid=a02e8fbc188c5eb88e4e0624408983d9","dvr5","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//hdsystems1
var hdsystems1X = (screen.width/2)-375;
var hdsystems1Y = (screen.height/2)-287;
var pos = "left="+hdsystems1X+",top="+hdsystems1Y;

function hdsystems1(){
hdsystems1Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=28&products_id=43&osCsid=405d9777d43702ca5670dd21d3b2968d","hd1","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//hdsystems2
var hdsystems2X = (screen.width/2)-375;
var hdsystems2Y = (screen.height/2)-287;
var pos = "left="+hdsystems2X+",top="+hdsystems2Y;

function hdsystems2(){
hdsystems2Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=28&products_id=44&osCsid=405d9777d43702ca5670dd21d3b2968d","hd2","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//hdsystems3
var hdsystems3X = (screen.width/2)-375;
var hdsystems3Y = (screen.height/2)-287;
var pos = "left="+hdsystems3X+",top="+hdsystems3Y;

function hdsystems3(){
hdsystems3Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=28&products_id=45&osCsid=405d9777d43702ca5670dd21d3b2968d","hd3","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//hdsystems4
var hdsystems4X = (screen.width/2)-375;
var hdsystems4Y = (screen.height/2)-287;
var pos = "left="+hdsystems4X+",top="+hdsystems4Y;

function hdsystems4(){
hdsystems4Window = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/product_info.php?cPath=28&products_id=46&osCsid=405d9777d43702ca5670dd21d3b2968d","hd4","scrollbars=yes,status=yes,top=10,left=10,width=800,height=540");
}

//trac
var tracX = (screen.width/2)-375;
var tracY = (screen.height/2)-287;
var pos = "left="+tracX+",top="+tracY;

function trac(){
tracWindow = window.open("http://modestobee.p2ionline.com/shoppingchannel/rop/index.aspx?webstoryid=8696482&adid=1302133&area=ROP&type=adv&menu=1","hd4","scrollbars=yes,width=800,height=600,"+pos);
}

function clearwire(){
clearwireWindow = window.open("clearwire.htm","hd4","scrollbars=yes,width=530,height=660,left=0,top=0");
}

//trac2
var trac2X = (screen.width/2)-375;
var trac2Y = (screen.height/2)-287;
var pos = "left="+trac2X+",top="+trac2Y;

function trac2(){
trac2Window = window.open("storefront/tracvision.htm","hd4","scrollbars=yes,width=500,height=250,"+pos);
}

function wildblue(){
wildblueWindow = window.open("http://www.wildbluenational.com","wildblue4","scrollbars=yes,width=805,height=600,top=10,left=10");
}

function clearwire(){
clearwireWindow = window.open("http://www.primedirec.com/clearwire/","clearwire4","scrollbars=yes,width=805,height=600,top=10,left=10");
}

function currentoffer(){
currentofferWindow = window.open("res-tivo.htm","bluexmaxtivo","left=-10,top=60,screenX=100,screenY=100,width=500,height=580,scrollbars=no");
}

function emusic(){
emusicWindow = window.open("http://www.emusic.com/primedirect","bluexmaxtivo","left=5,top=5,width=800,height=700,scrollbars=yes");
}

function standard(){
standardWindow = window.open("https://host456.ipowerweb.com/~primedir/osCommerce/catalog/index.php?cPath=26&osCsid=2acae9b45cbbc1aa15dc8edec9be63d2","bluexmaxtivo","left=5,top=5,width=800,height=600,scrollbars=yes");
}

function contactus(){
contactusWindow = window.open("contactus.htm","bluexmaxtivo","left=5,top=5,width=800,height=600,scrollbars=yes");
}

function advancedoffer(){
contactusWindow = window.open("advancedoffer.htm","advoffer","left=125,top=125,width=500,height=120,scrollbars=no");
}

function hdtvoffer(){
contactusWindow = window.open("hdtvoffer.htm","hdoffer","left=125,top=125,width=500,height=145,scrollbars=no");
}
