	
	// Custom POPUP windows
	
	// The following loads in different sites and links into an array, and has the following format:
	// (sitename, url, width, height)
	
	// Use the same sitename if you want to open up a new window using the same window size. 
	// Otherwise, type a different sitename for a different window size.
	
	// Please note, the array starts counting at zero
	// eg. site1 is zero, while site3 is 2
	var a_sites = new Array ( new Array('site1', 'http://www.flashthat.com/About.html', 600, 450), 
		                  new Array('site1', 'http://www.flashthat.com/In-Death.htm', 405, 538),
                                  new Array('site1', 'http://www.flashthat.com/Tigers-Eye.htm', 900, 1350),
                                  new Array('site1', 'http://home.iprimus.com.au/flashthat/Tigers-Eye.htm', 1050, 730),
                                  new Array('site1', 'http://www.flashthat.com/About.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/DownloadsPage.html', 640, 480),
                                  new Array('site1', 'http://www.flashthat.com/AwardWinners.html', 600, 450),
				  new Array('site3', 'http://www.flashthat.com/Skull2.htm', 409, 500),
                                  new Array('site1', 'http://www.flashthat.com/Goth2.htm', 409, 601),
                                  new Array('site1', 'http://www.flashthat.com/AwardProgram.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Prints1.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Prints2.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Jeepers.htm', 412, 536),
                                  new Array('site1', 'http://www.flashthat.com/Prints3.htm', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/In-my-mind.htm', 405, 536),
                                  new Array('site1', 'http://www.flashthat.com/SerialKiller.htm', 405, 534),
                                  new Array('site1', 'http://www.flashthat.com/I-Can-See-You.htm', 405, 538),
                                  new Array('site1', 'http://www.flashthat.com/Jeepers2.htm', 405, 538),
                                  new Array('site1', 'http://www.flashthat.com/Occult.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Occult-Links.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Pagan.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Pagan-Guestbook.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Countess-de-Beaumont.htm', 405, 536),
                                  new Array('site1', 'http://www.flashthat.com/Countess-de-Beaumont.htm', 405, 536),
                                  new Array('site1', 'http://www.flashthat.com/BannerPage.html', 600, 450),
                                  new Array('site1', 'http://www.flashthat.com/Awards_Re.html', 600, 450),
				  new Array('site2', 'http://www.flashthat.com/Asder-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/DandieStar.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Xmas-Star-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/AljapaCo.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/4-Elements-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/heidi-walsh.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Jem.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Dougs-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/American-Ass-Webmasters.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Adv-Web-Dev.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Artists-Choice.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Big-Oscar.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Award-Artisan-Studio.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/AJCF.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Sonnys-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Casey-Charm.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Pharao-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/canada-graphics.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Sinapsis-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Wow-Award.htm', 426, 253),
                                  new Array('site2', 'http://www.flashthat.com/Please-Read.htm', 426, 253),
                                  new Array('site1', 'http://www.flashthat.com/InfectedF.htm', 405, 536),
                                  new Array('site1', 'http://www.flashthat.com/ByProductInfected.htm', 405, 536),
                                  new Array('site1', 'http://www.flashthat.com/SpellCaster.htm', 405, 538));
                                 

	// script to call within flash's on release function for the button etc: 
	// eg. getURL ("javascript:rt_popup(0);");
	function rt_popup(site) {
		if (site < a_sites.length) { 
			popit(a_sites[site][0], a_sites[site][1], a_sites[site][2], a_sites[site][3], 'no');  
		} else {
			alert('Please verify the site link.');
		}
	}
			   
	function popit(name, url, width, height, scroll) { 
		var movey;
		var movex;
		var screenheight=600;
		var screenwidth=800;
		var objWindow;
		
		if (typeof(screen)!='undefined'){
			screenheight=screen.height;
			screenwidth=screen.width;
		}
	
		movex=Math.round((screenwidth-width)/2)-20;
		movey=Math.round((screenheight-height)/2)-60;
		
		objWindow = window.open (url, name, 'toolbar=0,resizable=0,status=0,scrollbars='+scroll+',width='+width+',height='+height+',left='+movex+',top='+movey+',screenX='+movex+',screenY='+movey);	  	
	}
