/*******************************************************************
*
*	Drop-Down Dynamic Menu For www.AllFlashDesign.com
*	(c) April 2, 2003, Eug Br
*	Works on NN4.7x, NN6.x, IE4, IE5, IE6
*
*******************************************************************/

/*******************************************************************
*	Browser Check function
*******************************************************************/
function BrowserCheck(){

	if(document.getElementById){
		this.type = 1;	/* DOM compilant (IE>4.0, Mozilla, NN6.x, Opera) */
	}else if(document.all){
		this.type = 2;	/* IE>4.x */
	}else if(document.layers){
		this.type = 3;	/* NN4.x */
	}else{
		alert("Please install a browser that support JavaScript layers.");
		return;
	}
}

/*******************************************************************
*	GetMenuItemByIdentity function
*******************************************************************/
function GetMenuItemByIdentity(identity){

	var obj;
	
	switch(browserObj.type){
		case 1:
			obj = document.getElementById("AllFlashMenuID" + identity);
		break;
		case 2:
			eval("obj = document.all.AllFlashMenuID" + identity);
		break;
		case 3:
			eval("obj = document.AllFlashMenuID" + identity);
		break;
	}
	
	return obj;

}

/*******************************************************************
*	GetImageByIdentity function
*******************************************************************/
function GetImageByIdentity(identity){

	var obj;
	
	switch(browserObj.type){
		case 1:
			obj = document.getElementById("AllFlashMenuImageID" + identity);
		break;
		case 2:
			eval("obj = document.all.AllFlashMenuImageID" + identity);
		break;
		case 3:
			eval("obj = document.AllFlashMenuImageID" + identity);
		break;
	}
	
	return obj;

}

/*******************************************************************
*	This is the basic AllFlashMenuItem class constructor.
*******************************************************************/
function AllFlashMenuItem(tagAttributes, positioning, contents){

	if(!document.AllFlashMenuItems){
		document.AllFlashMenuItems = new Array(0);
	}

	this.id = document.AllFlashMenuItems.length;

	document.AllFlashMenuItems[this.id] = this;

	this.thisPositioning = (positioning) ? (positioning) : ("position:absolute;");
	if(this.thisPositioning.indexOf("z-index") == -1){
		this.thisPositioning += "z-index:5;";
	}

	this.thisTagAttributes = (tagAttributes) ? (tagAttributes) : ("");

	this.totalText = "<DIV " + this.thisTagAttributes + " STYLE='" +
			this.thisPositioning + "' ID='AllFlashMenuID" + this.id +
			"'>" + contents + "</DIV>";

	document.writeln(this.totalText);
	
	this.self = GetMenuItemByIdentity(this.id);
	this.style = (browserObj.type == 3) ? this.self : this.self.style;

	this.show = AllFlashMenuItem_show;
	this.hide = AllFlashMenuItem_hide;
	this.moveTo = AllFlashMenuItem_moveTo;

	this.hide();

}

/*******************************************************************
*	This is the "show" method of the basic AllFlashMenuItem class.
*******************************************************************/
function AllFlashMenuItem_show(){

	if(browserObj.type == 3){
		this.style.visibility = "show";
	}else{
		this.style.visibility = "visible";
	}

}

/*******************************************************************
*	This is the "hide" method of the basic AllFlashMenuItem class.
*******************************************************************/
function AllFlashMenuItem_hide(){

	if(browserObj.type == 3){
		this.style.visibility = "hide";
	}else{
		this.style.visibility = "hidden";
	}

}

/*******************************************************************
*	This is the "moveTo" method of the basic AllFlashMenuItem class.
*******************************************************************/
function AllFlashMenuItem_moveTo(xx, yy){

	this.style.left = xx;
	this.style.top = yy;

	this.x = xx;
	this.y = yy;

}

/*******************************************************************
*	This is a constructor for the AllFlashMenuEntireMenu class.
*******************************************************************/
function AllFlashMenuEntireMenu(xx, yy, xwidth, yheight){

	this.x = xx;
	this.y = yy;

	this.width = xwidth;
	this.height = yheight;

	this.base = AllFlashMenuItem;
	
	this.base(
		"",
		"position:absolute;width:" + this.width + ";height:" + this.height + ";",
		"<TABLE CELLSPACING='0' CELLPADDING='0' BORDER='0' " +
			"WIDTH=" + this.width + " " +
			"HEIGHT=" + this.height + " " +
			"><TR><TD>&nbsp;</TD></TR></TABLE>"
	);

	this.items = new Array(0);

	this.superclassShow = this.show;
	this.show = AllFlashMenuEntireMenu_show;
	this.superclassHide = this.hide;
	this.hide = AllFlashMenuEntireMenu_hide;
	this.moveTo = AllFlashMenuEntireMenu_moveTo;
	this.addItem = AllFlashMenuEntireMenu_addItem;

	this.moveTo(this.x, this.y);

}

AllFlashMenuEntireMenu.prototype = AllFlashMenuItem;

/*******************************************************************
*	This is the "show" method of the AllFlashMenuEntireMenu class.
*******************************************************************/
function AllFlashMenuEntireMenu_show(){

	this.superclassShow();
	if(this.items.length != 0){
		for(i = 0; i < this.items.length; i++){
			this.items[i].show();
		}
	}

}

/*******************************************************************
*	This is the "hide" method of the AllFlashMenuEntireMenu class.
*******************************************************************/
function AllFlashMenuEntireMenu_hide(){

	this.superclassHide();

	if(this.items.length != 0){
		for(i = 0; i < this.items.length; i++){
			this.items[i].hide();
		}
	}

}

/*******************************************************************
*	This is the "moveTo" method of the AllFlashMenuEntireMenu class.
*******************************************************************/
function AllFlashMenuEntireMenu_moveTo(xx, yy){

	var i;
	var xOffs = xx - this.x;
	var yOffs = yy - this.y;

	this.style.left = xx;
	this.style.top = yy;

	if(this.items){
		for(i=0; i<this.items.length; i++){
			this.items[i].moveTo(this.items[i].x + xOffs, this.items[i].y + yOffs);
		}
	}

	this.x = xx;
	this.y = yy;
}


/*******************************************************************
*	This is the "addItem" method of the AllFlashMenuEntireMenu class.
*******************************************************************/
function AllFlashMenuEntireMenu_addItem(left, top, width, height, img_reg, img_over, alt, url){

	var newMenuItem = this.items[this.items.length] = new AllFlashMenuSingleItem(
							this,
							this.x + left,
							this.y + top,
							width,
							height,
							img_reg,
							img_over,
							alt,
							url
						);
	return newMenuItem;

}

/*******************************************************************
*	This is a constructor for the AllFlashMenuSingleItem class.
*******************************************************************/
function AllFlashMenuSingleItem(parent, xx, yy, xwidth, yheight, regImg_reg, overImg_over, theAlt, theUrl){

	if(!parent.items){
		alert("Create the entire menu first!");
		return 0;
	}

	this.x = xx;
	this.y = yy;

	this.width = xwidth;
	this.height = yheight;

	this.img_reg = regImg_reg;
	this.img_over = overImg_over;

	this.imgObject = new Image();
	this.alt = theAlt;

	if(theUrl){
		this.url = "javascript:openwindow(\"" + theUrl + "\")";
		this.hasSubMenuItems = false;
	}else{
		this.url = "#";
		this.hasSubMenuItems = true;
	}

	this.base = AllFlashMenuItem;
	
	if(this.img_reg){
	
		////////////////////////////////////////////////////////////////////////
		//This case is for graphical menu. this.img_reg serves as a flag here 
		////////////////////////////////////////////////////////////////////////

		//////////////////////////////////////////////////////////////////	
		// Set a comment to the next line to avoid pre-loading RollOvers
		this.imgObject.src = overImg_over;
		//////////////////////////////////////////////////////////////////

		var currentArrayLength = document.AllFlashMenuItems.length;
		var mouseOutForAChildNode = (theUrl) ? "onMouseOut='AllFlashMenuOnMouseOutHandler(" + currentArrayLength + ")' " : "";

		this.base(
			"",
			"position:absolute;width:" + this.width + ";height:" + this.height + ";",
			"<A HREF='" + this.url + "' " + 
				"onMouseOver='AllFlashMenuOnMouseOverHandler(" + currentArrayLength + ");window.status=\"\"; return true;' " +
				mouseOutForAChildNode +
				"><IMG BORDER='0' SRC='" + this.img_reg + "' " +
				"WIDTH='" + this.width + "' " +
				"HEIGHT='" + this.height + "' " +
				"ALT='" + this.alt + "' " +
				"ID='AllFlashMenuImageID" + currentArrayLength + "' " +
				"NAME='AllFlashMenuImageID" + currentArrayLength + "' " +
				"VALIGN=TOP></A>\n"
		);

	}else{

		////////////////////////////////////////////////////////////////////////
		//This case is for text menu. this.img_reg serves as a flag here
		////////////////////////////////////////////////////////////////////////

		this.base(
			"ALIGN='LEFT'",
			"position:absolute;width:" + this.width + ";height:" + this.height + ";",
			"<IMG BORDER='0' SRC='images/flash_menu_structured/vert_line.gif' " +
							"WIDTH='1' " +
							"HEIGHT='18' " +
							"ALT='' " +
							"ALIGN=absmiddle>" +
			"<A HREF='" + this.url + "' " +
			"onMouseOver='window.status=\"\"; return true;' " +
			"class='flmenulinks' " +
			">" + 
			"  " + this.alt +
			"</A>\n"
		);

	}
	
	if(this.hasSubMenuItems){
		/* This code should be probably changed */
		this.menu = new AllFlashMenuEntireMenu(this.x, this.y, this.width, this.height);
	}

	this.moveTo = AllFlashMenuSingleItem_moveTo;

	this.moveTo(this.x, this.y);

	this.self.self = this;

}

AllFlashMenuSingleItem.prototype = AllFlashMenuItem;

/*******************************************************************
*	This is the "moveTo" method of the AllFlashMenuSingleItem class.
*******************************************************************/
function AllFlashMenuSingleItem_moveTo(xx, yy){

	var i;

	var xOffs = xx - this.x;
	var yOffs = yy - this.y;

	this.style.left = xx;
	this.style.top = yy;

	if(this.items){
		for(i = 0; i < this.items.length; i++){
			this.items[i].moveTo(this.items[i].x + xOffs, this.items[i].y + yOffs);
		}
	}
	if(this.menu){
		this.menu.moveTo(this.menu.x + xOffs, this.menu.y + yOffs);
	}

}

/*******************************************************************
*	This is the onMouseOverHandler function.
*******************************************************************/

function AllFlashMenuOnMouseOverHandler(menuID){

	document.isMenuActiveFlag = true;

	var menuObj = document.AllFlashMenuItems[menuID];

	if(document.images && menuObj.img_over){
		var imageObj = GetImageByIdentity(menuID);
		imageObj.src = menuObj.img_over;
	}

	if(menuObj.x == 0){
		for(var i = 0; i < document.AllFlashMenuItems.length; i++){
			if(i != menuID){
				if(document.AllFlashMenuItems[i].menu){
					document.AllFlashMenuItems[i].menu.hide();
					var tempImgObj = GetImageByIdentity(i);
					var tempImgObjSrc = tempImgObj.src.replace(/.*(images.*)/, "$1");
					
					if(tempImgObjSrc != document.AllFlashMenuItems[i].img_reg){
						tempImgObj.src = document.AllFlashMenuItems[i].img_reg;
					}
				}
			}
		}
		if(menuObj.menu){
			menuObj.menu.show();
		}
	}

}

/*******************************************************************
*	This is the onMouseOutHandler function.
*******************************************************************/
function AllFlashMenuOnMouseOutHandler(menuID){

	var menuObj = document.AllFlashMenuItems[menuID];

	if(document.images && menuObj.img_reg){
		var imageObj = GetImageByIdentity(menuID);
		imageObj.src = menuObj.img_reg;
	}

	document.isMenuActiveFlag = false;
//	setTimeout("AllFlashMenuHideAll()", 500);
}

/*******************************************************************
*	This function hides all sub-menus.
*******************************************************************/
function AllFlashMenuHideAll(){

	if(!document.isMenuActiveFlag){
		for(var i = 0; i < document.AllFlashMenuItems.length; i++){
			if(document.AllFlashMenuItems[i].menu){
				document.AllFlashMenuItems[i].menu.hide();
			}
		}
	}

}

/*******************************************************************
*	A constructor for the floating ALTs.
*******************************************************************/
function AllFlashFloatingALT(title, text){

	var table = "<TABLE WIDTH='250' BORDER='0' CELLPADDING='3' CELLSPACING='0' BGCOLOR='#336600'>" +
			"<TR><TD><TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0'>" +
				"<TR><TD><B><FONT class='PTT' COLOR='#FFFFFF'>" +
				title +
				"</FONT></B></TD></TR></TABLE>" +
				"<TABLE WIDTH='100%' BORDER='0' CELLPADDING='2' CELLSPACING='0' BGCOLOR='#FFFF66'>" +
				"<TR><TD><FONT class='PST' COLOR='#000000'>" +
				text +
				"</FONT></TD></TR></TABLE>" +
			"</TD></TR></TABLE>";
			
	this.divContents = new AllFlashMenuItem("", "position:absolute;z-index:9;", table);

}

/*******************************************************************
*	This function would enable a selected floating ALT.
*******************************************************************/
function AllFlashFloatingALT_show(identity){

	document.currentlyShownFloatingALT = document.AllFlashMenuItems[identity];
	document.isFloatingALTShown = false;

}

/*******************************************************************
*	This function would disable a selected floating ALT.
*******************************************************************/
function AllFlashFloatingALT_hide(identity){

	document.currentlyShownFloatingALT.hide();
	document.isFloatingALTShown = false;
	document.currentlyShownFloatingALT = '';

}

/*******************************************************************
*	This is the document.onMouseMove handler
*******************************************************************/
if (document.layers) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = AllFlashFloatingALTsOnMouseMoveHandler;

function AllFlashFloatingALTsOnMouseMoveHandler(e){

	if(!document.currentlyShownFloatingALT){
		return; /* To avoid Gecko low performance on mouseMove */
	}

	var x,y;

	if(e){
		x = e.pageX;
		y = e.pageY;
	}else if(browserObj.type != 1){
		x = event.x;
		y = event.y;
	}else{
		x = event.x + document.body.scrollLeft;
		y = event.y + document.body.scrollTop;
	}

	document.currentlyShownFloatingALT.moveTo(x + 15, y - 20);
	if(!document.isFloatingALTShown){
		document.currentlyShownFloatingALT.show();
		document.isFloatingALTShown = true;
	}

}

function openwindow(str){
	switch (str){
		case 'flash/design_art_furniture/elegant_furniture/index.html':
			window.open(str, 'Window', 'toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=1,width=700,height=600');
		break;
		default:
			window.open(str, 'Window', 'toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=1,width=760,height=600');
		break;
	}
}
/*******************************************************************
*	End of class definitions and functions.
*******************************************************************/

/*******************************************************************
*	Creating an auxiliary browser object.
*******************************************************************/
var browserObj = new BrowserCheck();

/*******************************************************************
*	Creating the menu and filling it out.
*******************************************************************/
var AllFlashMenuObj = new AllFlashMenuEntireMenu(0, 0, 250, 492);

////////
// NOTE: AllFlashMenuEntireMenu_addItem(left, top, width, height, img_reg, img_over, alt, url)
////////
var artObj = AllFlashMenuObj.addItem(0, 0, 250, 41, "images/flash_menu_structured/01_art_menu.gif", "images/flash_menu_structured/01_art_menu_act.gif", "ARTS & HUMANITIES", "");
with(artObj){
	menu.addItem(250, 5, 200, 18, "", "", "ART gallery", "flash/design_art_furniture/art_gallery_1/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Design Architects", "flash/design_art_furniture/design_architects/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Elegant Furniture", "flash/design_art_furniture/elegant_furniture/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "Erina Designs", "flash/real_estate/irena_design_re/index.html");
	menu.addItem(250, 77, 200, 18, "", "", "Euro Furniture", "flash/design_art_furniture/euro_furniture/index.html");
	menu.addItem(250, 95, 200, 18, "", "", "Interior Designs", "flash/design_art_furniture/interior_design/index.html");
	menu.addItem(250, 113, 200, 18, "", "", "Kitchen Designs", "flash/design_art_furniture/kitchen_designs/index.html");
	menu.addItem(250, 131, 200, 18, "", "", "Marble Art", "flash/design_art_furniture/marble_art/index.html");
	menu.addItem(250, 149, 200, 18, "", "", "Susana Designs", "flash/design_art_furniture/susana_clothing_designs/index.html");
	menu.addItem(250, 167, 200, 18, "", "", "The Academy of Music", "flash/design_art_furniture/music_center/index.html");
}

var autoObj = AllFlashMenuObj.addItem(0, 41, 250, 41, "images/flash_menu_structured/02_auto_menu.gif", "images/flash_menu_structured/02_auto_menu_act.gif", "AUTO", "");
with(autoObj){
	menu.addItem(250, 5, 200, 18, "", "",  "Auto Depot", "flash/automotive/auto_depot/index.html");
	menu.addItem(250, 23, 200, 18, "", "",  "Chicago Lube", "flash/automotive/chicago_lube/index.html");
	menu.addItem(250, 41, 200, 18, "", "",  "Courier System", "flash/automotive/courier_system/index.html");
	menu.addItem(250, 59, 200, 18, "", "",  "Elk Automotive Supplies", "flash/automotive/elk_automotive_supplies/index.html");
	menu.addItem(250, 77, 200, 18, "", "",  "Center of Financial Technologies, Inc. Courier", "flash/automotive/icago_courier/index.html");
	menu.addItem(250, 95, 200, 18, "", "",  "Westland Transport", "flash/automotive/westland_transport/index.html");
}

var busiObj = AllFlashMenuObj.addItem(0, 82, 250, 41, "images/flash_menu_structured/03_busi_menu.gif", "images/flash_menu_structured/03_busi_menu_act.gif", "BUSINESS & ECONOMY", "");
with(busiObj){
	menu.addItem(250, -13, 200, 18, "", "", "Asket Composites", "flash/manufacturing/asket_composites/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "Chicago Foundry", "flash/manufacturing/chicago_foundry/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Chicago International", "flash/manufacturing/chicago_intl_industries/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Duglas Tools", "flash/manufacturing/duglas_tools/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "Femke Manufacturing", "flash/manufacturing/femke_mnf/index.html");
	menu.addItem(250, 77, 200, 18, "", "", "Illinois Machine Works", "flash/manufacturing/illinois_machine/index.html");
	menu.addItem(250, 95, 200, 18, "", "", "Metal Form", "flash/manufacturing/metal_forming/index.html");
	menu.addItem(250, 113, 200, 18, "", "", "Metal Works", "flash/manufacturing/metal_working/index.html");
	menu.addItem(250, 131, 200, 18, "", "", "Phil Machine Works", "flash/manufacturing/phil_machine_work/index.html");
	menu.addItem(250, 149, 200, 18, "", "", "Quality Fabrications", "flash/manufacturing/quality_fabricating/index.html");
	menu.addItem(250, 167, 200, 18, "", "", "Top Machinery", "flash/manufacturing/top_machinery/index.html");
	menu.addItem(250, 185, 200, 18, "", "", "Treeman Steel", "flash/manufacturing/treeman_steel/index.html");
	menu.addItem(250, 203, 200, 18, "", "", "TWA reproductions", "flash/manufacturing/twa_reproductions/index.html");
}

var compObj = AllFlashMenuObj.addItem(0, 123, 250, 41, "images/flash_menu_structured/04_comp_menu.gif", "images/flash_menu_structured/04_comp_menu_act.gif", "COMPUTERS & INTERNET", "");
with(compObj){
	menu.addItem(250, -13, 200, 18, "", "", "ADGA Security", "flash/services/adga_security/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "FC Controls", "flash/services/fc_controls/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Future Technology Solutions", "flash/services/4fts_it_solutions/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "ITA Design", "flash/services/ita_design/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "MineDepot eCommerce", "flash/tutorials/minedepot_demo/index.html");
	menu.addItem(250, 77, 200, 18, "", "", "SD Security", "flash/services/security_locksmith/index.html");
	menu.addItem(250, 95, 200, 18, "", "", "Telecom Planet", "flash/services/telecom_planet_icg/index.html");
	menu.addItem(250, 113, 200, 18, "", "", "Teleport TP", "flash/services/teleport/index.html");
	menu.addItem(250, 131, 200, 18, "", "", "Virtual Office", "flash/tutorials/virtual_office/index.html");
	menu.addItem(250, 149, 200, 18, "", "", "WAP Service", "flash/services/wap_service/index.html");
}

var jobsObj = AllFlashMenuObj.addItem(0, 164, 250, 41, "images/flash_menu_structured/05_jobs_menu.gif", "images/flash_menu_structured/05_jobs_menu_act.gif", "JOBS & EDUCATION", "");
with(jobsObj){
	menu.addItem(250, -13, 200, 18, "", "", "Crane America", "flash/construction/crane_america/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "Dalee Building Group", "flash/real_estate/dalee_builders_re/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Domus Builders", "flash/construction/domus_bld_mtg/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Industrial Vacuums", "flash/services/industrial-vacuum/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "International Requiters", "flash/services/intl_recruiters/index.html");
	menu.addItem(250, 77, 200, 18, "", "", "Placement Services", "flash/services/placement_services/index.html");
	menu.addItem(250, 95, 200, 18, "", "", "Polyester Finishing", "flash/services/rag_polyester_finishing/index.html");
	menu.addItem(250, 113, 200, 18,  "", "", "Shrintersen Excavating", "flash/construction/sh_excavating/index.html");
	menu.addItem(250, 131, 200, 18, "", "", "Staker Electric", "flash/services/staker_electric/index.html");
	menu.addItem(250, 149, 200, 18, "", "", "The Private School", "flash/services/private_school/index.html");
	menu.addItem(250, 167, 200, 18, "", "", "Van Tubular Construction", "flash/construction/van_tubular_cnst/index.html");
	menu.addItem(250, 185, 200, 18, "", "", "Welding Construction", "flash/construction/welding_trade_cnst/index.html");
}

var foodObj = AllFlashMenuObj.addItem(0, 205, 250, 41, "images/flash_menu_structured/06_food_menu.gif", "images/flash_menu_structured/06_food_menu_act.gif", "FOOD & ENTERTAINMENT", "");
with(foodObj){
	menu.addItem(250, -13, 200, 18, "", "", "Chocolate Creations", "flash/food/chocolate_foods/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "De Vida Foods", "flash/food/de_vida_foods/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Frozen Foods", "flash/food/frozen_food/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Nevibco Liquors", "flash/food/nevibco_foods/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "WOB Foods", "flash/food/wob_foods/index.html");
}

var healthObj = AllFlashMenuObj.addItem(0, 246, 250, 41, "images/flash_menu_structured/07_health_menu.gif", "images/flash_menu_structured/07_health_menu_act.gif", "HEALTH & BEAUTY", "");
with(healthObj){
	menu.addItem(250, -31, 200, 18, "", "", "ACR Unicare", "flash/spas_cosmetics/medical_supplies/index.html");
	menu.addItem(250, -13, 200, 18, "", "", "AVON Cosmetics", "flash/spas_cosmetics/avon/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "EG Cosmetics", "flash/spas_cosmetics/eg_cosmetics/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Expressions Center", "flash/spas_cosmetics/expression_center/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "HealthWay Herbal", "flash/spas_cosmetics/healthway_herbal_spa/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "Herbal Intro", "flash/spas_cosmetics/herbal_info/index.html");
	menu.addItem(250, 77, 200, 18, "", "", "Organic Spa", "flash/spas_cosmetics/organic_center_spa/index.html");
	menu.addItem(250, 95, 200, 18, "", "", "Roger`s Agencies", "flash/spas_cosmetics/salon_supplies/index.html");
	menu.addItem(250, 113, 200, 18, "", "", "Soul Herbal", "flash/spas_cosmetics/soul_herbal/index.html");
	menu.addItem(250, 131, 200, 18, "", "", "Spirit Center", "flash/spas_cosmetics/spirit_center/index.html");
}

var legalObj = AllFlashMenuObj.addItem(0, 287, 250, 41, "images/flash_menu_structured/08_legal_menu.gif", "images/flash_menu_structured/08_legal_menu_act.gif", "LEGAL", "");
with(legalObj){
	menu.addItem(250, -13, 200, 18, "", "", "ABC Consulting", "flash/services/consulting_general/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "Rosenblatt Associates", "flash/services/rosenblatt_associates/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Traders Focus", "flash/services/traders_focus/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Wist Consulting", "flash/services/wist_consulting/index.html");
}

var finanObj = AllFlashMenuObj.addItem(0, 328, 250, 41, "images/flash_menu_structured/09_finan_menu.gif", "images/flash_menu_structured/09_finan_menu_act.gif", "PERSONAL FINANCE", "");
with(finanObj){
	menu.addItem(250, -67, 200, 18, "", "", "ABN AMRO CashPro Web", "flash/tutorials/abnamro_cashpro/index.html");
	menu.addItem(250, -49, 200, 18, "", "", "Alice Financial", "flash/insurance_and_finance/alice_financial/index.html");
	menu.addItem(250, -31, 200, 18, "", "", "Anthony Mortgage", "flash/mortgage/anthony_mrtg/index.html");
	menu.addItem(250, -13, 200, 18, "", "", "Chicago Insurance", "flash/insurance_and_finance/chicago_insurance/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "CJA Finance 1", "flash/insurance_and_finance/cja_finance_1/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "CJA Finance 2", "flash/insurance_and_finance/cja_finance_2/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "DOC Mortgage", "flash/mortgage/doc_builders_mrtg/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "Fuanse Insurance", "flash/insurance_and_finance/fuans_insurance/index.html");
	menu.addItem(250, 77, 200, 18, "", "", "GRI Finance", "flash/insurance_and_finance/gri_finance_insurance/index.html");
	menu.addItem(250, 95, 200, 18, "", "", "Inter Finance", "flash/insurance_and_finance/inter_finance/index.html");
	menu.addItem(250, 113, 200, 18, "", "", "Light Financial", "flash/insurance_and_finance/light_financial/index.html");
	menu.addItem(250, 131, 200, 18, "", "", "Noble Finance", "flash/insurance_and_finance/noble_finance/index.html");
	menu.addItem(250, 149, 200, 18, "", "", "Papar Mortgage", "flash/mortgage/papar_mrtg/index.html");
	menu.addItem(250, 167, 200, 18, "", "", "Paul Mortgage", "flash/mortgage/paul_mrtg/index.html");
}

var realObj = AllFlashMenuObj.addItem(0, 369, 250, 41, "images/flash_menu_structured/10_real_menu.gif", "images/flash_menu_structured/10_real_menu_act.gif", "REAL ESTATE", "");
with(realObj){
	menu.addItem(250, -121, 200, 18, "", "", "CENTURY 21", "flash/real_estate/century_re/index.html");
	menu.addItem(250, -103, 200, 18, "", "", "DALEE Real Estate", "flash/real_estate/dalee_builders_re/index.html");
	menu.addItem(250, -85, 200, 18, "", "", "Home Law Center", "flash/real_estate/home_law_re/index.html");
	menu.addItem(250, -67, 200, 18, "", "", "HomeLife", "flash/real_estate/eve_re/index.html");
	menu.addItem(250, -49, 200, 18, "", "", "HomeLife South", "flash/real_estate/sasha_re/index.html");
	menu.addItem(250, -31, 200, 18, "", "", "RE/MAX BG", "flash/real_estate/chapila_re/index.html");
	menu.addItem(250, -13, 200, 18, "", "", "RE/MAX Crossings", "flash/real_estate/mak_re/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "RE/MAX Midwest", "flash/real_estate/steve_re/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "RE/MAX North Central", "flash/real_estate/alex_re/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "RE/MAX Properties", "flash/real_estate/warren_re/index.html");
	menu.addItem(250, 59, 200, 18, "", "", "RE/MAX Tontina", "flash/real_estate/tontina_re/index.html");
	menu.addItem(250, 77, 200, 18, "", "", "ROYAL LePAGE", "flash/real_estate/royal_re/index.html");
	menu.addItem(250, 95, 200, 18, "", "", "ROYAL Quebec", "flash/real_estate/vlad_re/index.html");
	menu.addItem(250, 113, 200, 18, "", "", "Shopping Malls", "flash/real_estate/shopping_re/index.html");
	menu.addItem(250, 131, 200, 18, "", "", "Sutton Central", "flash/real_estate/pele_re/index.html");
}

var recreObj = AllFlashMenuObj.addItem(0, 410, 250, 41, "images/flash_menu_structured/11_recre_menu.gif", "images/flash_menu_structured/11_recre_menu_act.gif", "RECREATION & SPORTS", "");
with(recreObj){
	menu.addItem(250, -13, 200, 18, "", "", "ABC Dance Studio", "flash/services/dance_studio/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "American Casino", "flash/services/american_casino/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Collectable Sports", "flash/services/collector_sports/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Psychic Connections", "flash/services/psychic_connections/index.html");
}

var travelObj = AllFlashMenuObj.addItem(0, 451, 250, 41, "images/flash_menu_structured/12_travel_menu.gif", "images/flash_menu_structured/12_travel_menu_act.gif", "TRAVEL", "");
with(travelObj){
	menu.addItem(250, 5, 200, 18, "", "", "Discount Travel", "flash/travel/travel/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Holiday Inn", "flash/travel/florida_holiday_inn/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Labat Travel", "flash/travel/labat_travel/index.html");
}

var onlineObj = AllFlashMenuObj.addItem(0, 492, 250, 41, "images/flash_menu_structured/13_online_menu.gif", "images/flash_menu_structured/13_online_menu_act.gif", "ONLINE SHOPPING", "");
with(onlineObj){
	menu.addItem(250, -103, 200, 18, "", "", "ABN AMRO Marketplace", "flash/tutorials/abnamro_marketplace/index.html");
	menu.addItem(250, -85, 200, 18, "", "", "Advanced Marketing Solutions", "flash/flash_web_site_designs/amc_intro_icg/index.html");
	menu.addItem(250, -67, 200, 18, "", "", "Fora Wireless", "flash/services/fora_wireless/index.html");
	menu.addItem(250, -49, 200, 18, "", "", "Neon Signs", "flash/services/signs_neon/index.html");
	menu.addItem(250, -31, 200, 18, "", "", "Optica", "flash/services/optical/index.html");
	menu.addItem(250, -13, 200, 18, "", "", "Rose Depot", "flash/services/roses/index.html");
	menu.addItem(250, 5, 200, 18, "", "", "Rubber Distribution", "flash/services/rubber_distrib/index.html");
	menu.addItem(250, 23, 200, 18, "", "", "Sign Depot", "flash/services/signdepot_icg/index.html");
	menu.addItem(250, 41, 200, 18, "", "", "Spirit Wireless", "flash/services/spirit_wireless/index.html");
}

var otherObj = AllFlashMenuObj.addItem(0, 533, 250, 41, "images/flash_menu_structured/14_other_menu.gif", "images/flash_menu_structured/14_other_menu_act.gif", "OTHER", "");
with(otherObj){
	menu.addItem(250, -199, 200, 18, "", "", "Apex Tracking Solutions", "flash/flash_web_site_designs/apex_banner/index.html");
	menu.addItem(250, -181, 200, 18, "", "", "Design Creations 1", "flash/flash_web_site_designs/design_1/index.html");
	menu.addItem(250, -163, 200, 18, "", "", "Design Creations 2", "flash/flash_web_site_designs/design_2/index.html");
	menu.addItem(250, -145, 200, 18, "", "", "Design Creations 3", "flash/flash_web_site_designs/design_3/index.html");
	menu.addItem(250, -127, 200, 18, "", "", "Design Creations 4", "flash/flash_web_site_designs/design_4/index.html");
	menu.addItem(250, -109, 200, 18, "", "", "Design Creations 5", "flash/flash_web_site_designs/design_5/index.html");
	menu.addItem(250, -91, 200, 18, "", "", "Design Creations 6", "flash/flash_web_site_designs/design_6/index.html");
	menu.addItem(250, -73, 200, 18, "", "", "Design Creations 7", "flash/flash_web_site_designs/design_7/index.html");
	menu.addItem(250, -55, 200, 18, "", "", "Design Creations 8", "flash/flash_web_site_designs/design_9/index.html");
	menu.addItem(250, -37, 200, 18, "", "", "Design Creations 9", "flash/flash_web_site_designs/design_10/index.html");
	menu.addItem(250, -19, 200, 18, "", "", "Design Creations 10", "flash/flash_web_site_designs/design_11/index.html");
	menu.addItem(250, -1, 200, 18, "", "", "Digital Ventures", "flash/flash_web_site_designs/digital_ventures/index.html");
	menu.addItem(250, 17, 200, 18, "", "", "Garage Sales Plus", "flash/flash_web_site_designs/garage_sale/index.html");
}

/*******************************************************************
*	Writing a margin-table for the regular HTML content.
*******************************************************************/
//var requiredHeight = (browserObj.type == 3) ? 99 : 107;
//document.writeln( "<TABLE BORDER='0' WIDTH='100%' HEIGHT='" + requiredHeight + "'><TR><TD>&nbsp;</TD></TR></TABLE>" );

/*******************************************************************
*	Calculating the right position for the dynamic menu.
*******************************************************************/

if(document.all){
	width = document.body.offsetWidth - 20;
}else if(navigator.userAgent.indexOf("Opera") != -1){
	width = window.innerWidth + 125;
}else{
	width = window.innerWidth - 15;
}

x = 220;
y = 150;

/*******************************************************************
*	Embedding the top image.
*******************************************************************/
AllFlashTopImage = new AllFlashMenuItem("ALIGN='LEFT'", "position:absolute;z-index:0;", "<IMG src='images/flash_menu_structured/top_flash.gif' BORDER='0' ALT='' usemap='#Map'><map name='Map'><area shape='rect' coords='0,0,110,28' href='outsourcing_portfolio_web_design.htm'><area shape='rect' coords='110,0,260,28' href='outsourcing_portfolio_web_development.htm'><area shape='rect' coords='260,0,370,28' href='outsourcing_portfolio_flash_design.htm'></map>");
AllFlashTopImage.moveTo(x, y);
AllFlashTopImage.show();

/*******************************************************************
*	Setting the menu flag to false,
*	moving the menu and showing it up.
*******************************************************************/
var isMenuActiveFlag = false;
AllFlashMenuObj.moveTo(x, y + 38);
AllFlashMenuObj.show();

/*******************************************************************
*	Embedding the bottom image.
*******************************************************************/
AllFlashBottomImage = new AllFlashMenuItem("ALIGN='LEFT'", "position:absolute;z-index:0;", "<IMG src='images/flash_menu_structured/bottom.gif' BORDER='0' ALT=''>");
AllFlashBottomImage.moveTo(x, y + 622);
AllFlashBottomImage.show();
