$(document).ready(function()
{
	$("#service_Com").hover(
      function () {
      $('#service_Com div').fadeIn("slow");
	$('#service_Com .divBg').height(120);
	   }, 
      function () {
      $('#service_Com div').fadeOut("fast");
      }
    );
	
	$("#service_Tra").hover(
      function () {
      $('#service_Tra div').fadeIn("slow");
	$('#service_Tra .divBg').height(120);
      }, 
      function () {
      $('#service_Tra div').fadeOut("fast");
      }
    );
	
	$("#service_Web").hover(
      function () {
      $('#service_Web div').fadeIn("slow");
	$('#service_Web .divBg').height(120);
      }, 
      function () {
      $('#service_Web div').fadeOut("fast");
      }
    );
	
	$("#service_Tac").hover(
      function () {
      $('#service_Tac div').fadeIn("slow");
	$('#service_Tac .divBg').height(120);
      }, 
      function () {
      $('#service_Tac div').fadeOut("fast");
      }
    );
	
	$("#contact").hover(
      function () {
      $('#contact .navBox').slideDown("normal");
	//$('#contact .divBg').height(120);
      }, 
      function () {
      $('#contact .navBox').slideUp("normal");
      }
    );
	
	$('#searchBox').focus(function(){
											 $('#searchSuggestions').fadeIn("slow");
											 $(this).val('');
											 $(this).css('background-image', 'url(/lib/ima/dsynr_r2_c3.png)');
											$(this).css('color', '#666')});
	$('#searchBox').blur(function(){
											 $(this).css('background-image', 'none');
											$(this).css('color', '#939DA1');});
	
	$(".btnX").hover(
      function () {
      $('.btnX').attr("src","/lib/ima/btnX.Over.png");
      }, 
      function () {
      $('.btnX').attr("src","/lib/ima/btnX.png");
      }
    );
	
	$(".btnNex").hover(
      function () {
      $('.btnNex').css('background-image','url(/lib/ima/btnNex.Over.png)');
      }, 
      function () {
      $('.btnNex').css('background-image','url(/lib/ima/btnNex.png)');
      }
    );
	
	$(".btnPre").hover(
      function () {
      $('.btnPre').css('background-image','url(/lib/ima/btnPre.Over.png)');
      }, 
      function () {
      $('.btnPre').css('background-image','url(/lib/ima/btnPre.png)');
      }
    );
	
	
	
	
	$(window).resize(function(){
	resizeShowcase();
	});	
	function resizeShowcase(){
	$('#contentShowcase').height(document.height - 175);
	}
	resizeShowcase();
	
	
	//$('.sdisc').attr("title","Student discounts are available on some plans, don't forget to ask!");
//	
//	$('#headerNav li').hover(function(){
//	$('.sdisc').fadeIn(500);},
//	function(){$('.sdisc').fadeOut("fast");
//	}
//	);
});