jQuery(document).ready(function(){
	
	// Top Main Banner
	var x;
	var mainBanner = new Array();
	
	/*
		below is were you can make change for the banner in the main header area... there are two elements seperated by "|"...
		first value is the url for the banner and second value is the image url for the banner...
		
		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...
	*/
	mainBanner[0] = "http://auctions.nhl.com/cgi-bin/ncommerce3/User?id=meiNHL&wl=12717464&type=A|http://www.meigray.com//ctlimg/meigray/img/banners/USAHockey_FrontPage_Banner.jpg";
	
	//Dev Note: leave this code unless you need to make changes to the appearance or display of content...
	for (x in mainBanner) {
		var mainBanner_array=mainBanner[x].split("|");
		$("#mainBanner").append("<a href=" + mainBanner_array[0] + "><img src=" + mainBanner_array[1] + " border=0></a>");
	}
	
	
	// Top Nav Banners
	var x;
	var tpBanners = new Array();
	
	/*
		below is were you can make change for the banner above the top navigation... there are two elements seperated by "|"...
		first value is the url for the banner and second value is the image url for the banner...
		
		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...
		The area the banners are in, only allow enough space for 4 or them... Don't add addition one to the array below...
	*/
	tpBanners[0] = "http://www.meigray.com/edealinv/servlet/ExecMacro?nurl=static/Newsroom.vm&ctl_nbr=2381&siId=5791201&scId=6991&page=newsitem&catParentID=$catParentID|http://www.meigray.com//ctlimg/meigray/img/banners/meigray_authenticated.gif";
	tpBanners[1] = "http://auction.nhl.com/cgi-bin/ncommerce3/User?id=hfcNHL&wl=12717464&type=A|http://www.meigray.com//ctlimg/meigray/img/banners/2012ASDraft.jpg";
	tpBanners[2] = "http://www.meigray.com/edealinv/servlet/ExecMacro?nurl=static/Newsroom.vm&ctl_nbr=2381&siId=5622552&scId=6991&page=newsitem&catParentID=$catParentID|http://www.meigray.com//ctlimg/meigray/img/banners/MGGCalendar.jpg";
	tpBanners[3] = "http://www.nhlgameworn.com|http://www.meigray.com//ctlimg/meigray/img/banners/NHLgameworn.jpg";
	
	//Dev Note: leave this code unless you need to make changes to the appearance or display of content...
	for (x in tpBanners) {
		var tpBanners_array=tpBanners[x].split("|");
		$("#topBanners").append("<div style='float:left;padding-left:24px;'><a href=" + tpBanners_array[0] + "><img src=" + tpBanners_array[1] + " border=0></a></div>");
	}
	
	
	// Right Nav Banners
	var x;
	var rtBanners = new Array();
	
	/*
		below is were you can make change for the banner in the right navigation... there are two elements seperated by "|"...
		first value is the url for the banner and second value is the image url for the banner...
		
		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...
	*/
	rtBanners[0] = "http://www.nhlgameworn.com/edealinv/servlet/ExecMacro?nurl=static/PopuReport.vm&ctl_nbr=2490|http://www.meigray.com//ctlimg/meigray/img/banners/POP_reports_Side.jpg";
	rtBanners[1] = "http://www.meigray.com/edealinv/servlet/ExecMacro?nurl=static/Newsroom.vm&ctl_nbr=2381&siId=5536574&scId=6991&page=newsitem|http://www.meigray.com//ctlimg/meigray/img/banners/photo_loa_2.jpg";
	
	//Dev Note: leave this code unless you need to make changes to the appearance or display of content...
	for (x in rtBanners) {
		var rtBanners_array=rtBanners[x].split("|");
		$("#rightBanners").append("<div style='padding-bottom:8px;'><a href=" + rtBanners_array[0] + "><img src=" + rtBanners_array[1] + " border=0></a></div>");
	}
	
});
