jQuery(document).ready(function(){
	
    var x;
	var ticker = new Array();
	
	/*
		below is were you make changes to the scrolling text in the header... there are three elements seperated by "|"...
		first value is the date, second value is message and third value is the url for the item...
		If you just want a text message to scroll leave the url empty, don't remove the "|"...
		There is a character limit per scrolling message of about 120 characters, this includes both the date and message...
		
		Please note:
		Values need to inserted between the quotes... Be very careful to not add any addition quotes in between them or remove them...
		Also please make sure the "|" aren't removed either...
	*/
	ticker[0] = "|Check out our MeiGray sponsorship deal photos with the LA Kings! |http://www.facebook.com/#!/media/set/?set=a.10150487420467984.357542.71539427983&type=1"
	ticker[1] = "|NHL All-Star Game Puck Auction!  Click here to bid!|http://auction.nhl.com/cgi-bin/ncommerce3/User?id=gamewornNHL&wl=12717464&type=A"
	ticker[2] = "|NHL All-Star Game Fantasy Draft Auction to benefit Hockey Fights Cancer!  Click here to bid!|http://auction.nhl.com/cgi-bin/ncommerce3/User?id=hfcNHL&wl=12717464&type=A"
	ticker[3] = "|2012 Winter Classic Game-Used Stick Auction!  Click here Flyers fans!|http://auction.nhl.com/cgi-bin/ncommerce3/User?id=mgNHL&wl=12717464&type=A"




	
	

	

		



	
	//Dev Note: leave this code unless you need to make changes to the appearance or display of content...
	for (x in ticker) {
		var ticker_array=ticker[x].split("|");
		if(ticker_array[2] == ""){
			var startHref = "";
			var endHref = "";
		} else {
			var startHref = "<a href=" + ticker_array[2] + ">";
			var endHref = "</a>";
		}
		$("#ticker01").append("<li><span>" + ticker_array[0] + "</span>" + startHref + ticker_array[1] + endHref + "</li>");
	}	
    
});
