function mark_login() 
	{
		var color = $("#loginbox").css("background-color");
		if(color == "transparent")
			{
				$("#loginbox").css({'background-color' : '#ffffee', 'padding':'2px', 'border':'1px solid #666666'});
			}
		else if(color == "rgb(255, 255, 238)")
			{
				$("#loginbox").css({'background-color' : '#ffeeee', 'padding':'2px', 'border':'1px solid #666666'});
			}
		else
			{
				$("#loginbox").css({'background-color' : '#ffffee', 'padding':'2px', 'border':'1px solid #666666'});
			}
	}

function show_musicoptions() {
	$("#rowproduction").fadeOut('slow');
	$("#rowband").fadeIn('slow');
	$("#rowtrack").fadeIn('slow');
}

function hide_musicoptions() {
	$("#rowband").fadeOut('slow');
	$("#rowtrack").fadeOut('slow');
	$("#rowproduction").fadeIn('slow');
}

function outsideuk()
	{
		$("input:[name=zip]").attr("value","N1 1TY");

	}

	
function show_advanced_search()
	{
		$.get("search_expand.php", function(data) {
     		$(".advanced_search").empty();
     		$(".advanced_search").append(data);
		});
	}
function hide_advanced_search()
	{
		$(".advanced_search").empty();
  		$(".advanced_search").append("<table class=form_table cellspacing=0><tr><td class=form_title>&#160; More Options</td><td class='form_input'><a onclick='javascript:show_advanced_search();'>Click to display more search options</a></td><td class='form_help'></td></tr></table>");
	}
	

function reveal_recommendations()
	{
		$(".recommendations").fadeIn('slow');
	}
	
function emp_hide() 
	{
   		$(".emp_block").empty();
 		$(".emp_block").append("<a href='javascript:emp_show();'>Additional job posting options</a><p/>");
	}
	
function emp_show() 
	{
		$.get("inc_employeroptions.php", function(data) {
     		$(".emp_block").empty();
     		$(".emp_block").append(data);
		});

	}

function mp3_play(uid)
	{
		$.get("mp3_play.php",{uid: uid}, function(data) {
				$("#mp3_play_"+uid).empty();
				$("#mp3_play_"+uid).append(data);
		});
	}

$(document).ready(function(){
			featured_profiles();
		});
		
function featured_profiles()
	{
		$('.FP_block').mouseover(function(){
				$(this).children('.FP_block_caption').stop().animate(
					{"height":"30px"}, 500);
				$(this).children('.FP_block_bkg').stop().animate(
					{"height":"30px", "backgroundColor":"#111111", opacity:.75}, 500);
				});
		$('.FP_block').mouseout(function(){
				$(this).children('.FP_block_caption').stop().animate(
					{"height":"16px"}, 500);
				$(this).children('.FP_block_bkg').stop().animate(
					{"height":"16px", "backgroundColor":"#111111", opacity:.75}, 500);
				});
		
		
		$('.FV_block').mouseover(function(){
				$(this).children('.FV_block_caption').stop().animate(
					{"height":"30px"}, 500);
				$(this).children('.FV_block_bkg').stop().animate(
					{"height":"30px", "backgroundColor":"#111111", opacity:.75}, 500);
				});
				
		$('.FV_block').mouseout(function(){
				$(this).children('.FV_block_caption').stop().animate(
					{"height":"16px"}, 500);
				$(this).children('.FV_block_bkg').stop().animate(
					{"height":"16px", "backgroundColor":"#111111", opacity:.75}, 500);
				});		
	}