// JavaScript Document


function homeSlideOut(){ 
		jQuery("#homeSlideOut").stop().animate({marginLeft:100+"px"},5000,"backinout");
		tempSrc = jQuery('#SlideOutArr').attr("src");
		tempSrc = tempSrc.replace("Right","Left");
		jQuery('#SlideOutArr').attr("src",tempSrc);
setTimeout(function(){ jQuery("#homeSlideOut").stop().animate({marginLeft:-614+"px"},1000,"backinout"); 
															tempSrc = jQuery('#SlideOutArr').attr("src");
															tempSrc = tempSrc.replace("Left","Right");
															jQuery('#SlideOutArr').attr("src",tempSrc);
															  
															  }, 12000);
	}
	
	 $(document).ready(function() {
								//jQuery("#homeSlideOut").hide();
								 slide = false;
   jQuery('#SlideOutArr').click(
      function () {
	 if(slide==false){ 
	 jQuery("#homeSlideOut").stop().animate({marginLeft:100+"px"},1000,"backinout");
	 	tempSrc = jQuery(this).attr("src");
		tempSrc = tempSrc.replace("Right","Left");
		jQuery(this).attr("src",tempSrc);
		slidein = true;
	 slide = true;
	 }
	 else{ jQuery("#homeSlideOut").stop().animate({marginLeft:-614+"px"},1000,"backinout");
	 tempSrc = jQuery(this).attr("src");
	 tempSrc = tempSrc.replace("Left","Right");
	 jQuery(this).attr("src",tempSrc);
	 slide = false;
	 }
	  
	  }
    );
 });


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')} );
		 
      }
);




});