var LASTMOVE;

function GetTab(moveToDo){

            if(LASTMOVE == moveToDo) {
				$("#tab_container").animate({marginTop:"180px"},500);
				//$("#col_1").animate({marginTop:"200px"},500); 
				//$("#col_2").animate({marginTop:"200px"},500); 
					
			LASTMOVE = "";				
			
			} else {
           
				LASTMOVE = moveToDo;
				
				$("#tab_container").animate({marginTop:"0px"},500); 
	
            }
        
} 



 
 
// function GetSocial() {
	//$("#photo").show();	
	//$("#photo")
			//.html($("span", $txtBox).html())
			//.css({
				//"display":"block",
			//});  
		
// }
				

 
 
 
 


var LASTSocial;

function GetSocial(moveSocial){

            if(LASTSocial == moveSocial) {
				$("#social_container").animate({marginLeft:"-365px"},500);
				//$("#col_1").animate({marginTop:"200px"},500); 
				//$("#col_2").animate({marginTop:"200px"},500); 
					
			LASTSocial = "";				
			
			} else {
           
				LASTSocial = moveSocial;
				
				$("#social_container").animate({marginLeft:"0px"},500); 
	
            }
        
} 

function getfile(filename) {
	
		$.get(filename, function(data){
        $("#tab_bottom_content").html(data);
		
		$(document).ready(function() {
		$(this).prop("disabled","disabled");
		$txtBox = $("#col_1");
		$txtBox2 = $("#col_2");
		
		$txtBox
			.height(parseFloat($txtBox.height()/2))
			.css("overflow","hidden");
		
		$txtBox2
			.height($txtBox.height())
			.css("overflow","hidden");
		
		$("span", $txtBox2)
			.html($("span", $txtBox).html())
			.css({
				"position":"absolute",
				"bottom":0
			});  
});
		
		
		
		});

}


function lookup(inputString) {
	if(inputString.length == 0) {
		$('#suggestions').fadeOut(); // Hide the suggestions box
	} else {
		$.post("objects/inc/rpc.php", {queryString: ""+inputString+""}, function(data) { // Do an AJAX call
			$('#suggestions').fadeIn(); // Show the suggestions box
			$('#suggestions').html(data); // Fill the suggestions box
		});
	}
}

