window.onload=function(){
//jQuery(function(){
	var heightL = jQuery('.left-col').height();
	var heightR = jQuery('.right-col').height();
	//var heightM = jQuery('.container').height();

	//var maxHeight = Math.max(heightL, heightM, heightR);
	var maxHeight = Math.max(heightL, heightR);

	jQuery('.left-col').css({'height': maxHeight});
	jQuery('.right-col').css({'height': maxHeight});

	jQuery('.container').css({'height': maxHeight});
	//jQuery('.inner-wrapper').css({'height': maxHeight});
	//jQuery('.out-wrapper').css({'height': maxHeight});


	$('#firstName').blur(function() {
        if (this.value == ''){
        	this.value = "First Name";
    	}
    });

	$('#firstName').focus(function() {
        if (this.value == 'First Name'){
        	this.value = "";
    	}
    });

	$('#lastName').blur(function() {
        if (this.value == ''){
        	this.value = "Last Name";
    	}
    });

	$('#lastName').focus(function() {
        if (this.value == 'Last Name'){
        	this.value = "";
    	}
    });

	$('#eMail').blur(function() {
        if (this.value == ''){
        	this.value = "Email";
    	}
    });

	$('#eMail').focus(function() {
        if (this.value == 'Email'){
        	this.value = "";
    	}
    });

	$('#phone').blur(function() {
        if (this.value == ''){
        	this.value = "Phone";
    	}
    });

	$('#phone').focus(function() {
        if (this.value == 'Phone'){
        	this.value = "";
    	}
    });

	$('#message').blur(function() {
        if (this.value == ''){
        	this.value = "Message";
    	}
    });

	$('#message').focus(function() {
        if (this.value == 'Message'){
        	this.value = "";
    	}
    });

}
//});

$(document).ready(function(){
	// if ($('#gallery a').length > 0)
	// {
	// 	$('#gallery a').lightbox();
	// }
	// 
	// if ($('#magnify a').length > 0)
	// {
	// 	$('#magnify a').lightbox();
	// }
	
	$("div.panel-cont").mouseover(function(){
		$(this).addClass("panel-cont-selected");
		$(this).removeClass("panel-cont");		
    }).mouseout(function(){
		$(this).removeClass("panel-cont-selected");
		$(this).addClass("panel-cont");
    });

    
  $("a.maps").fancybox({
  	'hideOnContentClick': false,
  	'frameWidth': 640,
  	'frameHeight': 500
  });

	$(".inline").colorbox({width:"50%", opacity: 0.40, inline:true, href:"#inline_welcome"});
	//$(".maps").colorbox({width:660, height:500, opacity: 0.40, inline:true, href:"#google_maps"});
	$("a[rel='floorplans']").colorbox({opacity: 0.40, width: 700});
	$("a[rel='photogallery']").colorbox({opacity: 0.40, photo: true, width: 550});

});