Cufon.replace(['h2', 'h1', 'h3', '.avant', '.bluelink'], {
    hover: true
});

$(function() {
	var rnum = Math.floor(Math.random()*7);
	if (rnum == 0) { rnum = 1; }
	$('#t'+rnum).show();
});

$(function() {
		   
	$('#email').val('Your Email Address').click(function() {
		if ( $(this).val() == 'Your Email Address') {
			$(this).val('');
		}					   
	}).blur(function() {
		if ( $(this).val() == '') {
			$(this).val('Your Email Address');
		}			
	});

});

$(function () {
  // IE6 doesn't handle the fade effect very well - so we'll stick with
  // the default non JavaScript version if that is the user's browser.
  if ($.browser.msie && $.browser.version < 7) return;
  
  $('#nav li')
  
    // remove the 'highlight' class from the li therefore stripping 
    // the :hover rule
    .removeClass('highlight')
    
    // within the context of the li element, find the a elements
    .find('a')
    
    // create our new span.hover and loop through anchor:
    .append('<span class="hover" />').each(function () {
      
      // cache a copy of the span, at the same time changing the opacity
      // to zero in preparation of the page being loaded
      var $span = $('> span.hover', this).css('opacity', 0);
      
      // when the user hovers in and out of the anchor
      $(this).hover(function () {
        // on hover
        
        // stop any animations currently running, and fade to opacity: 1
        $span.stop().fadeTo(350, 1);
      }, function () {
        // off hover
        
        // again, stop any animations currently running, and fade out
        $span.stop().fadeTo(350, 0);
      });
    });
});

this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


function popit() {
	newwindow = window.open('player.html','name','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=334,height=350,left = 553,top = 275');

}

