

function tipShow() {

	 var hoverText = $(this).attr("tiptitle");
         var offset = $(this).offset();
         vertSpot = offset.top + $(this).height() + 6;
                horizSpot = offset.left + ($(this).width() / 2) - 75;

          if (hoverText){
                $("div.tip").css("top", vertSpot);
                $("div.tip").css("left", horizSpot);


          $("div#tipcontent").html(hoverText);

          $("div.tip").slideDown("fast");
          }
	}

        function tipHide() {

	  $("div.tip").hide();
	}

        function zipShow() {
$("div#ziphs").html('<a href="#" onclick="zipHide();return false;">Less <img src="arrowblueup.gif" width="10" height="5" alt="Less" /></a>');
	  $("div#zipmore").slideDown("fast");
	}
        function zipHide() {
$("div#ziphs").html('<a href="#" onclick="zipShow();return false;">More <img src="arrowbluedown.gif" width="10" height="5" alt="More" /></a>');
	  $("div#zipmore").hide();
	}

var config = {
     sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)
     interval: 200, // number = milliseconds for onMouseOver polling interval
     over: tipShow,
     timeout: 0, // number = milliseconds delay before onMouseOut
     out: tipHide
};

$(document).ready(function(){

$('#page a:not(.fullbox)').filter(function() {
    return this.hostname && this.hostname !== location.hostname;
    }).click(function (){
window.open(this.href);
return false;
});

	$("body").prepend('<div class="tip"><div id="tiptop"></div><div id="tipcontent"></div><div id="tipbot"></div></div>');
        $(".partnersdiv").hover(function () {
         var paroffset = $(this).offset();
               var parentleft = paroffset.left;
               var parentbottom = paroffset.top + $(this).height() + 10;
                var thissub = $(this).find('.pdsubhold');
         $(thissub).css("left", parentleft);
         $(thissub).css("top", parentbottom);
        $(thissub).slideDown("fast");
      },
      function () {
          var thissub = $(this).find('.pdsubhold');
        $(thissub).hide();
      }
);
        $(".rdiscl").hover(function () {
         $(".rdisc").slideDown('fast');
        }, function () {
         $(".rdisc").hide('fast');
        });
	$("a").hoverIntent(config);
        $('.lh').css("display", "block");
        $('#lhhold').cycle({
    fx:    'fade',
    pause:  1,
    delay:  1000
});
     $('#certlogos').cycle({
    fx:    'fade',
    pause:  1,
    delay:  1000
});

var atag, sTitle;
	var anchors = document.getElementsByTagName ("a");

	for (var i = 0; i < anchors.length; i ++) {
		atag = anchors[i];
		sTitle = atag.getAttribute("title");
		if(sTitle) {
			atag.setAttribute("tiptitle", sTitle);
			atag.removeAttribute("title");
                }
        }
        
        
   $("#newsvideo a").fancybox({
              'frameWidth':  640,
              'frameHeight': 486,
              'hideOnContentClick': false
   });
     
        
$("#disclaimer").click(function (){
$("#disc").slideToggle();
return false;
});       
        
        
        
});
