function homecountryselect(o)
{
	country = o.value;
	if(country =='US'){
		$('#limma').show();
		$('#licity').hide();
	}else{
		$('#limma').hide();
		$('#licity').show();
		$.ajax({
		type 	:'POST',
		url 	:'http://www.actorama.com/getCityList.php',
		data	: 'country='+country,
		success : function(data){
			$('#licity').html(data);
		}
		
	});
	}
}
$(document).ready(function(){
	
	// Example JQuery Plugin
	
	$('#commentForm p.fields textarea[name="comment"]').example('Comment');
	
	
	// Monologues Search Tabs
	
	$('#searchBox .tabs a').click(function(){
	
		$('#searchBox .tabs a').removeClass('selected');
		$(this).addClass('selected');
	
		return false;
		
	});
	
	$('#mono2').click(function(){
												 
		$('#searchForm ol.fieldset li.field.charNum').fadeOut();
		
		$('#sceneWho').fadeOut();
										   
		$('#monologueCharacter').fadeIn();
		
		$('#ageRange').fadeIn();
			
	});
	
	$('#scene').click(function(){

		$('#searchForm ol.fieldset li.field.charNum').fadeIn();
	
		$('#monologueCharacter').fadeOut();								 
										   
		$('#sceneWho').fadeIn();
		
		$('#ageRange').fadeOut();
			
	});
	
	$('#any').click(function(){
												 
		$('#searchForm ol.fieldset li.field.charNum').fadeOut();
												 
		$('#monologueCharacter').fadeOut();								 
										   
		$('#sceneWho').fadeOut();
		
		$('#ageRange').fadeOut();
			
	});
	
	
	/*$('#anyGenre').click(function(){
												 
		$('#oprion-appear').fadeOut();
			
	});
	
	$('#selectGenre').click(function(){
												 
		$('#oprion-appear').fadeIn();
			
	});
	*/
	// User Profile
	
	//$('#fullProfile').hide();
	
	//$('#read-more-bt a').click(function(){
		
	//	$('#fullProfile').toggleFade();
		
	//});
	
	//jQuery('#fullProfile table tbody, #bio .container div').hide();

	jQuery('#fullProfile table thead, #bio .container h3').css('cursor','pointer');
	
	jQuery('#fullProfile table thead').click(function(){

		jQuery(this).next('tbody').toggleFade('fast');

		jQuery(this).toggleClass('closed');

	});
	
	jQuery('#bio .container h3').click(function(){

		jQuery(this).next('div.ul-container').toggleFade('fast');

		jQuery(this).toggleClass('closed');

	});

});
