var md_fx = new Fx.Morph('box-md', {onComplete:function(){}});
var ph_fx = new Fx.Morph('box-ph', {onComplete:function(){}});
var da_fx = new Fx.Morph('box-da', {onComplete:function(){}});
var ds_fx = new Fx.Morph('box-ds', {onComplete:function(){}});

$('box-md').addEvent('mouseover', function(){
  md_fx.start({height:460, width:580, borderColor:'#18e'});
  ph_fx.start({height:460, width: 20, borderColor:'#04a'});
  da_fx.start({height: 20, width:300, borderColor:'#04a'});
  ds_fx.start({height: 20, width:300, borderColor:'#04a'});
});

$('box-ph').addEvent('mouseover', function(){
  md_fx.start({height:460, width: 20, borderColor:'#04a'});
  ph_fx.start({height:460, width:580, borderColor:'#18e'});
  da_fx.start({height: 20, width:300, borderColor:'#04a'});
  ds_fx.start({height: 20, width:300, borderColor:'#04a'});
});

$('box-da').addEvent('mouseover', function(){
  md_fx.start({height: 20, width:300, borderColor:'#04a'});
  ph_fx.start({height: 20, width:300, borderColor:'#04a'});
  da_fx.start({height:460, width:580, borderColor:'#f03'});
  ds_fx.start({height:460, width: 20, borderColor:'#04a'});
});

$('box-ds').addEvent('mouseover', function(){
  md_fx.start({height: 20, width:300, borderColor:'#04a'});
  ph_fx.start({height: 20, width:300, borderColor:'#04a'});
  da_fx.start({height:460, width: 20, borderColor:'#04a'});
  ds_fx.start({height:460, width:580, borderColor:'#c0a'});
});

function xs_reset(){
  md_fx.start({height:240, width:300, borderColor:'#04a'});
  ph_fx.start({height:240, width:300, borderColor:'#04a'});
  da_fx.start({height:240, width:300, borderColor:'#04a'});
  ds_fx.start({height:240, width:300, borderColor:'#04a'});
}

$('box-md').addEvent('mouseout', xs_reset);
$('box-ph').addEvent('mouseout', xs_reset);
$('box-da').addEvent('mouseout', xs_reset);
$('box-ds').addEvent('mouseout', xs_reset);

$('box-ds').addEvent('click', function(){$('box-ds').removeEvent('mouseout', xs_reset); $('box-zu').dissolve(); $('box-da').dissolve(); $('box-md').dissolve(); $('box-ph').dissolve(); window.location='dance';});
$('box-da').addEvent('click', function(){$('box-da').removeEvent('mouseout', xs_reset); $('box-zu').dissolve(); $('box-ds').dissolve(); $('box-md').dissolve(); $('box-ph').dissolve(); window.location='thedanceagency';});
$('box-md').addEvent('click', function(){$('box-md').removeEvent('mouseout', xs_reset); $('box-zu').dissolve(); $('box-da').dissolve(); $('box-ds').dissolve(); $('box-ph').dissolve(); window.location='models';});
$('box-ph').addEvent('click', function(){$('box-ph').removeEvent('mouseout', xs_reset); $('box-zu').dissolve(); $('box-da').dissolve(); $('box-md').dissolve(); $('box-ds').dissolve(); window.location='photography';});

$('box-zu').addEvent('click', function(){                                               $('zing').dissolve();                                                                           window.location='zumba';});

$('box-zu').addEvent('mouseover', function(){/* $('zu-more').reveal();   */ this.tween('border-color','#cd3')});
$('box-zu').addEvent('mouseout',  function(){/* $('zu-more').dissolve(); */ this.tween('border-color','#04a')});

// new Tips('.quad');
