
$(document).ready(function(){
	
	//now define the parent of boxes as Scroller:
	$('div.scrollerOutter').jScrollPane({showArrows:true,scrollbarWidth:17, animateTo:false});	
	
	
	
	
	$(".tagline_cont").hover(
			function(){$(this).find('.inner_tagline').stop(true,true).fadeIn()},
			function(){$(this).find('.inner_tagline').fadeOut()}
	);
	
	
	
	$(".inner_tagline_home").hover(
									
		function(){ $(this).find('.inhome').stop(true,true).fadeIn()},
		function(){$(this).find('.inhome').fadeOut()}
	);
	
	
	
//jQuery.event.add(window, "load", resizeFrame);
//jQuery.event.add(window, "resize", resizeFrame);

//function resizeFrame() 
//{
	
	  var h = $(window).height();
	
	var adjheight = h - 149;
    var w = $(window).width();
    $(".main_cont_other").css('height',adjheight+'px');
  
	
	$(window).resize(function() {
  	
	
	 var h = $(window).height();
	
	var adjheight = h - 149;
    var w = $(window).width();
    $(".main_cont_other").css('height',adjheight+'px');
  
  if($(".map_cont").length > 0){	
		 $(".map_cont").css('height',adjheight+'px');
	}
	//$('#log').append('<div>Handler for .resize() called.</div>');
	});
	
	//$(window).resizefunction();

	
	if($(".map_cont").length > 0){	
		 $(".map_cont").css('height',adjheight+'px');
	}
//}
	
});



/*if (window.innerHeight) {
	
	
		alert(window.innerHeight);

		theHeight=window.innerHeight;
}
*/
//apt_box hover
	
	
