/*
Milonic DHTML Menu - JavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http:'www.milonic.com/ for more information.
See http:'www.milonic.com/license.asp for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  ******* 
*/

if(mac)buildAllMenus = true; 

_menuCloseDelay=10           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=0               // Sub menu top offset
_subOffsetLeft=0              // Sub menu left offset



/* 1st MENU */
with(mainStyle1=new mm_style()){
styleid=1;
padding=2;
align="center";
}

with(subStyle1=new mm_style()) {
bordercolor="";
borderstyle="";
borderwidth="0";
fontfamily="Arial, Verdana, Tahoma";
fontsize="100%";
fontstyle="normal";
headerbgcolor="";
headercolor="#000000";
offbgcolor="";
offcolor="#e8e8e8";
onbgcolor="";
oncolor="#ffffff";
outfilter="Fade(duration=0.1)";
overfilter="gradientwipe(duration=0.2);Alpha(opacity=100);";
padding=5;
pagebgcolor="";
pagecolor="";
separatorcolor="";
separatorsize="";
subimage="";
subimagepadding=0;
}
var loc = document.location.toString();
var menuAlwaysOn;
var ShowOverImage;
var imagesRoot = '/us/timemagazine/images/';
var images = new Array();
var overImages = new Array();
var url = new Array();
var menu1AlwaysVisibleUrlString = new Array();
var menu1SubMenuAlwaysVisibleUrlString = new Array();
var browserWindowWidth;
var subMenuY = 22;
var navBarWidth = 556;
var clientBrowser;
var browser=navigator.userAgent;
var browserApp = navigator.appName;
//alert(browser);
if (browserApp=="Netscape"){
	clientBrowser = "Netscape";
}
if (browser.indexOf("Firefox") >= 0) {
	if(browser.indexOf("Windows") >=0){
		clientBrowser = "Firefox";
	}else{
		clientBrowser = "FirefoxMac";
	}
	
}
if (browser.indexOf("MSIE") >= 0) {
	clientBrowser = "IE";
}
if (browser.indexOf("Safari") >= 0) {
	clientBrowser = "Safari";
}
browserWindowWidth = self.screen.availWidth;

// US
menu1AlwaysVisibleUrlString[0] = 'us';

images[0] = 'navreg_sub_us_2.gif;';
overImages[0] = 'navreg_sub_us_2_over.gif;';
url[0] = 'url=/us/timemagazine/index.html;';
menu1SubMenuAlwaysVisibleUrlString[0] = 'timemagazine';

images[2] = 'navreg_sub_us_4.gif;';
overImages[2] = 'navreg_sub_us_4_over.gif;';
url[2] = 'url=/us/timeforkids/index.html;';
menu1SubMenuAlwaysVisibleUrlString[2] = 'timeforkids';


//TIME

with(milonic=new menuname("us")){



style=subStyle1;
overflow="scroll";
orientation="horizontal";

ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[0]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[0] + "overimage=" + imagesRoot + overImages[0] + url[0]);
}else{
	aI("image=" + imagesRoot + images[0] + "overimage=" + imagesRoot + overImages[0] + url[0]);
}
ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[2]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[2] + "overimage=" + imagesRoot + overImages[2] + url[2]);
}else{
	aI("image=" + imagesRoot + images[2] + "overimage=" + imagesRoot + overImages[2] + url[2]);
}



}


with(milonic=new menuname("emea")){
	

style=subStyle1;
overflow="scroll";
orientation="horizontal";


ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[3]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[3] + "overimage=" + imagesRoot + overImages[3] + url[3]);
}else{
	aI("image=" + imagesRoot + images[3] + "overimage=" + imagesRoot + overImages[3] + url[3]);
}
ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[4]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[4] + "overimage=" + imagesRoot + overImages[4] + url[4]);
}else{
	aI("image=" + imagesRoot + images[4] + "overimage=" + imagesRoot + overImages[4] + url[4]);
}



}

with(milonic=new menuname("asia")){
	


style=subStyle1;
overflow="scroll";
orientation="horizontal";




ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[5]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[5] + "overimage=" + imagesRoot + overImages[5] + url[5]);
}else{
	aI("image=" + imagesRoot + images[5] + "overimage=" + imagesRoot + overImages[5] + url[5]);
}

ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[6]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[6] + "overimage=" + imagesRoot + overImages[6] + url[6]);
}else{
	aI("image=" + imagesRoot + images[6] + "overimage=" + imagesRoot + overImages[6] + url[6]);
}


}


with(milonic=new menuname("sp")){


	
style=subStyle1;
overflow="scroll";
orientation="horizontal";






ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[9]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[9] + "overimage=" + imagesRoot + overImages[9] + url[9]);
}else{
	aI("image=" + imagesRoot + images[9] + "overimage=" + imagesRoot + overImages[9] + url[9]);
}

ShowOverImage = loc.indexOf(menu1SubMenuAlwaysVisibleUrlString[10]);
if(ShowOverImage > -1){
	aI("image=" + imagesRoot + overImages[10] + "overimage=" + imagesRoot + overImages[10] + url[10]);
}else{
	aI("image=" + imagesRoot + images[10] + "overimage=" + imagesRoot + overImages[10] + url[10]);
}

}




/* 2nd MENU */
with(mainStyle2=new mm_style()){
onbgcolor="";
oncolor="";
offbgcolor="";
offcolor="";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=0;
imagepadding=0;
padding=0;
pagecolor="";
overfilter="";
outfilter="";
}


with(subStyle2=new mm_style()) {
align="left";
bordercolor="";
borderstyle="";
borderwidth="";
fontfamily="Arial, Verdana, Tahoma";
fontsize="90%";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
margin="40";
offbgcolor="#DCE9F0";
offcolor="#e8e8e8";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="Fade(duration=0.1)";
overfilter="inset(duration=0.2);Alpha(opacity=100);Shadow(color=#333333', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#aa0000";
pagecolor="#FFFFFF";
separatorcolor="#2D729D";
separatorwidth=40;
separatorsize="";
subimage="";
subimagepadding=0;
}

/*with(milonic=new menuname("calendar")){
style=subStyle2;
overflow="scroll";
itemwidth="106";
subOffsetTop="20";
left = "offset=10"; 

aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=2009 Calendar;url=/us/timemagazine/calendar/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=2010 Calendar;url=/us/timemagazine/calendar/index-2010.html;");
}*/

with(milonic=new menuname("national")){
style=subStyle2;
overflow="scroll";
itemwidth="146";
subOffsetTop="20";

aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Main;url=/us/timemagazine/national/index.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Best Inventions;url=/us/timemagazine/national/bestinventions.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Best of the Year;url=/us/timemagazine/national/bestoftheyear.html");aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Community Service;url=/us/timemagazine/national/community.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Environment;url=/us/timemagazine/national/environment.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Health Checkup;url=/us/timemagazine/national/health-checkup.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Heroes of the Environment;url=/us/timemagazine/national/heroes-of-the-env.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Making of America;url=/us/timemagazine/national/makingAmerica.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Person of the Year;url=/us/timemagazine/national/personOfYr.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Ten Ideas;url=/us/timemagazine/national/tenideas.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=TIME 100;url=/us/timemagazine/national/time100.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Winter Olympics;url=/us/timemagazine/national/olympics.html");aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=World Cup Soccer;url=/us/timemagazine/national/worldcup.html");
}


with(milonic=new menuname("targeted")){
style=subStyle2;
overflow="scroll";
itemwidth="145";

aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Main;url=/us/timemagazine/targeted/index.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Global Business;url=/us/timemagazine/targeted/globalBusiness.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Wellness;url=/us/timemagazine/targeted/wellness.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Women;url=/us/timemagazine/targeted/women.html");
}

with(milonic=new menuname("audience")){
style=subStyle2;
overflow="scroll";
itemwidth="101";

aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Audience Guarantee;url=/us/timemagazine/audience/guarantee.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=MRI;url=/us/timemagazine/audience/mri/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=MRI: Issue Specific;url=/us/timemagazine/audience/mri/issue_specific.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Add'l Syndicated Research;url=/us/timemagazine/audience/syndicated/index.html");
}

with(milonic=new menuname("rates")){
style=subStyle2;
overflow="scroll";
itemwidth="120";

aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Main;url=/us/timemagazine/rates/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=National Edition;url=/us/timemagazine/rates/national/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Regional Rates;url=/us/timemagazine/rates/regional/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Targeted Edition;url=/us/timemagazine/rates/targeted/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Global Rate;url=/us/timemagazine/rates/world/index.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Magazine Specifications;url=/us/timemagazine/rates/specs/index.html");
//aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Creative Units;url=/us/timemagazine/rates/creativeUnits/index.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Terms & Conditions;url=/us/timemagazine/rates/terms/index.html");
}

with(milonic=new menuname("marketing")){
style=subStyle2;
itemwidth="157";

aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Main;url=/us/timemagazine/marketing/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Ad Sections;url=/us/timemagazine/marketing/adSections/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Bookazines;url=/us/timemagazine/marketing/bookazines/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Conferences & Events;url=/us/timemagazine/marketing/events/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Global Forum;url=http://www.fortuneconferences.com/global/;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Out of Home;url=/us/timemagazine/marketing/outOfHome/index.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Proprietary Research;url=/us/timemagazine/marketing/proprietaryResearch/index.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Reader Resource Listing: FYI;url=/us/timemagazine/marketing/readerResource/index.html");
}

with(milonic=new menuname("press")){
style=subStyle2;
itemwidth="84";

aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Main;url=/us/timemagazine/press/index.html;");aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Journalism Awards;url=/us/timemagazine/press/awardsJournalism/index.html;");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Bios;url=/us/timemagazine/press/bios/index.html");
aI("onbgcolor=#aa0000;oncolor=#ffffff;offbgcolor=#d61100;text=Media Relations Staff;url=/us/timemagazine/press/staff/index.html");
}