  var detector = $.browser.msie;
  var detectVer= $.browser.version;
  var difHeight = '';
  var twHeight = '';
    if(detector == true && detectVer==7) {
      difHeight = 38;
   }else{
      difHeight = 57;
   }

	$(function() {
		$('#tabs').tabs();
	});
	
   $(document).ready(function() {
      var wHeight = document.documentElement.clientHeight;
          wHeight = wHeight < 120 ? 120 : wHeight;
          twHeight = wHeight-difHeight + 'px';
          $('#footer').css('top',twHeight);
    });

    $(window).resize(function () {  
      var wHeight = document.documentElement.clientHeight;
          wHeight = wHeight < 120 ? 120 : wHeight;
          twHeight = wHeight-difHeight + 'px';
          $('#footer').css('top',twHeight);
     });
    
    $(document).ready(function(){
       $('#toolBox').mouseover(function(){
       $('#sideBar').css('right','0%');
       $('#openSlider').css('right','100%');
       $('#sideBar').css('display','inline');
    });

    $('#toolBox').mouseout(function(){
       $('#sideBar').css('right','0');
       $('#openSlider').css('right','0%');
       $('#sideBar').css('display','none');
      });
    });

   $(document).ready(function() {
      $('#sprite li').find('a').each(function(i){
        $(this).attr("target", "_blank")
      });
   });
    
/*    
    jQuery.event.add(window, "load", legalFooter);
    jQuery.event.add(window, "resize", legalFooter);
*/ 
