
/***********************2nd Nav****************************/

$(document).ready(function(){

		$('#site-nav ul li ul').hide();	

		$('#site-nav ul li').hover(
			function() { $('ul', this).css('display', 'block').parents("ul").addClass("active"); },
			function() { $('ul', this).css('display', 'none'); 
		});	
	
		$('#site-nav ul li').click(
			function() { $("#CurrencyOverlay ul li").addClass("active");  
		});
		
			
});



/**********SHOW HOME PAGE LINKS*********************/

$(document).ready(function() {
	$('#flashLinks').show('fast');
});



/*******************************************************************************
* Footer Popup
*******************************************************************************/

    $(document).ready(function(){
        $(".footerpopup").click(function(){
            forwardPage(this.href,'popup');
			return false;
        });
        $(".footerpopup").focus(function(){
            
        });
    }); 
	


/*******************************************************************************/
/* Site Nav Menu*/
/*******************************************************************************/

$(document).ready(function(){
$("#site-nav ul li").click(function(){
	 $(this).addClass("active"); },
function(){ $(this).removeClass("active");}) 
});







/******************************************/
/***************TOOL TIP*******************/

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 */		
	$("img.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();
    });	
	$("img.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


/******************************************/
// starting the script on page load
$(document).ready(function(){
	tooltip();
});
/******************************************/

/***************TOOL TIP*******************/

this.tooltip_small = 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 */		
	$("img.tooltip_small").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip_small'>"+ this.t +"</p>");
		$("#tooltip_small")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("img.tooltip_small").mousemove(function(e){
		$("#tooltip_small")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


/******************************************/
// starting the script on page load
$(document).ready(function(){
	tooltip_small();
});
/******************************************/
