function select(tab,tabhead)
{
	$(".tab").addClass('hidden');
	$("#"+tab).removeClass('hidden');
	
	$(".tabhead").removeClass('tab_a');
	$(".tabhead").addClass('tab_p');
	$("#"+tabhead).removeClass('tab_p');
	$("#"+tabhead).addClass('tab_a');
	return false;
} 


function navigate(url)
	{window.location=url;}
function redirect(el)
	{window.location=el.value;}
function open_div(id){
	document.getElementById(id).className='show';
	return false;
}
function open_headdiv(id,id1){
	document.getElementById(id).className='show';
	document.getElementById(id1).className='menu_sub_hover';
	return false;
}
function close_headdiv(id,id1){
	document.getElementById(id).className='hide';
	document.getElementById(id1).className='menu_sub';
	return false;
}
function close_div(id){	
	document.getElementById(id).className='hide';
	return false;
}
function open_divv(gago){
	document.getElementById(id).className='show';
}
function close_divv(gago){	
	document.getElementById(id).className='hide';
}
function show_div(id){	
	document.getElementById(id).className='showblock';
}
function hide_div(id){	
	document.getElementById(id).className='hidden';
}
function toggle(name)
{
  $('#'+name).toggleClass('hidden');
  return false;
}
function swtabz(rtab,uid)
{
  tohide = $("#tabbodycontainer_"+uid+" > *");
  toshow = $('#tabbody_'+rtab+'_'+uid);
  tohide.addClass('tabbody');
  tohide.removeClass('currenttabbody');
  toshow.addClass('currenttabbody');
  toshow.removeClass('tabbody');
  tohide = $("#tabcontainer_"+uid+" > div");
  toshow = $('#tab_'+rtab+'_'+uid);
  tohide.addClass('tab');
  tohide.removeClass('currenttab');
  toshow.addClass('currenttab');
  toshow.removeClass('tab');
}
 function popUp(URL,pwidth,pheight)
 {
   window.open(URL, 777 , 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+pwidth+',height='+pheight+',left = 600,top = 500');
   return false;          
 }
 function ghover(id,src)
 {
 	$('.img_marging').removeClass('gsel');
 	$('.img_marging').addClass('gunsel');
 	$('#small_'+id).removeClass('gunsel');
 	$('#small_'+id).addClass('gsel');
 	$('.big_image').removeClass('gshow');
 	$('.big_image').addClass('ghide');
 	$('#big_'+id).removeClass('ghide');
 	$('#big_'+id).addClass('gshow');
 	$('#front_title').text(gtitles[id]);
 	$('#front_text').text(gshorts[id]);
 	return false;
 }
 function chcolor(id,src)
 {
 	$('.cbig_image').removeClass('cshow');
 	$('.cbig_image').addClass('chide');
 	$('#cbig_'+id).removeClass('chide');
 	$('#cbig_'+id).addClass('cshow');
 	return false;
 }
 function openimg(id)
 {
 	$('#color_img_'+id).removeClass('hidden');
 	$('#gray_img_'+id).addClass('hidden');
 }

 function closeimg()
 {
 	$('.color').addClass('hidden');
 	$('.gray').removeClass('hidden');
 }
 function open_search(id)
 {
	$('#'+id).toggleClass("hidden")
 }
function search()
{
document.forms['searching'].submit();
return false;
}

 function prices()
 {
 	$('.prices_tiv').addClass('hidden');
 	$('.prices_stat').removeClass('hidden');
 	return false;
 }
 function outprices()
 {
 	$('.prices_tiv').removeClass('hidden');
 	$('.prices_stat').addClass('hidden');
 	return false;
 }
 function player(id, div_id){
	var so = new SWFObject("/img/fla/player_small.swf", "player", "81", "43", "8", "#FFFFFF");
	so.addParam("scale", "scale");
	so.addVariable("asound", id);
	so.addParam("menu", "false");
	so.addParam("wmode", "transparent");
	so.write("player_small_"+div_id);
 } 
 function hideBanner()
 {
	 $('#orangebanner').hide();
 }
 
 function toggleRegion(cur, sel){if($(cur).css('display')=='block'){$(cur).css('display','none');}
 $(sel).animate({opacity:'toggle'},'normal',function(){$(cur).css('display','none');});return false;}
 function _geoRedirect(id){window.location.href = 'index.php';}
 $(document).ready(function(){
 setTimeout('hideBanner()',8000);
 });