	
	// TO ADD A NEW AD IMAGE 
	// ADD THE LINK AND THE IMAGE NAME TO THE ARRAY NAMED 'Banners'
	
	var Banners
	//The format of the array is as follows
	// [ URL to be shown, Image to display in ad banner, alt text, "NewWindow" = show in pop up & "SameWindow" show in same window]
	/* Banners = [					
					['../DownLoads/Weekender%20Overview%20V6.pdf', '../images/ad1.gif', 'View .pdf file for Weekender (Requires Acrobat Reader)', 'NewWindow'],
					['../DownLoads/Custom%20Pgs%20SellsheetV1.pdf', '../images/ad2.gif', 'View .pdf file for Custom Pages (Requires Acrobat Reader)', 'NewWindow'],
					['../DownLoads/Mature%20Market%20SellsheetV4.pdf', '../images/ad3.gif', 'View .pdf file for Mature Market (Requires Acrobat Reader)', 'NewWindow'],					
					['../DownLoads/SeasonalProductsV2.pdf', '../images/ad5.gif', 'View .pdf file for Seasonal Products (Requires Acrobat Reader)', 'NewWindow'],
					['../DownLoads/Standby%20Info%20Sheet%20V6.pdf', '../images/ad6.gif', 'View .pdf file for Stand By (Requires Acrobat Reader)', 'NewWindow']
					
				];	*/
	
	Banners = [					
					['../Registration/UserGuide.pdf', '../images/Guide_Ad.gif', 'View illustrated quick start guide (Requires Acrobat Reader)', 'NewWindow'],
					['../Registration/UserGuide.pdf', '../images/Hispanic_Ad.gif', 'View illustrated quick start guide (Requires Acrobat Reader)', 'NewWindow'],
					['../MediaList/MSSLists.asp', '../images/MSS_Lists_Ad.gif', 'Check MSS Lists', 'SameWindow']															
				];
				
	var currentimgNumber = 0;
	var numberOfImages = Banners.length;
	
	function window_onload()
	{	
		switchImage();
	}			
	
	function switchImage()
	{
		if (document.images) 
		{
			currentimgNumber++;							
			if (currentimgNumber <= numberOfImages)		
			{	
				document.images['Adrotator'].src = Banners[currentimgNumber-1][1]
				document.images['Adrotator'].alt = Banners[currentimgNumber-1][2]
			}
			else
			{			
				currentimgNumber = 0;
				currentimgNumber++;			
				document.images['Adrotator'].src = Banners[currentimgNumber-1][1]
				document.images['Adrotator'].alt = Banners[currentimgNumber-1][2]
			}
				
			setTimeout("switchImage()",10000);						
		}				
	}
	
	function ShowLink()
	{
		if (escape(Banners[currentimgNumber-1][0] != "") && Banners[currentimgNumber-1][3] == "NewWindow")
		{
		URL = Banners[currentimgNumber-1][0];						
		MakeWindow(URL)
		}
		else if (escape(Banners[currentimgNumber-1][0] != "") && Banners[currentimgNumber-1][3] == "SameWindow")
		{
		URL = Banners[currentimgNumber-1][0];						
		location.href = URL;
		}

	}
	
	function MakeWindow(form,width,height,left,top,options,name)
	{
		if ( ! width ) width = 900;
		if ( ! height ) height = 700;
		if ( ! left ) left = 20;
		if ( ! top ) top = 20;
		if ( ! options ) options = "scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes";
		//if ( ! name ) name = "wPop";
		
		var wf = window.open(form,name,"width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + "," + options);	
		
		if( !wf.opener ) wf.opener = self;
		
		if (wf != null) 
		{
			wf.focus();
		}		
	}   
	
	/*
	function MakeWindow( form, width, height, left, top, options, name )
	{
		width = ( !width ) ? 650 : width;
		height = ( !height ) ? 350 : height;
		left = ( !left ) ? 20 : left ;
		top = ( !top ) ? 20 : top;
		options = ( !options ) ? "scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes" : options;
		name = ( !name ) ? "wPop" : name;
		var wf = window.open( form, name, "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + "," + options);	
				
		if( wf != null ) 
			wf.focus( );
	
	} */
