// This is for the rotating welcome 
var loginWelcome = GetCookie( "login" );
var welcomeText='Welcome to the Fan Center';

if (( loginWelcome == null ) || ( loginWelcome == "null" )){
      //You are not logged in	  
     welcomeText = 'Welcome to the Fan Center';
}
else{
	var MaxNum = 3;
	var num = Math.floor( MaxNum*Math.random());
	switch (num){
		case 0:
			welcomeText = 'Welcome to the Fan Center ' + loginWelcome;
			break;
		case 1:
			welcomeText = 'Hello ' + loginWelcome + ', welcome to the Fan Center';
			break;
		case 2:
			welcomeText = 'Hi ' + loginWelcome + ', welcome to the Fan Center';
			break;
	}
}


//This is for the promotional content next to the login part.
var promo1='<table cellpadding=0 cellspacing=0 align=center border=0 style=FONT-SIZE: 12px; FONT-FAMILY: arial,helvetica><tr><td><div style=margin:7px><div style=font-size:14px;color:000000;margin-left:10px;font-family:Verdana,arial;line-height:1.5em;><b>Not yet a Member? Join the Fan Center lineup now to enjoy FREE  benefits:</b></div><br><div style=margin-left:10px;font-family:Verdana,arial;font-size:12px;color:#000000;line-height:1.5em;padding:3px>  <img src=/media/exclusives/fc_bullet.gif border=0 height=12 width=12> <font color=193682><b>Watch Exclusive Video Features</b></font><br><br>  <img src=/media/exclusives/fc_bullet.gif border=0 height=12 width=12> <font color=193682><b>Enter Sweepstakes and Play Fantasy Games</b></font><br><br>  <img src=/media/exclusives/fc_bullet.gif border=0 height=12 width=12> <font color=193682><b>Receive E-mail Newsletters and Alerts</b></font><br><br>  <img src=/media/exclusives/fc_bullet.gif border=0 height=12 width=12> <font color=193682><b>Download Interactive Features and Games</b></font><br><br>So get off the bench.  <b>It\'s fast, easy and free!</b></div></div></td></tr></table>';



//For exculsive video
var promo2='<tr><td colspan=2><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=7 width=1><td></tr><tr><td colspan=2 align=center><div style=font-size:14px;color:000000;font-family:Verdana,arial;line-height:1.5em;><b>Want to know more?  Register now to get these Fan Center benefits:<td></tr><tr><td colspan=2><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=7 width=1><td></tr><tr><td width=260 valign=top align=center CLASS="promo" onmouseover="this.className=\'promoOut\'"  onmouseout="this.className=\'promo\'">EXCLUSIVE VIDEO<br><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=5 width=1><br><a href=http://www.nba.com/video/pow0405_highlights.html><img width=80 height=60 align=left border=0 src=http://media.nba.com/media/pod_bryant_k_031219_grab.JPG><img width=80 height=60 align=left border=0 src=http://media.nba.com/media/pod_carter_v_031209_grab.JPG><img width=80 height=60 align=left border=0 src=http://media.nba.com/media/pod_james_l_040213_grab.JPG></a></td><td width=390 valign=top ><div style=font-family:Verdana,arial;font-size:11px;color:#000000;line-height:1.5em;padding:3px;margin-right:25px><font color=193682><b>EXCLUSIVE VIDEO FEATURES</b></font><br>Want broadband video highlights of the top players every week?  Fan Center members get exclusive access to video of the best moves made by the best players.  Join the Fan Center to see it all for free.</div></td></tr><tr><td colspan=2><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=7 width=1><td></tr>';


//For Sweepstakes
var promo3='<tr><td valign=top align=center  CLASS=promo onmouseover="this.className=\'promoOut\'" onmouseout="this.className=\'promo\'"><center>WIN A PERSONALIZED JERSEY<br><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=5 width=1><br><a href=http://www.nba.com/webAction?actionId=surveyInitialize&target=/special_offers/jersey0405_sweepstakes.jsp&surveyId=1148><IMG SRC=http://www.nba.com/media/exclusives/jersey_sweeps05_245.gif border=0 width=245 height=105 alt=Enter to win></a></td><td width=390 valign=top><div style="font-family:Verdana,arial;font-size:11px;color:#000000;line-height:1.5em;padding:3px;margin-right:25px"><font color="193682"><b>SWEEPSTAKES, PROMOTIONS, FANTASY GAMES</b></font><br>Get the chance to win a personalized jersey and many other sweepstakes, fantasy games and promotions with great prizes with just one click.<br><br>You can also request a mail-order catalog and take part in special auctions for autographed memorabilia.</div></td></tr><tr><td colspan=2><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=7 width=1></td></tr>';


//For newsletters
var promo4='<tr><td width=260 valign=top align=center CLASS=promo onmouseover="this.className=\'promoOut\'" onmouseout="this.className=\'promo\'">E-MAIL NEWS AND ALERTS<br><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=5 width=1><br><a href=http://www.nba.com/rm/newsletters_signup.jsp><IMG SRC=http://www.nba.com/media/exclusives/starting5_hdr_240.jpg width=240 height=30 border=0><br><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=2 width=1><br><IMG SRC=http://www.nba.com/media/exclusives/wnba_wn_email_hdr_240.jpg width=238 height=29 border=0></a></td><td width=390 valign=middle><div style="font-family:Verdana,arial;font-size:11px;color:#000000;line-height:1.5em;padding:3px;margin-right:25px"><font color="193682"><b>E-MAIL NEWSLETTERS AND ALERTS</b></font><br>Get the latest insider news, behind-the-scenes coverage and valuable offers by e-mail. You control what news you want and when you want it with daily and weekly options. And you can easily unsubscribe at any time.</div></td></tr><tr><td colspan=2><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=7 width=1></td></tr>';


//For Interactive Features
var promo5='<tr><td width=260 valign=top align=center CLASS=promo onmouseover="this.className=\'promoOut\'" onmouseout="this.className=\'promo\'">DOWNLOADS AND GAMES<br><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=5 width=1><br><a href=http://www.nba.com/special_offers/crossword_puzzles.html><IMG SRC=http://www.nba.com/media/exclusives/finals05_savergrab_70.jpg width=100 height=70 border=0> <IMG SRC=http://www.nba.com/media/exclusives/fc_cross_grab_80.gif width=70 height=70 border=0> <IMG SRC=http://www.nba.com/media/exclusives/fc_trivia_thb_80.gif width=70 height=70 border=0></a></td><td width=390 valign=middle><div style="font-family:Verdana,arial;font-size:11px;color:#000000;line-height:1.5em;padding:3px;margin-right:25px"><font color="193682"><b>INTERACTIVE FEATURES, PUZZLES AND GAMES</b></font><br>Play original crossword puzzles and trivia games and enjoy other interactive features such as screensavers and desktop wallpaper designs. Sign up to start having fun.</div></td></tr><tr><td colspan=2><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=7 width=1></td></tr>';


//For Voice of the fan
var promo6='<tr><td valign=top align=center  CLASS=promo onmouseover="this.className=\'promoOut\'" onmouseout="this.className=\'promo\'">E-MAIL THE LEAGUE OFFICE<br><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=5 width=1><br><a href=http://www.nba.com/webAction?actionId=surveyInitialize&target=/email_us/email_form_041027.jsp&surveyId=1152><IMG SRC=http://www.nba.com/media/exclusives/fc_fans245x60.jpg border=0 width=245 height=60 alt=Send an E-mail></a></td><td width=390 valign=top><div style="font-family:Verdana,arial;font-size:11px;color:#000000;line-height:1.5em;padding:3px;margin-right:25px"><font color="193682"><b>VOICE OF THE FAN</b></font><br>We want to know what you think. Only Fan Center members have the opportunity to send an e-mail to the NBA League Office. Sign up now to send us your ideas and comments.</div></td></tr><tr><td colspan=2><img src=http://www.nba.com/media/nbav2/blank.gif border=0 height=7 width=1></td></tr>';

