var nonSecurePort="http://localhost";
nonSecurePort="http://www.gamerang.com";
var sl="";
var ccMenuOpenDelay = 700;
_scrollAmount=3;
_scrollDelay=20;
_menuCloseDelay=100;
_menuOpenDelay=ccMenuOpenDelay;
_subOffsetTop=15;
_subOffsetLeft=-10;
horizontalMenuDelay = false;

var dP=";url=" + nonSecurePort + "/default.aspx";
var cC=";url=" + nonSecurePort + "/company/";
var cS=";url=" + nonSecurePort + "/support/";
var cA=";url=" + nonSecurePort + "/affiliates/";
var cP=";url=" + nonSecurePort + "/products/";
var rP=";url=" + nonSecurePort + "/products/reviews/index.aspx";
var rG=";url=" + nonSecurePort + "/products/guides/index.aspx";
var cL=";url=" + nonSecurePort + "/default.aspx";
var sT=";url=" + nonSecurePort + "/mystore/";
var xG=";url=" + nonSecurePort + "/gettingstarted/";
var dM=";url=" + nonSecurePort + "/drm/";
var PSP=";url=" + nonSecurePort + "/psp/";
var RSS=";url=" + nonSecurePort + "/rss/default.aspx";
var nW=";url=" + nonSecurePort + "/products/allgames.aspx";
var nR=";url=" + nonSecurePort + "/products/NYReleased.aspx";
var bR=";url=" + nonSecurePort + "/bulkrental/";


var siteRoot = "";
//Support display of images on external sites
var isUnsecure = (location.protocol!="https:");
var currentHost = (location.protocol + "//" +location.host);
var isNotCC = (currentHost  != nonSecurePort);
if(isUnsecure && isNotCC)
{
siteRoot = nonSecurePort;
}

with(style0=new mm_style()){
offcolor="#cccccc";
offbgcolor="#000000";
offborder="1px solid #000000";
oncolor="#FFCC00";
onbgcolor="";
onborder="#000000 1 solid";
pagecolor="#FFCC00";
fontsize=12;
fontstyle="normal";
fontweight="bold";
fontfamily="Arial,Helvetica,Sans Serif";
padding=2;
headercolor="#000000";
headerbgcolor="#000000";
seperatorheight="1";
separatorcolor="#727272";
subimage=siteRoot+"/images/buttons/v2/arrow.gif";
}

with(style1=new mm_style()){
offcolor="#FFFFFF";
offbgcolor="#464646";
offborder="";
oncolor="#FFCC00";
onbgcolor="";
onborder="";
overfilter="Fade(duration=0.2);Alpha(opacity=96);Shadow(color=#727272', Direction=135, Strength=2)";
fontsize=11;
fontstyle="normal";
fontweight="bold";
fontfamily="Arial,Helvetica,Sans Serif";
padding=4;
headercolor="#000000";
headerbgcolor="#464646";

separatorimage=siteRoot+"/images/menu/dots.gif";
separatoralign="left";
separatorcolor="#464646";
separatorsize=1;
separatorwidth="100%";
seperatorheight="1";

pagecolor="#FFCC00";
}

with(milonic=new menuname("Main Menu")){
style=style0;
alwaysvisible=1;
orientation="horizontal";
position="relative";
menuwidth=601;
   aI("text=Getting Started&nbsp;showmenu=menu-home;" );
   aI("text=Xbox&nbsp;&nbsp;showmenu=menu-xbox;");
   aI("text=Sony&nbsp;showmenu=menu-sony;");
   aI("text=Nintendo&nbsp;showmenu=menu-nintendo;");
   //aI("text=PC Games&nbsp;showmenu=menu-pc;");
   aI("text=Game Store&nbsp;showmenu=menu-store;");
   aI("text=Gamerang&nbsp;showmenu=menu-g;");
   }
   
 with(milonic=new menuname("menu-home")){
borderwidth=1;
style=style1;
alignment="left";
alwaysvisible=0;
overflow="scroll";
		   //aI("align=center;image="+siteRoot+"/images/menu/adventures.jpg;itemwidth=204;itemheight=100;imagealign=center;rawcss=border:3px solid #c0c0c0;type=header;");
           aI("text=How Renting Works"+xG+"#start"+";")
           aI("text=Delivery Centers"+xG+"#delivery"+";")
           aI("text=Membership Plans"+xG+"#membership"+";")
           aI("text=Game Selection"+xG+"#selection"+";")
           aI("text=Rental Reviews"+cC+"index.aspx"+";")
 }

 with(milonic=new menuname("menu-xbox")){
borderwidth=1;
style=style1;
alignment="left";
alwaysvisible=0;
overflow="scroll";
           aI("text=Xbox 360 Games"+nW+"?PlatformID=10&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=Xbox Games"+nW+"?PlatformID=2&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           //aI("text=Game Reviews"+rP+"?PlatformID=2"+";")
           //aI("text=Game Guides"+rG+"?PlatformID=2"+";")
           aI("text=Buy Games"+sT+""+";")
 }

with(milonic=new menuname("menu-sony")){
borderwidth=1;
style=style1;
alignment="left";
alwaysvisible=0;
overflow="scroll";
           aI("text=PS3 Games"+nW+"?PlatformID=11&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=PS2 Games"+nW+"?PlatformID=6&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=PSOne Games"+nW+"?PlatformID=5&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=PSP Games"+nW+"?PlatformID=9&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           //aI("text=Game Reviews"+rP+"?PlatformID=6"+";")
           //aI("text=Game Guides"+rG+"?PlatformID=6"+";")
           aI("text=Buy Games"+sT+""+";")
 }

with(milonic=new menuname("menu-nintendo")){
borderwidth=1;
style=style1;
alignment="left";
alwaysvisible=0;
overflow="scroll";
           aI("text=Wii Games"+nW+"?PlatformID=12&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=GameCube Games"+nW+"?PlatformID=3&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=GameBoy Advance Games"+nW+"?PlatformID=7&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=DS (Dual Screen) Games"+nW+"?PlatformID=4&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           //aI("text=Game Reviews"+rP+"?PlatformID=3"+";")
           //aI("text=Game Guides"+rG+"?PlatformID=3"+";")
           aI("text=Buy Games"+sT+""+";")
 }
 
 with(milonic=new menuname("menu-pc")){
borderwidth=1;
style=style1;
alignment="left";
alwaysvisible=0;
overflow="scroll";
           aI("text=PC Downloadable Games!"+dM+"?PlatformID=1&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
           aI("text=Browse Downloads"+dM+"releases.aspx?PlatformID=1&CategoryID=0&pselection=0&selection=0&nselection=-1"+";")
 }
 
 with(milonic=new menuname("menu-store")){
borderwidth=1;
style=style1;
alignment="left";
alwaysvisible=0;
overflow="scroll";
			aI("text=Store Specials"+sT+""+";")
			aI("text=360 Game Sale!"+sT+"sale/?PlatformID=10&CategoryID=0&u=58&pselection=0&selection=0&nselection=-1"+";")
			aI("text=XBox Games"+sT+"sale/?PlatformID=2&CategoryID=0&u=34&pselection=0&selection=0&nselection=-1"+";")
			aI("text=PS2 Games"+sT+"sale/?PlatformID=6&CategoryID=0&u=34&pselection=0&selection=0&nselection=-1"+";")
			aI("text=GameCube Games"+sT+"sale/?PlatformID=3&CategoryID=0&u=32&pselection=0&selection=0&nselection=-1"+";")
			aI("text=All Games Under $20"+sT+"sale/?PlatformID=0&CategoryID=0&u=20&pselection=0&selection=0&nselection=-1"+";")
           //aI("text=Trade-In Offers"+sT+""+";")
           //aI("text=Accessories and Add-ons"+sT+""+";")
}
 
 with(milonic=new menuname("menu-g")){
borderwidth=1;
style=style1;
alignment="left";
alwaysvisible=0;
overflow="scroll";
		   aI("text=RSS Feeds"+RSS+";")
		   //aI("text=Bulk Rental"+bR+";")
           aI("text=Contact Us"+cC+"contactus.aspx"+";")
           aI("text=Investor Info & News"+cC+"news.aspx"+";")
           aI("text=Affiliates"+cA+";")
           aI("text=Privacy Policy"+cS+"privacy.aspx"+";")
           aI("text=Terms of Use"+cS+"condofuse.aspx"+";")
           aI("text=About Us"+cC+"about.aspx"+";")
 }

drawMenus();
