


$(document).ready(function() {
						   
								   
	$('div.custom-drop-down div.textbox div.list').hide();                      
	  
	$('div.custom-drop-down div.textbox div.list span:not(.selected)').click(function() { 
			var spanvalue = $(this).text();       
			$(this).parent().parent().children('.selected').html(spanvalue);     
			$('div.custom-drop-down div.textbox div.list span').removeClass('active');        
			$(this).addClass('active');             
			});
	
	$("div.custom-drop-down div.textbox span:not(.selected)").mouseover(        
			function () {$(this).addClass("hover");} 
			);
	
	$("div.custom-drop-down div.textbox span:not(.selected)").mouseout(         
			function () {$(this).removeClass("hover");} 
			);
	
	$('span:not(.selected)').mouseover(function(){    
			$('div.custom-drop-down div.textbox div.list span').removeClass('active');                  
			});
	
	$("div.custom-drop-down div.textbox").click(function() {   
			$('div.list').not(this).hide();                   
			});
	
	$("div.custom-drop-down div.textbox").toggle(                    
			function () {$(this).children('div.list').slideDown("normal")  ;},    
			function () {$('div.list').slideUp("fast");}      
			);
	
	$("*:not(div.custom-drop-down div.textbox)").click(function() {   
			$('div.custom-drop-down div.textbox div.list').slideUp("fast");                   
			});

	$('div.custom-drop-down div.textbox div.list span.link').click(function() {
				window.location = $(this).attr('href');													   
	});
	
});
