﻿/// <reference path="jquery-1.3.2.min.js" />
/// <reference path="jquery.equalheights.js" />
function equalHeight(group) {
     tallest = 0;
     group.each(function() {
     thisHeight = $(this).height();
     if(thisHeight > tallest) {
        tallest = thisHeight;
    }
     
     });
     group.height(tallest);
 } 

$(document).ready(function() {

                           

							$("#menuhome").hover(function() {
						   
								 $("#menuhome").stop().fadeTo("normal", 1);
								  }, function() {

								 $("#menuhome").stop().fadeTo("normal", 0);
								  }
							);

								  $("#general_dentistry").hover(function() {

								  $("#general_dentistry").stop().fadeTo("normal", 1);
								  }, function() {

								  $("#general_dentistry").stop().fadeTo("normal", 0);
								  }
							);

								  $("#enhancing_your_smile").hover(function() {

								  $("#enhancing_your_smile").stop().fadeTo("normal", 1);
								  }, function() {

								  $("#enhancing_your_smile").stop().fadeTo("normal", 0);
								  }
							);

								  $("#specialist_services").hover(function() {

								  $("#specialist_services").stop().fadeTo("normal", 1);
								  }, function() {

								  $("#specialist_services").stop().fadeTo("normal", 0);
								  }
							);

								  $("#nervous_patients").hover(function() {

								  $("#nervous_patients").stop().fadeTo("normal", 1);
								  }, function() {

								  $("#nervous_patients").stop().fadeTo("normal", 0);
								  }
							);

								  $("#gallery").hover(function() {

								  $("#gallery").stop().fadeTo("normal", 1);
								  }, function() {

								  $("#gallery").stop().fadeTo("normal", 0);
								  }
							);

								  $("#testimonials").hover(function() {

								  $("#testimonials").stop().fadeTo("normal", 1);
								  }, function() {

								  $("#testimonials").stop().fadeTo("normal", 0);
								  }
							);

								  $("#contact_us").hover(function() {

								  $("#contact_us").stop().fadeTo("normal", 1);
								  }, function() {

								  $("#contact_us").stop().fadeTo("normal", 0);
								  }
							);

								  equalHeight($(".pageBorderLeft, .mainContainer, .pageBorderRight"));																																									
							



});//
