// JavaScript Document

jQuery(document).ready(function(){
	jQuery(".swapImg").hover(function(){
		temp = jQuery(this).attr("src");
		temp = temp.replace("Off","On");
		jQuery(this).attr("src",temp);
	},function(){
		temp = jQuery(this).attr("src");
		temp = temp.replace("On","Off");
		jQuery(this).attr("src",temp);
	}
	);
});

function displayHead(cityname)
{
	//alert(cityname);
	if(cityname==0)
	document.getElementById("LocationName").innerHTML = "";
	else
	document.getElementById("LocationName").innerHTML = cityname;
}


jQuery(document).ready(function(){
jQuery("#map").css("opacity", "0.8");
/*jQuery("#map > div").css("opacity", "0.4");*/
/*jQuery("#map > div:not('div.gmnoprint')").css("opacity","0.8");*/
/*jQuery("#map").css("opacity", "0.8");*/

});



jQuery(document).ready(function(){
	jQuery(".swapImgInd").hover(function(){
		temp = jQuery(this).attr("src");
		temp = temp.replace("Off","On");
		jQuery(this).attr("src",temp);
		jQuery(this).parent().parent().addClass('indexOn')
	},function(){
		temp = jQuery(this).attr("src");
		temp = temp.replace("On","Off");
		jQuery(this).attr("src",temp);
		jQuery(this).parent().parent().removeClass('indexOn')
	}
	);
});



jQuery(document).ready(function(){

	jQuery("#zoomImg").hide();
	jQuery('#zoom').click(function () {
	tempHeight = jQuery("#zoomImg").height();
		tempWidth = jQuery("#zoomImg").width();
	jQuery("#zoomImg").width(0);
	jQuery("#zoomImg").height(0);
	
	jQuery("#zoomImg").animate({width: tempWidth+"px",height: tempHeight+"px"},500 );
	});
	
jQuery('#close').click(function(){
tempHeight = jQuery("#zoomImg").height();
tempWidth = jQuery("#zoomImg").width();
jQuery("#zoomImg").animate({ height: 0,width:0 }, { duration: 500, complete: function () {
jQuery("#zoomImg").hide();
document.getElementById("zoomImg").style.display = "none";
jQuery("#zoomImg").height(tempHeight);
jQuery("#zoomImg").width(tempWidth);
}
});

});
	
});


jQuery(document).ready(function(){
/*jQuery('#slideA').click(function(){
	jQuery(this).parent().animate({marginLeft: "-615px"},500 );
});	*/
jQuery('#slideA').toggle(
function()
{
	jQuery('#slideA').parent().animate({ marginLeft:"-601px"}, function(){
	jQuery('#slideA').attr('src','../Images/community/slideArrowBL.png');
	jQuery('.commContent').animate({ marginTop:"0px" });
	jQuery('#slideA').css('z-index','4000')
});

},
function()
{
	jQuery('.commContent').animate({ marginTop:"164px" }, function(){
	jQuery('#slideA').attr('src','../Images/community/slideArrowBR.png');
	jQuery('#slideA').parent().animate({ marginLeft:"0px"});
});
  
});
});

jQuery(document).ready(function(){
jQuery('.smallThumbOut').hover(
      function () {
       jQuery(this).css('z-index','2000');
	   jQuery(this).find('.bannerCommImg').stop().animate({width: "586px"},500 );
      }, 
      function () {
		jQuery(this).find('.bannerCommImg').stop().animate({width: "283px"},function(){
																					 jQuery(this).parents('.smallThumbOut').css('z-index','1000')} );
		 
      }
);




});
