// JavaScript Document

//created by Static Fiction 2011.

//pdm (Pull Down Menu)

//onRollover, this script puts a clear.png wall (pdmWall) 100% width and height (full window) behind the pulldownmenu. The wall's rollover event triggers the hiding of the pulldownmenu

//IMPORTANT - needs jQuery to work

$(document).ready(function() {
						   
								   
	$("#pdmButton").mouseover(function(e){
			
		$(this).css('cursor', 'hand');
		
		$("#pdmDropDownDiv").fadeIn(200);
		
		$("#pdmWall").fadeIn(200);
			
			
			/*
		 $("#pdmDropDownDiv").animate({
				  opacity: 100
		  }, 200, function() {
			//Animation complete.
		  });
		 */
		 
		 
		 
		return false;
	});
	
	
	$('#pdmWall').mouseover(function(e) {
		
		$(this).css('cursor', 'pointer');
		
		$("#pdmDropDownDiv").fadeOut(200);
		
		$('#pdmWall').css('display', 'none');
		
								   
	});	
	
	
	/*
	$('#pdmDropDownDiv ul li').mouseover(function(e) {
		
		$(this).css('cursor', 'hand');
		
		$(e.target).css('background-color', '#c2fce7');
		
								   
	});	
	
	$('#pdmDropDownDiv ul li').mouseout(function(e) {
				
		$(e.target).css('background-color', '#fff');
		
								   
	});
	*/
	
	
						   
});

