
var level1navigationarray=new Array("home","29","7","39","14","return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/');","shoponline","97","7","85","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','/shoponline/mens/');","aboutus","211","7","66","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/aboutus/');","womens","306","7","63","14","return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/womens/');","mens","398","7","42","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/mens/');","personaltailoring","469","7","139","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/personaltailoring/');","stores","637","7","51","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/stores/');","press","717","7","42","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/press/');","contactus","788","7","83","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/contactus/');","register","900","7","66","14","tweenmethods_switchFade(this,60);return tweenmethods_fadeOutMainStage('mainstage','0','http://www.aquascutum.com/register/');");var level1navigationarraywidth=6;var level1navigationwidth=1000;var duration=2;var tweenmethods_selectedFade=0;var tweenmethods_selectedNavigation=0;var lastNavButton="";var flash=false;function tweenmethods_init(){level1navigation_mc=document.getElementById('level1navigationdiv');cursor_mc=document.getElementById('cursor');cursor_left=new Tween(cursor_mc.style,'left','',parseInt(cursor_mc.style.left),10,1,'px');cursor_top=new Tween(cursor_mc.style,'top','',parseInt(cursor_mc.style.top),10,1,'px');for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){eval(level1navigationarray[i]+"_mc = document.getElementById('"+level1navigationarray[i]+"');");eval(level1navigationarray[i]+"_left = new Tween("+level1navigationarray[i]+"_mc.style,'left','',parseInt("+level1navigationarray[i]+"_mc.style.left),10,1,'px');");eval(level1navigationarray[i]+"_top = new Tween("+level1navigationarray[i]+"_mc.style,'top','',parseInt("+level1navigationarray[i]+"_mc.style.top),10,1,'px');");eval(level1navigationarray[i]+"_mc.onmouseover = tweenmethods_mouseOver;");eval(level1navigationarray[i]+"_mc.onmouseout = tweenmethods_mouseOut;");onclickstring="function() { ";if(level1navigationarray[i+5].length>0){onclickstring+="   "+level1navigationarray[i+5];}
onclickstring+="}";eval(level1navigationarray[i]+"_mc.onclick = "+onclickstring);}
if($('mainstage').getOpacity()!=1){tweenmethods_fadeInMainStage();}}
function tweenmethods_cursorFollow(navButton,evt){if(tweenmethods_selectedNavigation==0){if(!evt)evt=window.event;for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){if(level1navigationarray[i]==navButton.id){x=level1navigationarray[i+1];width=level1navigationarray[i+3];}}
var duration=1;var easingFunc=Tween.strongEaseOut;isNaN(duration)?duration=1:null;cursor_left.func=easingFunc;cursor_left.continueTo(parseInt(x)+parseInt(width)/2,duration);cursor_top.func=easingFunc;cursor_top.continueTo("20",duration);}}
function tweenmethods_cursorCenter(navButton,evt){var duration=1;var easingFunc=Tween.strongEaseOut;isNaN(duration)?duration=1:null;cursor_left.func=easingFunc;cursor_left.continueTo(level1navigationwidth/2,duration);cursor_top.func=easingFunc;cursor_top.continueTo("20",duration);}
function tweenmethods_mouseOver(){MM_nbGroup('over',this.id+'image','/images/navigation/level1/highlight/'+this.id+'.gif','/images/navigation/level1/'+this.id+'.gif',1);tweenmethods_cursorFollow(this);}
function tweenmethods_mouseOut(){MM_nbGroup('out');}
function tweenmethods_switchFade(navButton,fadeLevel){if(tweenmethods_selectedFade==0){tweenmethods_fadeOutNavigation(navButton,fadeLevel);tweenmethods_selectedFade=1;lastNavButton=navButton;}else{tweenmethods_fadeInNavigation(lastNavButton,fadeLevel);tweenmethods_selectedFade=0;}}
function tweenmethods_fadeOutNavigation(navButton,fadeLevel){for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){if(level1navigationarray[i]==navButton.id){navButton.style.zIndex=parseInt(level1navigationarray.length)+1;}else{new Effect.Opacity($(level1navigationarray[i]+'image'),{duration:1.0,transition:Effect.Transitions.linear,from:1.0,to:fadeLevel});navButton.style.zIndex=parseInt(i);}}}
function tweenmethods_fadeInNavigation(navButton,fadeLevel){for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){if(level1navigationarray[i]==navButton.id){navButton.style.zIndex=parseInt(level1navigationarray.length)+1;}else{new Effect.Opacity($(level1navigationarray[i]+'image'),{duration:1.0,transition:Effect.Transitions.linear,from:fadeLevel,to:1.0});navButton.style.zIndex=parseInt(i);}}}
function tweenmethods_fadeOutMainStage(fadeDiv,fadeLevel,nextPage){if(!flash&&!navigator.userAgent.indexOf(' AppleWebKit/')){new Effect.Opacity($(fadeDiv),{duration:1.0,transition:Effect.Transitions.linear,from:1.0,to:fadeLevel,afterFinish:function(){tweenmethods_loadNextPage(nextPage);}});return false;}else{tweenmethods_loadNextPage(nextPage);return true;}}
function tweenmethods_fadeInMainStage(){new Effect.Opacity($('mainstage'),{duration:1.0,transition:Effect.Transitions.linear,from:$('mainstage').getOpacity(),to:1.0});}
function tweenmethods_loadNextPage(nextPage){self.location=(self.location.protocol+'//'+self.location.host+nextPage);}
function tweenmethods_switchNavigation(navButton,nextPage){if(tweenmethods_selectedNavigation==0){tweenmethods_collapseNavigation(navButton,nextPage);tweenmethods_selectedNavigation=1;tweenmethods_cursorCenter();}else{tweenmethods_expandNavigation(nextPage);tweenmethods_selectedNavigation=0;}}
function tweenmethods_fadeInLevel2Navigation(){if(document.getElementById('level2navigationshowhidediv').style.display=='none'){new Effect.Appear(document.getElementById('level2navigationshowhidediv'),{duration:3.0});}}
function tweenmethods_collapseNavigation(navButton,nextPage,evt){if(!evt)evt=window.event;var easingFunc=Tween.strongEaseOut;isNaN(duration)?duration=1:null;for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){if(level1navigationarray[i]==navButton.id){x=level1navigationarray[i+1];width=level1navigationarray[i+3];}}
x=(level1navigationwidth/2)-parseInt(width)/2;y=7;var collapseNavigationListener=new Object();collapseNavigationListener.onMotionFinished=function(){if(nextPage.length>0)
tweenmethods_loadNextPage(nextPage);};for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){eval(level1navigationarray[i]+"_left.func = easingFunc;");eval(level1navigationarray[i]+"_left.continueTo(x,duration);");eval(level1navigationarray[i]+"_left.addListener(collapseNavigationListener);");eval(level1navigationarray[i]+"_top.func = easingFunc;");eval(level1navigationarray[i]+"_top.continueTo(y,duration);");}}
function tweenmethods_expandNavigation(nextPage,evt){if(!evt)evt=window.event;var easingFunc=Tween.strongEaseOut;isNaN(duration)?duration=1:null;for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){eval(level1navigationarray[i]+"_left.func = easingFunc;");eval(level1navigationarray[i]+"_left.continueTo("+level1navigationarray[i+1]+",duration);");eval(level1navigationarray[i]+"_top.func = easingFunc;");eval(level1navigationarray[i]+"_top.continueTo("+level1navigationarray[i+2]+",duration);");}}
function tweenmethods_followMouse(evt){if(!evt)evt=window.event;var x=evt.offsetX||evt.layerX;var y=evt.offsetY||evt.layerY;var duration=1;var easingFunc=Tween.strongEaseOut;isNaN(duration)?duration=1:null;for(i=0;i<level1navigationarray.length;i=i+level1navigationarraywidth){eval(level1navigationarray[i]+"_left.func = easingFunc;");eval(level1navigationarray[i]+"_left.continueTo(x,duration);");eval(level1navigationarray[i]+"_top.func = easingFunc;");eval(level1navigationarray[i]+"_top.continueTo(y,duration);");}}
var navigationLevel2State=0;var lastLevel2cPath='';var navigationLevel2Height=21;function collapseLevel2Navigation(cPath){if(navigationLevel2State){new Effect.BlindUp($('level2navigationimages'+cPath+'div'),{from:0.0,to:1.00,duration:1.5,afterFinish:function(effect){$('level2navigationshowhide'+cPath+'div').style.display='none';}});navigationLevel2State=0;}}
function expandLevel2Navigation(cPath){if(!navigationLevel2State){if(lastLevel2cPath==cPath||lastLevel2cPath==''){$('level2navigationshowhide'+cPath+'div').style.display='inline';new Effect.BlindDown($('level2navigationimages'+cPath+'div'),{from:0.0,to:1.00,duration:1.5});navigationLevel2State=1;lastLevel2cPath=cPath;}else{collapseLevel2Navigation(lastLevel2cPath);lastLevel2cPath=cPath;expandLevel2Navigation(cPath);}}else{collapseLevel2Navigation(lastLevel2cPath);}}
function loadLevel2Navigation(cPath){var url='/level2navigationloader.php?cPath='+cPath;var pars='';var div='level2navigationdiv';lastLevel2cPath=cPath;AJAXLoader(url,pars,div);}
function fadeOutMainStage(){new Effect.Fade($('mainstage'),{from:1.0,to:0.1,duration:2});}
function fadeInMainStage(){new Effect.Fade($('mainstage'),{from:0.1,to:1.0,duration:2});}
var navigationLevel4State=0;var navigationLevel4Height=(335+87);function showLevel4Navigation(cPath){if(lastLevel4cPath!=cPath||lastLevel4cPath==''){new Effect.toggle($('level4navigationshowhide'+cPath+'div'),'appear',{from:0.0,to:1.0,duration:1.5});new Effect.toggle($('level4navigationshowhide'+lastLevel4cPath+'div'),'appear',{from:1.0,to:0.0,duration:1.5});lastLevel4cPath=cPath;}}
function loadLevel4Navigation(cPath){var url='/level4navigationloader.php?cPath='+cPath;var pars='';var div='level4navigationdiv';lastLevel4cPath=cPath;AJAXLoader(url,pars,div);}