var trace;
function StartTracing(){
	trace = new Tracing();
	trace.Start();
}
function Write(msg){
	if(trace == null)
		return;
	trace.Write(msg);
}
function Submit(){
	var theform;
	if(window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
		theform = document.forms["Form"];	
	else
		theform = document.Form;
	if(theForm != null)			
		theform.submit();
	else
		Write("Form Tag NULL");
}
function rollOn(src,img){
	img = img.firstChild;
	if(document.images) img.src= src;		
}

function rollOff(src,img){
	img = img.firstChild;
	if(document.images) img.src= src;
}
function JOn(img,src){
	if(document.images) img.src= src;                       
}
function JOff(img,src){
	if(document.images) img.src= src;
}
function join() {
window.open('Registration/Web/UserInformation.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=692,height=600,left=0,top=0');
}
function updateReg() {
window.open('Login.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=692,height=600,left=0,top=0');
}
function forgotPass() {
window.open('ForgotPassword.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=692,height=600,left=0,top=0');
}
function alreadyReg() {
window.open('AlreadyRegistered.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=692,height=600,left=0,top=0');
}




function policies() {
window.open('http://www.dpsunews.com/privacy.aspx?s=7UP','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=692,height=500,left=0,top=0');
}
function termsofuse() {
window.open('http://www.dpsunews.com/termsofuse.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=692,height=500,left=0,top=0');
}
function contactus() {
window.open('http://www.brandspeoplelove.com/index.cfm?brand=7UP&lang=en&bu=DP&site=www.7UP.com','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=500,left=0,top=0');
}

function Space() {
window.open('http://www.softcoin.com/p/handler?target=general&action=getHome&sid=550','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=756,height=600,left=0,top=0');
window.location="PlusHold.aspx";
}
function basketBots(){
	var w = 570;
	var h = 522;
	var x = ((screen.width-w)/2);
	var y = ((screen.height-h)/2);
	window.open('GetCourtSide/index.aspx','','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=no,location=no,resizable=yes,toolbar=no,menubar=no',false);
	window.location="PlusHold.aspx";
}





/* BEGIN ECARD SCRIPT-----03/18/2004------
** --------code can bre removed after promotion is over
**
** The below block is fires on inital load of the page.
** if 'ecard' is present in the querystring, we popup
** the ecard minisite.  Otherwise, we just continue as 
** usual.
*/
function PageURL(q) {
	if(q.length > 1) this.q = q.substring(1, q.length);
	else this.q = null;
	this.valueHits = new Array();
	if(q) {
	for(var i=0; i < this.q.split("&").length; i++) {
	this.valueHits[i] = this.q.split("&")[i];
}
}
this.getValueHits = function() { return this.valueHits; }
this.getValue = function(s) {
	for(var j=0; j < this.valueHits.length; j++) {
		if(this.valueHits[j].split("=")[0] == s)
		return this.valueHits[j].split("=")[1];
	}
		return false;
}
this.getParameters = function() {
	var a = new Array(this.getLength());
	for(var j=0; j < this.valueHits.length; j++) {
		a[j] = this.valueHits[j].split("=")[0];
	}
	return a;
}
this.getLength = function() { return this.valueHits.length; } 
}
function queryString(key){
	var page = new PageURL(window.location.search); 
	return unescape(page.getValue(key)); 
}
if(queryString('ax')!='false') 
{
	var w = 620;
	var h = 620;
	var x = ((screen.width-w)/2);
	var y = ((screen.height-h)/2);
	window.open('ecards/indexUser.aspx?ax=' + queryString('ax'),'','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=no,location=no,resizable=yes,toolbar=no,menubar=no',false);
}
/** END ECARDS SCRIPT-----03/18/2004------ 
*/
if(queryString('space05')!='false') 
{
	Space();
}
if(queryString('bb05')!='false') 
{
	var w = 800;
	var h = 600;
	var x = ((screen.width-w)/2);
	var y = ((screen.height-h)/2);
	window.open('bb05/index.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',left='+x+',top='+y);
	window.location="PlusHold.aspx";
}
if(queryString('bballrebate')!='false') 
{
	var w = 800;
	var h = 600;
	var x = ((screen.width-w)/2);
	var y = ((screen.height-h)/2);
	window.open('bb05/index.aspx?bballrebate','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',left='+x+',top='+y);
	window.location="PlusHold.aspx";
}

if(queryString('basketBots')!='false') 
{
	 basketBots();
}

if(queryString('Plus')!='false') 
{
Plus();	
}
if(queryString('parentsPlus')!='false') 
{
ParentsPlus();	
}

if(queryString('2004grammys')!='false') 
{
	var w = 780;
	var h = 502;
	var x = ((screen.width-w)/2);
	var y = ((screen.height-h)/2);
	window.open('http://grammy.7up.com','','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=yes,location=yes,resizable=yes,toolbar=no,menubar=yes',false);
	window.location="PlusHold.aspx";
}

if(queryString('2005grammys')!='false') 
{
grammys2005();
}
if(queryString('UpoUpo')!='false') 
{
	var w = 620;
	var h = 620;
	var x = ((screen.width-w)/2);
	var y = ((screen.height-h)/2);
	window.open('games/UpoUpo/index.html','','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=no,location=no,resizable=yes,toolbar=no,menubar=yes',false);
	window.location="PlusHold.aspx";
}



var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var browserVersion = navigator.appVersion.substring(0,4);
//alert(browserVersion);
var useFSCommand = false;
function myFlash_DoFSCommand(command, args){
	if(InternetExplorer){
	  var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
	  useFSCommand = false;
	 // alert(command + " : " + args);
	  eval(command + "(" + args + ")");
	  useFSCommand = true;
	}
}
function allowscale (){
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call myFlash_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}


function Plus() {
var w = 750;
var h = 485;
var x = ((screen.width-w)/2);
var y = ((screen.height-h)/2);
//window.open('Plus/index.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=700,height=500,left=0,top=0');
window.open('Plus/index.aspx','','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h);
window.location="PlusHold.aspx";
}
function ParentsPlus() {
var w = 857;
var h = 600;
var x = ((screen.width-w)/2);
var y = ((screen.height-h)/2);
window.open('FamiliesPlus/Aug/Home.aspx','','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=yes');
window.location="PlusHold.aspx";

}
function ansarix() {
var w = 620;
var h = 600;
var x = ((screen.width-w)/2);
var y = ((screen.height-h)/2);
window.open('ansarixprize/pressrelease100404.htm','','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=yes,resizable=yes');

}
function openbb05() {
var w = 800;
var h = 600;
var x = ((screen.width-w)/2);
var y = ((screen.height-h)/2);
window.open('bb05/index.aspx','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',left='+x+',top='+y);
window.location="PlusHold.aspx";
}

function grammys2005(){
var w = 800;
	var h = 502;
	var x = ((screen.width-w)/2);
	var y = ((screen.height-h)/2);
	window.open('http://members.ebay.com/ws/eBayISAPI.dll?ViewUserPage&userid=grammyauctions','','screenx='+x+',screeny='+y+',left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=yes,location=yes,resizable=yes,toolbar=no,menubar=yes',false);
	window.location="PlusHold.aspx";
}