function goTo(page){
	window.location = page;
}
$(document).ready(   
    function()
    {	
        //convert richtext popup images to fancybox images
        $(".middleTxt a").each(function(){
            var href = $(this).attr("href");
           if(href != undefined){
                var index = href.indexOf("viewImage");
                if(index > -1){
                   href = href.replace("javascript:viewImage('", "");
                   href = href.replace("')","");
                   $(this).attr("href", href);
                   $(this).addClass("single_image"); 
                }
            }
        });
        $("a.single_image").fancybox();
        //end convert richtext popup images to fancybox images
		
	//Remove Img if it's empty
	$('.intContent .intMiddle .imgMiddle img').each(function(){
		var imgSrc = $(this).attr("src");
		if(imgSrc == "")
			$(this).parent().remove();
	});
	
	$('#features').jshowoff({ 
		controls:false,
		links: false,
		speed: 9000,
		hoverPause: false
	}); 
	
	$('.intNavItem').hover(function(){
		$(this).addClass('subnav_hover')
	}, function(){
		$(this).removeClass('subnav_hover')
	});
	
	$("#current_weather").fancybox({
		'width'				: 575,
		'height'			: 600,
        'autoScale'     	: false,
        'transitionIn'		: 'elastic',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'scrolling'			: 'no'
	});
	
	$("a#aServiceTime").fancybox({
		'hideOnContentClick': true
	});
	
	//MAIN NAVAGATION DROP DOWN
	$('.navItemArrow').each(function(){
		var itemWidth = $(this).width();
		var holderLeft = (itemWidth / 2) - 26;
		$('.mainDDholder', this).stop().css({'top': '0', 'display':'block', 'opacity': 0, 'left':holderLeft + "px"});
	});
	$('.navItemArrow').hover(
		function() {
			$(this).removeClass("navItemArrow");
			$('.mainDDholder', this).stop().css({'display':'block'});
			$(this).children(".mainDDholder").stop().animate({top: 20, opacity: 1});			
		},
		function() { 
			$(this).addClass("navItemArrow");
			$(this).children(".mainDDholder").stop().animate({top: 0, opacity: 0}).css('display', 'none');			
	});
	
});
