function openMenuWindow(page) {
	window.open(page, "menuWindowResizable");
}

function MM_displayStatusMsg(msgStr)  {
	status = msgStr;
	document.MM_returnValue = true;
}

function MM_swapImage() {
	var i, j=0, x, a = MM_swapImage.arguments;
	document.MM_sr = new Array;
	for (i = 0; i < (a.length - 2); i += 3) {
	if ((x = MM_findObj(a[i])) != null) {
		document.MM_sr[j++] = x;
		if(!x.oSrc) x.oSrc = x.src;
		x.src = a[i+2];
		}
	}
}

function MM_swapImgRestore() {
	var i, x, a = document.MM_sr;
	for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d = document;
	if(d.images) {
		if(!d.MM_p) {
			d.MM_p=new Array();
		}
	}

	var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
	for (i = 0; i < a.length; i++) {
		if (a[i].indexOf("#") != 0) {
			d.MM_p[j] = new Image; d.MM_p[j++].src = a[i];
		}
	}
}

function fwLoadMenus() {
	var textFont = "Verdana, Arial, Helvetica, sans-serif";
	var textSize = 10;
	var textOffCol = "#FFFFFF";
	var textOnCol = "#B6D727";
	var bgOffCol = "#000000";
	var bgOnCol = "#000000";

	if (window.fw_menu_0) return;

	// News menu
	window.fw_menu_0 = new Menu("root",150,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_0.addMenuItem("&#0155; Top Story","location='/news/topstory.aspx'");
	fw_menu_0.addMenuItem("&#0155; Also In The News","location='/news/'");
	fw_menu_0.addMenuItem("&#0155; News Archive","location='/news/archive/'");
	fw_menu_0.addMenuItem("&#0155; Special Events","location='/news/events/'");
	fw_menu_0.addMenuItem("&#0155; RSS Feed","location='/news/rss/default.aspx'");
	fw_menu_0.hideOnMouseOut=true;

	// Community menu
	window.fw_menu_1 = new Menu("root",225,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_1.addMenuItem("&#0155; Message Board","location='http://board.spawn.com/'");
	fw_menu_1.addMenuItem("&#0155; Toys Forum","location='http://board.spawn.com/forums/forumdisplay.php?f=11'");
	fw_menu_1.addMenuItem("&#0155; Sports Forum","location='http://board.spawn.com/forums/forumdisplay.php?f=15'");
	fw_menu_1.addMenuItem("&#0155; Collector's Club Forum","location='http://board.spawn.com/forums/forumdisplay.php?f=13'");
	fw_menu_1.addMenuItem("&#0155; Movies, TV, Music & Games Forum","location='http://board.spawn.com/forums/forumdisplay.php?f=12'");
	fw_menu_1.addMenuItem("&#0155; Comics Forum","location='http://board.spawn.com/forums/forumdisplay.php?f=10'");
	fw_menu_1.addMenuItem("&#0155; ToddCast","location='http://board.spawn.com/forums/forumdisplay.php?f=18'");
	fw_menu_1.addMenuItem("&#0155; Buy/Sell/Trade: General Forum","location='http://board.spawn.com/forums/forumdisplay.php?f=19'");
	fw_menu_1.addMenuItem("&#0155; Buy/Sell/Trade: Sports Picks Forum","location='http://board.spawn.com/forums/forumdisplay.php?f=21'");
	fw_menu_1.addMenuItem("&#0155; CultureBoom","location='http://board.spawn.com/forums/forumdisplay.php?f=23'");
	fw_menu_1.hideOnMouseOut=true;

	// Features menu
	window.fw_menu_2 = new Menu("root",225,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_2.addMenuItem("&#0155; McFarlane's Military Series 4","location='javascript:openMenuWindow(\"/features/military4\");'");
	fw_menu_2.addMenuItem("&#0155; McFarlane's Dragons Series 4","location='javascript:openMenuWindow(\"/features/dragons4\");'");
	fw_menu_2.addMenuItem("&#0155; Corpse Bride Series 2","location='javascript:openMenuWindow(\"/features/corpsebride2\");'");
	fw_menu_2.addMenuItem("&#0155; Hanna-Barbera Series 1","location='javascript:openMenuWindow(\"/features/hb\");'");
	fw_menu_2.addMenuItem("&#0155; Spawn Series 29: Evolutions","location='javascript:openMenuWindow(\"/features/series29\");'");
	fw_menu_2.addMenuItem("&#0155; McFarlane's Military Series 3","location='javascript:openMenuWindow(\"/features/military3\");'");
	fw_menu_2.addMenuItem("&#0155; The McFarlane Collection","location='javascript:openMenuWindow(\"/collection/intro.html\");'");
	fw_menu_2.addMenuItem("&#0155; Also in Features","location='/features/'");
	fw_menu_2.hideOnMouseOut=true;

	// Toys menu
	window.fw_menu_3 = new Menu("root",225,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_3.addMenuItem("&#0155; Now In Stores","location='/toys/#nowinstores'");
	fw_menu_3.addMenuItem("&#0155; Coming Soon","location='/toys/#comingsoon'");
	fw_menu_3.addMenuItem("&#0155; Collector's Club","location='/toys/mtcc/'");
	fw_menu_3.addMenuItem("&#0155; Release Dates","location='/info/releasedates.aspx'");
	fw_menu_3.addMenuItem("&#0155; Where To Buy","location='/toys/wheretobuy/'");
	fw_menu_3.addMenuItem("&#0155; Instructions","location='/toys/instructions/'");
	fw_menu_3.addMenuItem("&#0155; Spawn Figures","location='/toys/categorytype.aspx?categoryid=4'");
	fw_menu_3.addMenuItem("&#0155; Movies and Television Figures","location='/toys/categorytype.aspx?categoryid=8'");
	fw_menu_3.addMenuItem("&#0155; Horror, Fantasy and Sci-Fi Figures","location='/toys/categorytype.aspx?categoryid=6'");
	fw_menu_3.addMenuItem("&#0155; Games and Animation Figures","location='/toys/categorytype.aspx?categoryid=5'");
	fw_menu_3.addMenuItem("&#0155; Music Figures","location='/toys/categorytype.aspx?categoryid=7'");
	fw_menu_3.addMenuItem("&#0155; Comic Book Figures","location='/toys/categorytype.aspx?categoryid=10'");
	fw_menu_3.addMenuItem("&#0155; Military Figures","location='/toys/categorytype.aspx?categoryid=28'");
	fw_menu_3.addMenuItem("&#0155; Baseball Figures","location='/toys/categorytype.aspx?categoryid=24'");
	fw_menu_3.addMenuItem("&#0155; Basketball Figures","location='/toys/categorytype.aspx?categoryid=25'");
	fw_menu_3.addMenuItem("&#0155; Football Figures","location='/toys/categorytype.aspx?categoryid=26'");
	fw_menu_3.addMenuItem("&#0155; Hockey Figures","location='/toys/categorytype.aspx?categoryid=27'");
	fw_menu_3.addMenuItem("&#0155; NASCAR Figures","location='javascript:openMenuWindow(\"http://www.actionmcfarlane.com/\");'");
	fw_menu_3.hideOnMouseOut=true;

	// Comics menu
	window.fw_menu_4 = new Menu("root",175,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_4.addMenuItem("&#0155; Spawn","location='/comics/series.aspx?series_id=1'");
	fw_menu_4.addMenuItem("&#0155; Case Files: Sam & Twitch","location='/comics/series.aspx?series_id=26'");
	fw_menu_4.addMenuItem("&#0155; Shadows of Spawn","location='/comics/series.aspx?series_id=28'");
	fw_menu_4.addMenuItem("&#0155; Art of Greg Capullo","location='/comics/series.aspx?series_id=30'");
	fw_menu_4.addMenuItem("&#0155; Spawn: Godslayer","location='/comics/series.aspx?series_id=31'");
	fw_menu_4.addMenuItem("&#0155; Spawn/Batman","location='/comics/series.aspx?series_id=32'");
	fw_menu_4.addMenuItem("&#0155; Spawn Collection","location='/comics/series.aspx?series_id=29'");
	fw_menu_4.addMenuItem("&#0155; Sam and Twitch Collection","location='/comics/series.aspx?series_id=33'");
	fw_menu_4.addMenuItem("&#0155; Hellspawn Collection","location='/comics/series.aspx?series_id=34'");
	fw_menu_4.addMenuItem("&#0155; Best of Curse of the Spawn","location='/comics/series.aspx?series_id=35'");
	fw_menu_4.addMenuItem("&#0155; Spawn Trade Paperbacks","location='/comics/series.aspx?series_id=36'");
	fw_menu_4.addMenuItem("&#0155; Archived Series","location='/comics/'");
	fw_menu_4.addMenuItem("&#0155; International Publishing","location='/comics/international'");
	fw_menu_4.hideOnMouseOut=true;

	// Entertainment menu
	window.fw_menu_5 = new Menu("root",200,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_5.addMenuItem("&#0155; Disturbed: Cover and Video","location='/entertainment/disturbed/'");
	fw_menu_5.addMenuItem("&#0155; Spawn the Animation","location='/entertainment/spawnanimation/'");
	fw_menu_5.addMenuItem("&#0155; McFarlane's Evil Prophecy","location='/entertainment/evilprophecygame/'");
	fw_menu_5.addMenuItem("&#0155; Spawn: Armageddon","location='/entertainment/armageddongame/'");
	fw_menu_5.addMenuItem("&#0155; SOULCALIBUR II","location='/entertainment/sc2game/'");
	fw_menu_5.addMenuItem("&#0155; Spawn: In the Demon's Hand","location='/entertainment/demonshandgame/'");
	fw_menu_5.addMenuItem("&#0155; Sims Spawn Snowboards","location='/entertainment/simsboards/'");
	fw_menu_5.addMenuItem("&#0155; Swollen Members: Heavy","location='/entertainment/swollenmembersalbum/'");
	fw_menu_5.addMenuItem("&#0155; Swollen Members: Breath","location='/entertainment/swollenmembersvideo/'");
	fw_menu_5.addMenuItem("&#0155; Korn: Freak on a Leash","location='/entertainment/kornvideo/'");
	fw_menu_5.addMenuItem("&#0155; Pearl Jam: Do the Evolution","location='/entertainment/pearljamvideo/'");
	fw_menu_5.addMenuItem("&#0155; Dangerous Lives of Altar Boys","location='/entertainment/altarboys/'");
	fw_menu_5.addMenuItem("&#0155; Todd McFarlane's Spawn","location='/entertainment/spawnanimated/'");
	fw_menu_5.addMenuItem("&#0155; Spawn the Movie","location='/entertainment/spawnmovie/'");
	fw_menu_5.hideOnMouseOut=true;

	// Info menu
	window.fw_menu_6 = new Menu("root",175,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_6.addMenuItem("&#0155; Todd's Bio","location='/info/'");
	fw_menu_6.addMenuItem("&#0155; Company Profiles","location='/info/'");
	fw_menu_6.addMenuItem("&#0155; Customer Service","location='/info/CustomerService/'");
	fw_menu_6.addMenuItem("&#0155; Contests","location='/info/contests.aspx'");
	fw_menu_6.addMenuItem("&#0155; Contest Rules","location='/info/contestrules.aspx'");
	fw_menu_6.addMenuItem("&#0155; Release Dates","location='/info/releasedates.aspx'");
	fw_menu_6.addMenuItem("&#0155; For Retailers","location='/info/retailers.aspx'");
	fw_menu_6.addMenuItem("&#0155; Employment Opportunities","location='http://jobs.spawn.com/info/jobs/'");
	fw_menu_6.hideOnMouseOut=true;

	// Store menu
	window.fw_menu_7 = new Menu("root",225,13,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_7.addMenuItem("&#0155; Spawn Store (Online)","location='javascript:openMenuWindow(\"http://store.spawn.com/\");'");
	fw_menu_7.addMenuItem("&#0155; McFarlane Toys Store (Tempe, AZ)","location='/store/showroom'");
	fw_menu_7.hideOnMouseOut=true;

	fw_menu_7.writeMenus();
}

function MM_findObj(n, d) {
	var p, i, x;
	if (!d) d=document;
	if((p = n.indexOf("?")) > 0 && parent.frames.length) {
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}
	if (!(x = d[n]) && d.all) x=d.all[n];
	for (i = 0; !x && i < d.forms.length; i++) x=d.forms[i][n];
	for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n,d.layers[i].document);
	if (!x && document.getElementById) x = document.getElementById(n); return x;
}

