Cufon.replace ( '#mainnav a, #topnav a' , { fontFamily: 'Century Gothic', textShadow: '#000000 0px 0px 0px', hover:true } );		

if (document.images) {
    img1 = new Image();
    img1.src = "./images/bttn1.png";
    img1 = new Image();
    img1.src = "./images/bttn2.png";
    img1 = new Image();
    img1.src = "./images/bttn3.png";
    img1 = new Image();
    img1.src = "./images/bttn4.png";	
    img1 = new Image();
    img1.src = "./images/images.jpg";
    img1 = new Image();
    img1.src = "./images/logo_new.jpg";
}

$(document).ready(function() {	

/*
$('#serversinfo').cycle({ 
    fx:    'fade', 
    speed:  2500 
 });	
*/
$("#logo span").css("opacity","0");

	$('#logo').mouseover(function() {
		$(this).stop().find("span").animate({opacity: 1.0}, 380, 'linear');
	});
			
	$('#logo').mouseout(function() {
		$(this).stop().find("span").animate({opacity: 0}, 380, 'linear');
	});
	
	/*
	$('#mainnav a#bttn1').mouseover(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';
		$('#bttn1_h').fadeIn('slow', function() { }).delay(100);
	});
	
	$('#mainnav a#bttn1_h').mouseout(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';	
		$(this).fadeOut('slow', function() { });
		
	});
	
	*/
//$("#bttn1_h_div").css("display","block");
	$('#mainnav a.primary').mouseenter(function(){ 
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_div';
		
		if ($(sn_h).is(":hidden")) 
		{
			$('.bttndiv').fadeOut('slow', function() { }).delay(100);
		}
		$(sn_h).fadeIn('slow', function() { }).delay(400);
		
		
		//alert(sn_h);
	});
	
	
	
	$('#mainnav a#bttn1').hover(function(){ 
		
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';
		$('#bttn1_h').fadeIn('slow', function() { }).delay(100);
	});
	
	$('#mainnav a#bttn1_h').mouseleave(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';	
		$(this).fadeOut('slow', function() { });
	});
	
	$('#mainnav a#bttn2').mouseover(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';
		$('#bttn2_h').fadeIn('slow', function() { }).delay(100);
	});
	
	$('#mainnav a#bttn2_h').mouseleave(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';	
		$(this).fadeOut('slow', function() { });
		
	});
	
	$('#mainnav a#bttn3').mouseover(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';
		$('#bttn3_h').fadeIn('slow', function() { }).delay(100);
	});
	
	$('#mainnav a#bttn3_h').mouseleave(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';	
		$(this).fadeOut('slow', function() { });
		
	});
	
	$('#mainnav a#bttn4').mouseover(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';
		$('#bttn4_h').fadeIn('slow', function() { }).delay(100);
	});
	
	$('#mainnav a#bttn4_h').mouseleave(function() {
		var sn = '#' + $(this).attr("id");	
		var sn_h = '#' + $(this).attr("id") + '_h';	
		$(this).fadeOut('slow', function() { });
		
	});
	
});
