
function newCookieParse(key, keyvalStr){
var keyStr = key + "=";
var kvLen = keyvalStr.length;
var keyStrIndex = 0;
var val = "";
while (keyStrIndex < kvLen){
var myIndex = keyStrIndex + keyStr.length;
if (keyvalStr.substring(keyStrIndex,myIndex) == keyStr){
var myVarEnd = keyvalStr.indexOf ("&", myIndex);
if (myVarEnd == -1) myVarEnd = kvLen;
val = keyvalStr.substring(myIndex,myVarEnd);
return val;
}
keyStrIndex = keyvalStr.indexOf("&", keyStrIndex) + 1;
if(keyStrIndex == 0) keyStrIndex = kvLen;
}
return "";
}
var acceptsCookies = false;
if(document.cookie == '') {
document.cookie = 'acceptsCookies=yes';
if(document.cookie.indexOf('acceptsCookies=yes') != -1) {
acceptsCookies = true;
}
} else {
acceptsCookies = true;
}
function setCookie (name, value, hours, path, domain, secure) {
var not_NN2 = (navigator && navigator.appName && (navigator.appName == 'Netscape') && navigator.appVersion && (parseInt(navigator.appVersion) == 2))?false:true;
if(hours && not_NN2) {  if ( (typeof(hours) == 'string') && Date.parse(hours) ) {  var numHours = hours;
} else if (typeof(hours) == 'number') {  var numHours = (new Date((new Date()).getTime() + hours*3600000)).toGMTString();
}
}
document.cookie = name + '=' + escape(value) + ((numHours)?(';expires=' + numHours):'') + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'') + ((secure && (secure == true))?'; secure':'');  }   function readCookie(name) {
name += "=";
if(document.cookie == '') {  return false;
} else {  var firstChar, lastChar;
var theBigCookie = document.cookie;
firstChar = theBigCookie.indexOf(name);	  var nameStartIdx =			theBigCookie.indexOf(name);
var preFirstCharInName = 	theBigCookie.substring(nameStartIdx-1,nameStartIdx);
if (preFirstCharInName != "" && preFirstCharInName != " ") {
name = ' '+name;
firstChar = theBigCookie.indexOf(name);
}
if (firstChar != -1) {  if (firstChar != -1) firstChar += name.length;
lastChar = theBigCookie.indexOf(';', firstChar);  if(lastChar == -1) lastChar = theBigCookie.length;
return unescape(theBigCookie.substring(firstChar, lastChar));
} else {  return false;
}
}
}  function killCookie(name, path, domain) {
var theValue = readCookie(name);  if(theValue) {
document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:'');  }
}  function updateCookieShared (name,chip,value) {
var CookieShared = readCookie(name);
var updateChipShared =  chip + "=" + value + "&";
if (readCookie(name) == "") {
var newCookieShared = updateChipShared;
} else {
if (newCookieParse(chip,readCookie(name)) == "") {
var newCookieShared = readCookie(name) + updateChipShared;
} else {
var thisChip = chip + "=" + newCookieParse(chip,readCookie(name)) + "&";
var newCookieShared = CookieShared.replace(thisChip, updateChipShared);
}
}
if (name == 'PC') {
var expireDate = 'Wed, 29 Dec 2010 23:23:59 GMT';
} else {
var expireDate = '';
}
setCookie(name,newCookieShared,expireDate,'/','.iwon.com')
}
function deleteCookieShared	(name, chip) {
var CookieShared = readCookie(name);
var CookieSharedChip = newCookieParse(chip,readCookie(name));
if (CookieShared != "" || CookieShared != "false") {
if (CookieSharedChip != "" && CookieSharedChip != "undefined" && CookieSharedChip != null) {
var thisChip = chip + "=" + CookieSharedChip + "&";
newCookieShared = CookieShared.replace(thisChip, "");
if (newCookieShared == "") {
var newCookieShared = "foo&";
}
setCookie(name,newCookieShared,'Wed, 29 Dec 2010 23:23:59 GMT','/','.iwon.com')
}
}
}
var CookieSC = readCookie('SC');
function readCookieSC (chip) {
return (newCookieParse(chip,CookieSC));
}
function updateCookieSC (chip,value) {
updateCookieShared('SC',chip,value)
}
function deleteCookieSC	(chip) {
deleteCookieShared('SC',chip)
}
var CookiePC = readCookie('PC');
function readCookiePC (chip) {
return (newCookieParse(chip,CookiePC));
}
function updateCookiePC (chip,value) {
updateCookieShared('PC',chip,value)
}
function deleteCookiePC	(chip) {
deleteCookieShared('PC',chip)
}

var httpRequest = parent.location.href;
if (httpRequest.substring(0,5) == "https") {
var bagImage = "https://mycashpoints.iwon.com/cash_points/images/cash_bones2.gif"
} else {
var bagImage = "http://i1img.com/images/cash_bones2.gif"
}
function getCookie (name) {
    var cname = name + "=";
    var clen = document.cookie.length;
    var cbegin = 0;
    while (cbegin < clen) {
		var vbegin = cbegin + cname.length;
		if (document.cookie.substring(cbegin, vbegin) == cname) { 
		    var vend = document.cookie.indexOf (";", vbegin);
		    if (vend == -1) vend = clen;
		    return unescape(document.cookie.substring(vbegin, vend));
		}
		cbegin = document.cookie.indexOf(" ", cbegin) + 1;	
		if(cbegin == 0) cbegin = clen;
    }
    return null;
}
var inSignin = false;
var inRegistration = false;
var boneCountFormat;
var boneOutputBox;
var boneOutputValues;
var dollars = "---";
rndToday=new Date();
rndSeed=rndToday.getTime();
var ssuid = readCookie('ssuid');
var user_num = readCookie('user_num');
var b_cookie = readCookie('b');
function addCommas(num) {
	grab = 3;
	if (num.indexOf(".") > -1)
		grab = 3 + (num.length - num.indexOf("."));
	var numWithCommas = ""	
	if(num.length <= grab) {
		return num;
	}
	for(var i = num.length - grab;  i > 0;  i -= 3) {
		numWithCommas = "," + num.substring(i, i+grab) + numWithCommas;
		grab = 3;
	}
	numWithCommas = num.substring(0, Math.abs(3+i)) + numWithCommas;	
	return numWithCommas;
}

if(b_cookie == null) {
	var errorcode = readCookie('errorcode');
} else {
	var errorcode = newCookieParse('e',b_cookie);
}	
function showFirstBox() {
	if(inRegistration) {
		document.write('<br>');
		boneCountFormat = 2;
	}
	else if(inSignin) {
		document.write('<br>');
		boneCountFormat = 2;
	}
	else if(ssuid == null || user_num == null || user_num == "" || user_num == false || ssuid == '-1' || errorcode == '4' || errorcode == null) {
		boneOutputBox = '<div align=center><a href="http://www.iwon.com/home/login/1,11732,,00.html"><font face=Verdana,Sans-Serif size=1 color=ffffff><b>Existing Members</b></font></a><br><a href="http://www.iwon.com/home/login/1,11732,,00.html"><font face=Verdana,Sans-Serif size=1 color=ffffff><b>Sign In</b></font></a>';
		boneCountFormat = 1;
	}
	else {
		if(errorcode == 1) {
			boneOutputBox = '<font face=Verdana,Sans-Serif size=1 color=ccffff>Hold on, we\'re busy<br>counting your entries.</font>';
			boneCountFormat = 1;
		}
		else if(errorcode == 2) {
			boneOutputBox = '<font face=Verdana,Sans-Serif size=1 color=ccffff>We\'re sorry, we are<br>experiencing some<br>technical difficulties.</font>';
			boneCountFormat = 1;
		}
		else if(errorcode == 3){
			var fname = readCookie('fname');
			boneOutputBox = '<font face=Verdana,Sans-Serif size=2 color=ffffff><b>Hi, ' + fname + '</b></font><br><a href="http://www.iwon.com/home/my_entries/100entries/0,14965,,00.html"><font face=Verdana,Sans-Serif size=1 color=ccFFFF>Congrats!&nbsp;100&nbsp;entries.</font></a>'; 
			boneCountFormat = 0;
		}else{
			var fname = readCookie('fname');
			boneOutputBox = '<font face=Verdana,Sans-Serif size=2 color=ffffff><b>Hi, ' + fname + '</b></font><br><a href="http://www.iwon.com/home/user_reg_and_login/signout_confirm/0,14789,,00.html"><font face=Verdana,Sans-Serif size=1 color=ccFFFF>I am not ' + fname + '</a></font>'; 
			boneCountFormat = 0;
		}
	}
return boneOutputBox;
}
var bBarDailyDesc 	= "Chances for";
var bBarDailyLink 	= "http://www.iwon.com/home/winning/winners_overview/0,11932,,00.html";
var bBarDailyPriz 	= "$10,000";
var bBarMonthlyDesc = "Chances for";
var bBarAnnualDesc 	= "Chances for";

if(b_cookie == null || b_cookie == false || ssuid == null || user_num == null || user_num == "" || user_num == false || ssuid == '-1') {
	 bBarDayIndex = '-1';
} else {
	 var Dchip = newCookieParse('D',b_cookie);
	if(Dchip != null) {
		bBarDay = new Array();
		bBarDay[0] = 'Weekend';
		bBarDay[1] = 'Monday';
		bBarDay[2] = 'Tuesday';
		bBarDay[3] = 'Wednesday';
		bBarDay[4] = 'Thursday';
		bBarDay[5] = 'Friday';
		bBarDay[6] = 'Weekend';
		bBarDayIndex   = newCookieParse('D',b_cookie);
		bBarDayName    = bBarDay[bBarDayIndex];
	
		bBarMonth = new Array();
		bBarMonth[0] = 'January';
		bBarMonth[1] = 'February';
		bBarMonth[2] = 'March';
		bBarMonth[3] = 'April';
		bBarMonth[4] = 'May';
		bBarMonth[5] = 'June';
		bBarMonth[6] = 'July';
		bBarMonth[7] = 'August';
		bBarMonth[8] = 'September';
		bBarMonth[9] = 'October';
		bBarMonth[10] = 'November';
		bBarMonth[11] = 'December';
		bBarMonthIndex    = newCookieParse('M',b_cookie);
		bBarMonthName 	  = bBarMonth[bBarMonthIndex];
		
		var bBarDailyDesc 	= bBarDayName;
		var bBarMonthlyDesc = bBarMonthName;
		var bBarAnnualDesc 	= "Annual";
		if (bBarDayIndex == 6 || bBarDayIndex == 0) {
			var bBarDailyPriz 	= "10x$1,000";	
			var bBarDailyLink 	= "http://www.iwon.com/home/winning/weekend_winners_overview/0,3426,,00.html";
		} 
	}
}
function showBoneCount(mode, which) {
	var output = "";
	var title = ""; 
	var w_key = ""; 
	var w_val = ""; 
	var w_keynum ; 
	var w_valnum ; 
	var w_limit = ""; 
	var w_needed = ""; 
	if(boneCountFormat == 0) {
		if(b_cookie != null || b_cookie == "" || b_cookie == false ) {
			if(which == "daily") {
				 if (bBarDayIndex != 0) {
					 output = newCookieParse('d',b_cookie);
				} else {
					 var sundayPoints = parseInt(newCookieParse('d',b_cookie)) -  parseInt(newCookieParse('P',b_cookie));
					var sundayPointsStr = ""+sundayPoints+"";
					output = sundayPointsStr;
				}
			} else if (which == "weekly") {
				output = b_cookie;
			} else if (which == "monthly") {
				output = newCookieParse('m',b_cookie);
			} else if (which == "yearly") {
				output = newCookieParse('y',b_cookie);
			} else if (which == "dollars") {
				output = newCookieParse('c',b_cookie);
				if (output != false) {
					calc = output * 0.01 + 0.001;
					temp = calc + " ";
					output = temp.substring(0,temp.indexOf(".") + 3);
				} else {
					 output = "---";
				}
			} else {
			}
		} else {
			output = readCookie(which);
		}			
		
		if(output == null) {
			output = "--";
		} else {
			if((errorcode == 3) && (which == "daily")) {
				if (bBarDayIndex == 0 || bBarDayIndex == 6 && which == "daily") {
					 title = "Total "+newCookieParse('d',b_cookie)+"<br>";
				} else {
					 title = "Limit<br>";
				}
			} else if (which == "dollars") {
				title = "";
			} else if (bBarDayIndex == -1) {
				 if (which == "yearly") {
					linkHere = "http://www.iwon.com/home/prizes/10_million/10_million_overview/0,18515,1,00.html";
				} else if (which == "monthly") {
					linkHere = "http://www.iwon.com/home/winning/monthly/100_monthly_winners_overview/0,16115,,00.html";
				} else {
					linkHere = bBarDailyLink;
				}
				output = "</font><a href='"+linkHere+"?PG=global?SEC=bbar'><font color=FFFFFF size=1><b>HERE!</b></font></a>&nbsp;";
				title = "<a href='"+linkHere+"?PG=global?SEC=bbar'><font color=FFFFFF size=1><b>CLICK</b></font></a>&nbsp;<br>";
			} else {
				if (bBarDayIndex == 0 && which == "daily") {
					 title = "Total "+newCookieParse('d',b_cookie)+"<br>";
				} else {
					 title = "Entries<br>";
				}
			}
			if (bBarDayIndex != -1) {
			output = addCommas(output);
			
			}
 			if(output == null) {
				output = "---";
			} 
		}
	}else if(boneCountFormat == 2) {
		output = "&nbsp";
		title = "&nbsp";
	}else if(errorcode == 1) {
		output = "</font></b><font color=FFFFFF size=1>entries...</font>";
		title = "Counting<br>";
	}else if(errorcode == 2) {
		output = "</b></font><font color=FFFFFF size=1>unavailable</font>";
		title = "Temporarily<br>";
	}else if(which == "dollars") {
		output = "---";
	}else {
		output = "</font><a href='http://www.iwon.com/home/registration_form/1,12057,,00.html?PG=global?SEC=bbar'><font color=FFFFFF size=1><b>HERE!</b></font></a>&nbsp;";
		title = "<a href='http://www.iwon.com/home/registration_form/1,12057,,00.html?PG=global?SEC=bbar'><font color=FFFFFF size=1><b>CLICK</b></font></a>&nbsp;<br>";
	}
	cashpointdollars = output;		
	boneOutputValues = '<font face=Verdana,Sans-Serif size=1 color=FFFFFF>' + title + '<font size=2><b>' + output + '</b></font></font>';
return boneOutputValues;
}
function rnd() {
    rndSeed = (rndSeed*9301+49297) % 233280;
    return rndSeed/(233280.0);
}
function rand(number) {
    return Math.ceil(rnd()*number);
}
function getHtmlAds(){
	var unreg='<a href=http://www.iwon.com/home/registration_form/1,12057,,00.html?PG=global?SEC=bbar><font face=Verdana,Sans-Serif size=1 color=000000><b>Win up to<br>$25,000,000</b></font></a></td><td align=right><a href=http://www.iwon.com/home/registration_form/1,12057,,00.html?PG=global?SEC=bbar>';
	var mac='<a href=http://www.iwon.com/home/companyinfo/iwon_dol/0,3698,,00.html?PG=global?SEC=bbar><font face=Verdana,Sans-Serif size=1 color=000000><b>New - Reward<br>Points!!!</b></font></a></td><td align=right><a href=http://www.iwon.com/home/companyinfo/iwon_dol/0,3698,,00.html?PG=global?SEC=bbar>';
	var arrayHtml = new Array('<a href=http://www.iwon.com/bd.redir?redir=http://contest.iwon.com/competition/sweepstakes/MonthlyBonusOverview.jsp&alias=/alias/competition/sweepstakes/MonthlyBonusOverview&PG=global&SEC=bbar><font face=Verdana,Sans-Serif size=1 color=000000><b>Hawaiian Trip<br>Sign Up!</b></font></a>',
								'<a href=http://www.iwon.com/home/prizes/office_depot_sweeps/office_depot_splash/0,19214,,00.html?PG=global?SEC=bbar><font face=Verdana,Sans-Serif size=1 color=000000><b>Win a 20K<br>Savings Bond</b></font></a>', 
							  '<a href=http://www.iwon.com/bd.redir?redir=http://contest.iwon.com/competition/sweepstakes/MonthlyBonusOverview.jsp&alias=/alias/competition/sweepstakes/MonthlyBonusOverview&PG=global&SEC=bbar><font face=Verdana,Sans-Serif size=1 color=000000><b>August MBP -<br>Sign up Now!</b></font></a>',
							  '<a href=http://www.iwon.com/bd.redir?redir=http://contest.iwon.com/competition/sweepstakes/MonthlyBonusOverview.jsp&alias=/alias/competition/sweepstakes/MonthlyBonusOverview&PG=global&SEC=bbar><font face=Verdana,Sans-Serif size=1 color=000000><b>Win a Home<br>Theater!</b></font></a>',							 
							  '<a href=http://casino.iwon.com/index.html?PG=global?SEC=bbar><font face=Verdana,Sans-Serif size=1 color=000000><b>iWon Casino<br>Play Now!</b></font></a>'
							  
							  );
	var agt=navigator.userAgent.toLowerCase();
	var agtN=navigator.appName.toLowerCase();
	if (agt.indexOf("mac") != -1 && agtN.indexOf("netscape")!=-1){
		return mac;
	}else if(user_num==null){
		return unreg;
	}else{
		var showHtml=arrayHtml[rand(arrayHtml.length)-1];
		return showHtml;
	}
}		
  function getValsfromString(instr) {
  if ( instr.length != 16 ) { return(null) ; }
  val = new Array() ;
  for (x=0 ; x < 16 ; x++) {
    var n = parseInt(instr.charAt(x), 16) ;
    for (y=0 ; y < 4 ; y++) {
      val[x*4+y] = ( (n >> (3-y)) % 2 == 1 ) ? true : false ;
    }
  }
  return(val);
}	
if (b_cookie != null) {
	HexString = newCookieParse('h',b_cookie);	
	var ParsedString = getValsfromString(HexString);
	errorcode = newCookieParse('e',b_cookie);
} else {
	var ParsedString = 'null';
	var errorcode = 'null';
}
if (user_num != null && errorcode != null && errorcode != 'null' && errorcode != 1 && errorcode != 2) {
	if (ParsedString != null && ParsedString != 'null' && ParsedString[62] == true && ParsedString[63] == false) {
		var documentLocation = escape(document.location);
		updateCookieSC('D',documentLocation);
		document.location.replace('http://www.iwon.com/notification_page_cached/0,14388,,00.html');
	}
}
  var bonebar = '<table id=bonenav name=bonenav border=0 cellpadding=0 cellspacing=0 width=100% bgcolor=FFFFFF>' +
	'<tr valign=middle>' +
		'<td bgcolor=3366CC width=14% nowrap>' +
			showFirstBox() +
			'<br>' +
		'</td>' +
		'<td bgcolor=ffbb05 width=14% nowrap>' +
			'<table cellpadding=1 width=100% cellspacing=0 border=0><tr><td>'+
			getHtmlAds() +
			'</td></tr></table>' + 
		'</td>' +
		'<td bgcolor=ff9900 width=9% nowrap>' +
			'<font face=Verdana,Sans-Serif size=1><a href="'+bBarDailyLink+'?PG=global?SEC=bbar"><font color=000000><b>'+bBarDailyDesc+'</b></font></a><b><br>'+bBarDailyPriz+'</b></font><font size=2>&nbsp;</font><br></td>' +
		'<td bgcolor=ff9900 width=6% nowrap align=center>' +
			showBoneCount('0','daily') +
			'<br>' +
		'</td>' +
		'<td bgcolor=ff6600 width=8% nowrap>' +
			'<font face=Verdana,Sans-Serif size=1><a href="http://www.iwon.com/home/winning/monthly/100_monthly_winners_overview/0,16115,,00.html?PG=global?SEC=bbar"><font color=000000><b>'+bBarMonthlyDesc+'</b></font></a><b><br>100x$1,000</b></font><font size=2>&nbsp;</font><br></td>' +
		'<td bgcolor=ff6600 width=7% nowrap align=center>' +
			showBoneCount('0','monthly') +
			'<br>' +
		'</td>' +
		'<td bgcolor=ff0000 width=8% nowrap>' +
			'<font face=Verdana,Sans-Serif size=1><a href="http://www.iwon.com/home/prizes/10_million/10_million_overview/0,18515,1,00.html?PG=global?SEC=bbar"><font color=000000><b>'+bBarAnnualDesc+'</b></font></a><b><br>$25 Million</b></font><font size=2>&nbsp;</font><br></td>' +
		'<td bgcolor=ff0000 width=8% nowrap align=center>' +
			showBoneCount('0','yearly') +
			'<br>' +
		'</td>' +
		'<td bgcolor=1bb870 width=13% nowrap align=center>' +
			'<table border=0 cellpadding=0 cellspacing=0 width=20 align=center><tr><tdalign=center><font face=Verdana,Sans-Serif size=1><a href="http://www.iwon.com/bd.redir?redir=http://cashpoints.iwon.com&alias=/external/cashpoints?PG=global?SEC=bbar"><b><font color=000000>Reward&nbsp;Points</font></b></a></td></tr><tr><td align=center><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td align=center><font face=Verdana,Sans-Serif size=2 color=ffffff><b>' +
			showBoneCount('0','dollars') +
			'</b></font></td></tr></table></td></tr></table></td>' +
			'<td bgcolor=662d91 width=13% nowrap align=center valign=top>' +
			'<font face=Verdana,Sans-Serif size=1><a href="http://www.iwon.com/home/cashback/cashback_splash/0,18695,,00.html?PG=global?SEC=bbar"><font color=ffcc00><b>Cash Back</b></font></a><br><a href="http://www.iwon.com/home/cashback/cashback_splash/0,18695,,00.html?PG=global?SEC=bbar"><font face=verdana color=white><b>Coming Soon!</b></font></a></font>'+			
		'</td>' +
	'</tr>' +

	'</table>' +
	'<table cellpadding=3 cellspacing=0 border=0 width=100%>' +
	'<tr align=center bgcolor=d5effe>' +
		'<td valign=top width=8%><font face=Verdana,Sans-Serif size=1 color=666666>5&nbsp&gt;&nbsp;</font><a href=http://home.iwon.com?PG=global?SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>iWon</b></font></a></td>' +
		'<td valign=top width=11%><font face=Verdana,Sans-Serif size=1 color=666666>5&nbsp&gt;&nbsp;</font><a href=http://www.iwon.com/my/0,3616,,00.html?PG=global?SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>My iWon</b></font></a></td>' +
		'<td valign=top width=9%><font face=Verdana,Sans-Serif size=1 color=666666>7&nbsp&gt;&nbsp;</font><a href=http://www.iwon.com/home/email/email_init/0,17107,,00.html?PG=global?SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>Email</b></font></a></td>' +
		'<td valign=top width=11%><font face=Verdana,Sans-Serif size=1 color=666666>9&nbsp&gt;&nbsp;</font><a href="http://shopping.iwon.com/index.html?PG=global?SEC=bnav"><font face=verdana,sans-serif size=1 color=3366cc><b>Shopping</b></font></a></td>' +
		'<td valign=top width=14%>' +
		'<font face=Verdana,Sans-Serif size=1 color=666666>7&nbsp&gt;&nbsp;</font><a href=http://www.iwon.com/bd.redir?redir=http://cashpoints.iwon.com&alias=/external/cashpoints?PG=global?SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>Reward Pts</b></font></a>' +
		'</td>' +
		'<td valign=top width=9%>' +
		'<font face=Verdana,Sans-Serif size=1 color=666666>5&nbsp&gt;&nbsp;</font><a href=http://prizes.iwon.com/index.html?PG=global?SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>Prizes</b></font></a>' +
		'</td>' +
		'<td valign=top width=9%><font face=Verdana,Sans-Serif size=1 color=666666>5&nbsp&gt;&nbsp;</font><a href=http://casino.iwon.com/index.html?PG=global?SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>Casino</b></font></a></td>' +
		'<td valign=top width=14% nowrap><font face=Verdana,Sans-Serif size=1 color=666666>5&nbsp&gt;&nbsp;</font><a href=http://contest.iwon.com/survey/surveyQuestions.jsp?alias=/home/survey/survey_today&PG=global&SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>Today\'s Survey</b></font></a></td>' +
		'<td valign=top width=14%><font face=Verdana,Sans-Serif size=1 color=666666>5&nbsp&gt;&nbsp;</font><a href=http://today.iwon.com/index.html?PG=global?SEC=bnav><font face=verdana,sans-serif size=1 color=3366cc><b>iWon Today</b></font></a></td>' +
		'</tr>' +
 '</table>' ;
document.write(bonebar);
function showPopup(pageToLoad,winName,width,height,center) {
 var xposition=0; var yposition=0;
 var browser_name = navigator.appName;
 if (parseInt(navigator.appVersion) >= 4 ){
	xposition = (screen.width - width) / 2;
	yposition = (screen.height - height) / 2;
 }
 args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1," + "scrollbars=0," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," + "screeny=" + yposition + "," + "left=" + xposition + "," + "top=" + yposition; 
  var new_window = window.open(pageToLoad ,winName, args);
}
//-->