// 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 get FREE stuff:</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>E-mail Alerts Make You an Insider</b></font><br><br>  <img src=/media/exclusives/fc_bullet.gif border=0 height=12 width=12> <font color=193682><b>Exclusive Sweepstakes and Promotions</b></font><br><br>  <img src=/media/exclusives/fc_bullet.gif border=0 height=12 width=12> <font color=193682><b>Discounts on Apparel, Footwear and Gear</b></font><br><br>  <img src=/media/exclusives/fc_bullet.gif border=0 height=12 width=12> <font color=193682><b>Wallpaper, Screensavers, Games and More</b></font><br><br>So get off the bench and sign up. <b>It\'s 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=/media/dirk_fancenterlogin.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>EXCLUSIVE PROMOTIONS<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/lamisil_sweeps.jsp&surveyId=1234><IMG SRC=http://www.nba.com/media/exclusives/aslamisil_promo.gif border=0 width=245 height=128 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>Enter to win great NBA and WNBA prizes and experiences in exclusive sweepstakes, fantasy games and promotions 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=/media/finals_2006_grab_login.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>';


