jQuery(document).ready(function() {


//Start Layout

var divHeight = jQuery('#content_holder').height();

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

var offHeigh = (widHight - divHeight)/2;

jQuery('#content_holder').css({top: ""+offHeigh+"px"}).fadeIn();

// start menu

jQuery('#next_menu_listcont li a').jpNavRoll();
jQuery('#next_menu_listcontpr li a').jpNavRoll();

jQuery('#home_menu li a').jpNavRoll();

jQuery('#home_menu li.current_page_item a').jpNavRollOn();

/* jQuery('li.Folio').click(function(){

if (jQuery(this).hasClass('jopImaopen')) {} else {
jQuery('#next_menu').animate({width:"197px"});
jQuery(this).css({color:"#000"}).addClass("jopImaopen").jpNavRollOn();


}

}); */

jQuery('div#collumed li').each(function (){

jQuery('div#thumb_over', this).animate({opacity:0.4});

jQuery(this).mouseover(function(){

jQuery('div#thumb_over', this).animate({opacity:0});
      
    }).mouseout(function(){
    
   jQuery('div#thumb_over', this).animate({opacity:0.4});
     
    });
});



// start thumb over


jQuery('div#collum li').each(function (){

jQuery('div#thumb_over', this).animate({opacity:0.4});

jQuery(this).mouseover(function(){

jQuery('div#thumb_over', this).animate({opacity:0});
      
    }).mouseout(function(){
    
   jQuery('div#thumb_over', this).animate({opacity:0.4});
     
    });
});

// Start Load Port Page 


jQuery('a.load_port').click(function () {

 	
	       			var sendIDD = jQuery(this).attr("href");
	       
	               	jQuery('#Jimy_page_loader').load(jpUrl+'/ajaxload/', { queryStrings: ""+sendIDD+"" },function (){
	               	
	               	
    jQuery('li#image_navver').click(function(){
    
    var theNver = jQuery("img", this).attr("class");
    
    jQuery("div#image_holder img").fadeOut();
    
    jQuery("div#image_holder").load(jpUrl+'/ajaxMImageload/', { queryUrlImage: ""+theNver+"" },function (){ });
        
    
    
   			 });


		jQuery('li#image_navver').eq(0).click();
	            
	               	
	               	});
                       
            
            
        return false;


});

jQuery('a.contOper').each(function(){

jQuery(this).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');


});

}); 




// start Share

jQuery("a#pr_share").click(function(){

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

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

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

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

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




return false;
});

jQuery("#contactform").validate(); 

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

jQuery('#overmodals').fadeOut();
jQuery('#overmodalss').fadeOut();

});

//End


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


});


jQuery(window).bind('resize', function () {


var divHeight = jQuery('#content_holder').height();

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

var offHeigh = (widHight - divHeight)/2;

jQuery('#content_holder').css({top: offHeigh+"px"})



});