jQuery(document).ready(function(){




var totalCount = jQuery('#homeAccord ul li').size();

var allowance = totalCount*15;

var animWidth = 500-allowance;


jQuery('#homeAccord ul li:last').width(animWidth+"px");
jQuery('#homeAccord ul li:last').addClass('sliderOpen');



jQuery('#homeAccord ul li').each(function(){ 


jQuery('img#accorBut', this).click(function(){

if (jQuery(this).parent().parent().hasClass('introloading')) {




} else {

var totalCounts = jQuery('#homeAccord ul li').size();

var allowances = (totalCounts*15)+15;

var animWidths = 500-allowances;

var parentLi = jQuery(this).parent();

if (parentLi.hasClass('sliderOpen')) { } else{

jQuery('#homeAccord ul li.sliderOpen').animate({width: "15px"}).removeClass('sliderOpen');
parentLi.animate({width: animWidth+"px"}).addClass('sliderOpen');

};

}

});

});

jQuery('#homeHandle').toggle(function(){

jQuery('#home_menu_hold').animate({width: "100px"});

jQuery('#home_menu li').css({marginLeft: "10px"});

}, function(){

jQuery('#home_menu_hold').animate({width: "0px"});

});




jQuery('span#contOper').click(function(){

jQuery('#overmodals').fadeIn();

var divHeights = jQuery('div#contact_hold').height();

var widHights = jQuery(window).height();

var offHeighs = ((widHights - divHeights)/2)-18;

jQuery('div#contact_hold').css({top: ""+offHeighs+"px"});

jQuery.getScript(jpUrl+'/wp-content/themes/GWA/js/mapLoad.js');


});




});
