/*
$(document).ready(function() {
	$('.navBox a').bind("mouseenter",function() {
		event.stopPropagation();
	});
	
	$('.navBigBox').bind("mouseenter",function() {
		$('.navBigBox').not(this).children('.navBox').hide('slow');
		$(this).children('.navBox').show('slow');
	});
	
	$('.navBox').bind("mouseleave",function() {
		$('.navBox').hide('slow');
	}).bind("mouseenter",function() {
		event.stopPropagation();
	});

	$('#dropdowns div').bind("mouseenter",function() {
		$('#dropdowns div').not(this).children('.dropListing').slideUp();
		$(this).children('.dropListing').slideDown();
	});
	
	$('#dropdowns div .dropListing').bind("mouseleave",function() {
		$('.dropListing').slideUp();
	}).bind("mouseenter",function() {
		event.stopPropagation();	
	});
});
*/

function showDiv(id){
  document.getElementById(id).style.display = 'block';
}

function hideDiv(id){
  document.getElementById(id).style.display = 'none';
}

//function onA(obj) { obj.className='over'; }
//function offA(obj) { obj.className=''; }

/*function swapForms(val) {
    if (val == 'Physician Referral') { 
        $("#normalForm").slideUp('slow',function() {
            $("#referForm").slideDown('slow'); 
        }); 
    } else { 
        $("#referForm").slideUp('slow',function() {
            $("#normalForm").slideDown('slow'); 
        }); 
    }
}*/

var toggle = 0;
var running = 0;

function toggleToggle(val){
    toggle = val;
    return;
}

function scrollDiv(id)
{
  var obj = document.getElementById(id);
  var h = obj.offsetHeight;
  var p = parseInt(obj.style.top);
  
  if((toggle == 2 && (Math.abs(p) < (h-150))) ||
     (toggle == 1 && (Math.abs(p) > 0))){
  
  var val = 80;
  if(toggle == 2){
    val = -80;
  }
  if(!running){
    running = 1;
    new Effect.Move(id, { x: 0, y: val, mode: 'relative',
                    afterFinish: function(){
                      running = 0;
                      if(toggle){
                        scrollDiv(id);
                      }
                    }});
  }
  }
}
jQuery(document).ready(function() {
	jQuery("#headerLogoSwap").removeAttr("href");jQuery(".breadcrumb+span").html("");
	/*if ( jQuery('.hoverActivate').length ) {
	 	jQuery('.hoverActivate').hover(
 		function () {
    		jQuery(this).find('span').css('display','block');
 		},
 		function () {
    		jQuery(this).find('span').css('display','none');
 		}
 		);
 	}*/
});

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features); }
 
