jQuery(document).ready(function($){

$("#slider").SexySlider({
width     : 760,
height    : 235,
delay     : 3000,
strips    : 1,
autopause : true,
navigation: '#navigation',
control   : '#slider_control',
effect    : 'fade'
});

$("#nav-one").dropmenu({
openAnimation: "size",
closeAnimation: "slide",
openSpeed: 300,
closeSpeed: 200,
closeDelay: 500,
zindex: 100
});

$("ul.sf-menu").superfish({ 
animation: {height:'show'},   // slide-down effect without fade-in 
delay:     1200               // 1.2 second delay on mouseout 
}); 

$(".frontbox img").hover( function() {
$(this).fadeTo(300, 0.01);
}, function() {
$(this).fadeTo(300, 1);
} );

jQuery("#map-container AREA").mouseover(function(){
var regionMap = '.'+$(this).attr('id')+'-map';
var regionList = '.'+$(this).attr('id')+'-list';
jQuery(regionMap).css('display', 'inline');

// Check if a click event has occured and only change the Region hover state accodringly
if (! jQuery('#practice-container ul').hasClass('selected')) {
jQuery(regionList).css('display', 'inline');
}
}).mouseout(function(){
var regionMap = '.'+$(this).attr('id')+'-map';
var regionList = '.'+$(this).attr('id')+'-list';

// Check if a click event has occured and only change the Region hover state accodringly
if (! jQuery(regionMap).hasClass('selected')) {
jQuery(regionMap).css('display', 'none');
}

// Check if a click event has occured and only change the Region hover state accodringly
if (! jQuery('#practice-container ul').hasClass('selected')) {
jQuery(regionList).css('display', 'none');
}
});

jQuery("#map-container AREA").click(function(){
jQuery('#map-container img.region').removeClass('selected').css('display', 'none');
jQuery('#practice-container ul').removeClass('selected').css('display', 'none');
				
var regionMap = '.'+$(this).attr('id')+'-map';
var regionList = '.'+$(this).attr('id')+'-list';
jQuery(regionMap).addClass('selected').css('display', 'inline');
jQuery(regionList).addClass('selected').css('display', 'inline');
});

});
