$(document).ready(function(){});function rotate(){	$.post("engine.php", {'act':'rotate','banners':banners,'xp':xp},		function(data){			$(".banner_holder").each(function(){				$('#'+$(this).attr("id")).html(data[$(this).attr("id")]);			});  		}, "json");}function rotateone(holder){	$.post("engine.php", {'act':'rotateone',id:holder,'xp':xp},		function(data){			//$(".banner_holder").each(function(){				$('#'+holder).html(data[holder]);			//});  		}, "json");}function bookmark(idx){	$.post("engine.php", {'act':'bookmark','id':idx,'xp':xp},		function(data){			$('#bookmark_'+idx).html(data);  		}, "json"); 	return false;} function menu(id,id1) {	document.getElementById(id).className='showblock';	document.getElementById(id1).className='hidden'; }  function search_tabs(id,id1,id2,id3) {	document.getElementById(id).className='showblock';	document.getElementById(id1).className='hidden';	document.getElementById(id2).className='showblock';	document.getElementById(id3).className='hidden'; }  function sw_search(type) { 	$("input[name='s_type']").attr('value',type); 	if(type == 'vacancies') 	{	 	$("#vacancy_a").removeClass().addClass('showblock');	 	$("#vacancy_p").removeClass().addClass('hidden');	 	$("#resume_a").removeClass().addClass('hidden');	 	$("#resume_p").removeClass().addClass('showblock'); 	}	else 	{	 	$("#vacancy_a").removeClass().addClass('hidden');	 	$("#vacancy_p").removeClass().addClass('showblock');	 	$("#resume_a").removeClass().addClass('showblock');	 	$("#resume_p").removeClass().addClass('hidden'); 	} }  function add_education_form() { 	$.post("engine.php", {'act':'add_education_form','xp':xp},		function(data){			$('#education_separator').after(data);  		}, "json"); 	return false; } function add_workplace_form() { 	$.post("engine.php", {'act':'add_workplace_form','xp':xp},		function(data){			$('#workplace_separator').after(data);  		}, "json"); 	return false; } function add_language_form() { 	$.post("engine.php", {'act':'add_language_form','xp':xp},		function(data){			$('#language_separator').after(data);  		}, "json"); 	return false; } function employerform(type) {    hiddenvar = $('#hiddenvar').attr("value",type);  	document.forms['vacancy'].submit();    return false; } function employerform2(type) {    hiddenvar = $('#hiddenvar2').attr("value",type);    document.forms['desision'].submit();    return false; } function resumeform(type) {    hiddenvar = $('#hiddenvar').attr("value",type);  	document.forms['resume'].submit();    return false; } function resumeform2(type) {    hiddenvar = $('#hiddenvar2').attr("value",type);    document.forms['desision'].submit();    return false; } function swcity_job(box_width,district_id,reg_id,select_name){ ind = $('#'+district_id).get(0).value; $.post("engine.php", {'act':'load_region_box','parent':ind,'width':box_width,'select_name':select_name,'xp':xp}, function(data){ $('#'+reg_id).html(data); }, "json");return false;}