function openMenu(linkobj){
  new Effect.Parallel(
	  [new Effect.Morph('landscapecol',{
                          style:'margin-left: 0px;',
                          sync: true, duration:0.3 }),
       new Effect.Morph('architecturecol',{
                          style:'margin-right: 0px;',
                          sync: true, duration:0.3 })],
	  { afterFinish: function() { goToPage(linkobj);} }
  );
}

function fadeAll(linkobj){
  new Effect.Fade("wrapper", { duration: 0.3, afterFinish: function() { goToPage(linkobj);}});
  /*new Effect.Parallel(
	  [new Effect.Morph('landscapecol',{
                          style:'margin-left: 0px;',
                          sync: true, duration:0.3 }),
       new Effect.Morph('architecturecol',{
                          style:'margin-right: 0px;',
                          sync: true, duration:0.3 })],
	  { afterFinish: function() { goToPage(linkobj);} }
  );*/
}


function goToPage(linkobj){
  //alert(linkobj.href);
  window.location=linkobj.href;
}


function appearContent() {
        $('header').hide();
        $('toplinks').hide();
        $('landscapecol').hide();
        $('architecturecol').hide();
        $('footer').hide();
        Effect.Appear("header", { duration: 0.7, afterFinish: appearMainContent});
        /*new Effect.Parallel(
            [new Effect.Appear("landscapecol", { duration: 1.5}),
             new Effect.Appear("architecturecol", { duration: 1.5}),
             new Effect.Appear("footer", { duration: 1.5})
            ], { queue: 'end'  }          
        );*/
}

function appearMainContent($obj) {
        new Effect.Parallel(
            [new Effect.Appear("toplinks", {}),
             new Effect.Appear("landscapecol", {}),
             new Effect.Appear("architecturecol", { }),
             new Effect.Appear("footer", { })
            ], {duration: 1}       
        );
}