function openNoScrollWindow(url,title,width,height) {
	// read resolution and set variables
	var      x = screen.width;
	var      y = screen.height;
	var    top = parseInt((y-height)/2);
	var   left = parseInt((x-width)/2);
	// open new window and use the variables to position it
	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 openWindow(url,title,width,height) {
	// read resolution and set variables
	var      x = screen.width;
	var      y = screen.height;
	var    top = parseInt((y-height)/2);
	var   left = parseInt((x-width)/2);
	// open new window and use the variables to position it
	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) {
	// read resolution and set variables
	var      x = screen.width;
	var      y = screen.height;
	var    top = parseInt((y-height)/2);
	var   left = parseInt((x-width)/2);
	// open new window and use the variables to position it
	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 openMenuWindow(url,title,width,height) {
	// read resolution and set variables
	var      x = screen.width;
	var      y = screen.height;
	var    top = parseInt((y-height)/2);
	var   left = parseInt((x-width)/2);
	// open new window and use the variables to position it
	window.open(url,title,'width='+width+',height='+height+',left='+left+',top='+top+',scrollbars=yes,resize=yes,resizable=yes,menubar=yes,toolbar=yes,directories=no');
}

/* accessible popups 
http://www.quirksmode.org/js/popup.html */
function popitup(url)
{
	newwindow=window.open(url,'name','height=450,width=500,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}
function popitupNew(url,AffId,IE,FF,Chrome,PCUtility)
{
	if(AffId>0)
	{
		if(PCUtility){
		newwindow=window.open(url,'name','height=307,width=500,scrollbars=no');
		}
		else if(IE){
		newwindow=window.open(url,'name','height=336,width=500,scrollbars=no');
		}
		else if(FF){
		newwindow=window.open(url,'name','height=348,width=500,scrollbars=no');
		}
		else if(Chrome){
		newwindow=window.open(url,'name','height=379,width=500,scrollbars=no');
		}
		else{
		newwindow=window.open(url,'name','height=504,width=500,scrollbars=no');
		}
	}
	else
	{
		if(PCUtility){
		newwindow=window.open(url,'name','height=505,width=500,scrollbars=no');
		}
		else if(IE){
		newwindow=window.open(url,'name','height=533,width=500,scrollbars=no');
		}
		else if(FF){
		newwindow=window.open(url,'name','height=543,width=500,scrollbars=no');
		}
		else if(Chrome){
		newwindow=window.open(url,'name','height=572,width=500,scrollbars=no');
		}
		else{
		newwindow=window.open(url,'name','height=697,width=500,scrollbars=no');
		}
	}	
	if (window.focus) {newwindow.focus()}
	return false;
}
function viewDetails(packageID) {
var all_packages = ["package_1","package_2", "package_3", "package_4", "package_5", "package_6", "package_7", "package_8"];
var itemOne = "package_1";
var itemTwo = "package_2";
var itemThree = "package_3";
var itemFour = "package_4";
var itemFive = "package_5";
var itemSix = "package_6";
var itemSeven = "package_7";
var itemEight = "package_8";
for(var i=0;i<all_packages.length;i++){
	var package = document.getElementById(all_packages[i]);
		if(package){
		package.style.display="none";
		}
		if (packageID == itemOne) {
			document.getElementById(packageID).style.display="block";
		}
		else if (packageID == itemTwo) {
			document.getElementById(packageID).style.display="block";
			//document.getElementById(packageID).style.margin="50px 0 0 0";
		}
		else if (packageID == itemThree) {
			document.getElementById(packageID).style.display="block";
			//document.getElementById(packageID).style.margin="90px 0 0 0";
		}
		else if (packageID ==  itemFour) {
			document.getElementById(packageID).style.display="block";
			//document.getElementById(packageID).style.margin="130px 0 0 0";
		}
		else if (packageID ==  itemFive) {
			document.getElementById(packageID).style.display="block";
			//document.getElementById(packageID).style.margin="170px 0 0 0";
		}
		else if (packageID == itemSix) {
			document.getElementById(packageID).style.display="block";
			//document.getElementById(packageID).style.margin="210px 0 0 0";
		}
		else if (packageID == itemSeven) {
			document.getElementById(packageID).style.display="block";
			//document.getElementById(packageID).style.margin="250px 0 0 0";
		}
		else if (packageID == itemEight) {
			document.getElementById(packageID).style.display="block";
			//document.getElementById(packageID).style.margin="290px 0 0 0";
		}
	}
}
function hideDetails(packageID) {
	document.getElementById(packageID).style.display="none";
    //return false;
}
/*Start Sweekstatkes banner */
function openwindow_sweekstakes()
{
	window.open("http://us.mcafee.com/en-us/landingpages/14668rules.asp","mywindow","menubar=no,resizable=yes,scrollbars=yes,width=800,height=600");
}
/*End Sweekstatkes banner */
/*Start chat_customer_support */
function openwindow_chat_sales_support()
{
	window.open("https://admin.instantservice.com/Customer?ai=6101&amp;di=21679","mywindow","menubar=no,resizable=yes,scrollbars=yes,width=500,height=400,toolbar=no,top=100,left=10");
}
/*End chat_customer_support */
/* Q's new popup layout source code */
/*function openNoScrollWindow(url,title,width,height) {
	newwindow=window.open(url,'name',' resizable=yes, height=450, width=500');
	if (window.focus) {newwindow.focus()}
}

function openWindow(url,title,width,height) {
	newwindow=window.open(url,'name',' resizable=yes, height=450, width=500');
	if (window.focus) {newwindow.focus()}
}

function openNoMenuWindow(url,title,width,height) {
	newwindow=window.open(url,'name',' resizable=yes, height=450, width=500');
	if (window.focus) {newwindow.focus()}
}

function openMenuWindow(url,title,width,height) {
	newwindow=window.open(url,'name',' resizable=yes, height=450, width=500');
	if (window.focus) {newwindow.focus()}
}

/* accessible popups 
http://www.quirksmode.org/js/popup.html 
function popitup(url) {
	newwindow=window.open(url,'name',' resizable=yes, height=450, width=500');
	if (window.focus) {newwindow.focus()}
	return false;
}*/
