// 2009.12.02
// Grendelfly - A Division of SC&G Technology Solutions
//
// Requires JQuery: jquery-1.3.2.min.js


// Belt/Maps/Nav : Force Middle Align For Main Page
  $(function() {
	  // Belt
	  $('body#pg_Main div#idBlt').css({'margin-top':(screen.height-(screen.height/2)) - 150}); 
	  // Maps
	  $('body#pg_Main div#idMap_01').css({'margin-top':(screen.height-(screen.height/2)) - 400,'margin-left':'50px'}); 
	  // Navigation
	  $('body#pg_Main div#idNav').css({'margin-top':(screen.height-(screen.height/2)) - 330,'margin-left':'760px'}); 
	  $('body#pg_Main div#idNav ul#nav_Sections').css({'position':'relative','top':'0px','margin-top':'150px'}); 
  });

// Header - Image Hints Rollover
  $(function() {
	  // RSS Icon
	  $('img#hdr_rss').mouseover(function() {
		  $('p#hdr_tckr').text("Sign up for Woodlands RSS Feed");
	  });
	  $('img#hdr_rss').mouseout(function() {
		  $('p#hdr_tckr').text("Woodlands Specialists opens its doors on December 1st!");
	  });
	  
	  // Twitter Icon	  
	  $('img#hdr_twitter').mouseover(function() {
		  $('p#hdr_tckr').text("Follow Woodlands on Twitter");
	  });
	  $('img#hdr_twitter').mouseout(function() {
		  $('p#hdr_tckr').text("Woodlands Specialists opens its doors on December 1st!");
	  });
  });

// Header - Open/Shut Function
  $(function() {
	  $('div#hdr_explr_opn').click(function() {
		  $('div#hdr_cnt_wrap').animate({'height':'150px'},1000);
		  $('div#hdr_explr_opn').hide();		  
		  $('div#hdr_explr_cls').show();		  
	  });
  });

  $(function() {
	  $('div#hdr_explr_cls').click(function() {
		  $('div#hdr_cnt_wrap').animate({'height':'0px'}); 
		  $('div#hdr_explr_cls').hide();		  
		  $('div#hdr_explr_opn').show();		  
	  });
  });

// Maps - Map Zone Function

  $(function() {
	  $('img.cty_dot').mouseover(function() {
		  $('img#cty_' + $(this).attr('name') + '_info').fadeIn(500);
	  });	  
	  $('img.cty_info').mouseout(function() {
		  $(this).fadeOut(500);
	  });	  

  });
  
  

 // Specialists - Navigation Function
$(function() {
	  $('div.doc').css({'display':'none'});
	  $('div#doc_Specialists').show();
	  
	  // Hematology Specialists
	  $('body#pg_Specialists_HemOnc ul#nav_specialists li').click(function() {
		  $('div.doc').hide();
		  $('ul#nav_specialists li').css({'background':''});
		  
		  $('li[title='+ $(this).attr('title') +']').css({'background':'#F0F0F0 url(/images/nav_bck_hglt_spec_hem.gif) top right no-repeat'});
		  $('div#doc_' + $(this).attr('title')).fadeIn();
		  
		  $('div#idBody_Main').height("720px");
		  return false;
	  });
  
	  // Urology Specialists
	  $('body#pg_Specialists_Urology ul#nav_specialists li').click(function() {
		  $('div.doc').hide();
		  $('ul#nav_specialists li').css({'background':''});
		  
		  $('li[title='+ $(this).attr('title') +']').css({'background':'#F0F0F0 url(/images/nav_bck_hglt_spec_url.gif) top right no-repeat'});
		  $('div#doc_' + $(this).attr('title')).fadeIn();
		  
		  $('div#idBody_Main').height("720px");
		  return false;
	  });
  
	  // Radiation Specialists
	  $('body#pg_Specialists_RadOnc ul#nav_specialists li').click(function() {
		  $('div.doc').hide();
		  $('ul#nav_specialists li').css({'background':''});
		  
		  $('li[title='+ $(this).attr('title') +']').css({'background':'#F0F0F0 url(/images/nav_bck_hglt_spec_rad.gif) top right no-repeat'});
		  $('div#doc_' + $(this).attr('title')).fadeIn();
		  
		  $('div#idBody_Main').height("720px");
		  return false;
	  });

  });


