function open_html(url, wwidth, wheight, resized, scrolls){
	if(resized) resizable_par=resized?',resizable=yes':',resizable=no'; else resizable_par=',resizable=no';
	if(scrolls) scroll_par=scrolls?',scrollbars=yes':',scrollbars=no'; else scroll_par=',scrollbars=no';
	pX = Math.round((screen.width - wwidth) / 2);
	pY = Math.round((screen.height - wheight) / 2);
	var rnd=Math.round(1000*Math.random());
	if(document.all){
		win_coords =',left='+pX+',top='+pY;
		new_window = window.open('', 'NewWindow'+rnd, 'width='+wwidth+',height='+wheight+',titlebar=no' + resizable_par + scroll_par + win_coords);
		new_window.location = url;
	}else{
		win_coords =',screenX='+pX+',screenY='+pY;
		new_window = window.open(url,'_blank', 'width='+wwidth+',height='+wheight+',titlebar=no,menubar=no,status=no,location=no,fullscreen=no,directories=no' + resizable_par + scroll_par + win_coords);
	}
    return false
}


//// functions for NEON GLOW
function crossref(number){
  var crossobj=document.all? eval("document.all.neonlight"+number) : document.getElementById("neonlight"+number)
  return crossobj
}
function neon(){
  //Change all letters to base color
  if (n==0){
    for (m=0;m<message.length;m++)
    //eval("document.all.neonlight"+m).style.color=neonbasecolor
    crossref(m).style.color=neonbasecolor
  }

  //cycle through and change individual letters to neon color
  crossref(n).style.color=neontextcolor

  if (n<message.length-1)
    n++
  else{
    n=0
    clearInterval(flashing)
    setTimeout("beginneon()",1500)
    return
  }
}
function beginneon(){
  if (document.all||document.getElementById)
  flashing=setInterval("neon()",flashspeed)
}
//// functions for NEON GLOW eof

function setActions(obj,action_id){
	$('#page_block_desription').html('Загрузка...');
  $.post("/ajax/ajax.php",{id:action_id,mode:'set_action'},function(data){
     var obj = eval('(' + data + ')');
      $('#page_block_desription').html(obj.rarr[0].description);
      $('#action_link img').attr('src','/pics/actions/'+obj.rarr[0].filename+'_main.jpg');
      $('#action_link').attr('href','/actions/'+action_id+'/');
      $('.actnav').removeClass('selected_pb_navi');
      $('table#page_block_navi td#act'+action_id).addClass('selected_pb_navi');
  });
}

function resorts(type_id){
  $('.resort_list').hide("fast");
  if($('#type_'+type_id).css('display')=='none'){
	  $('#type_'+type_id).show("fast");
	}else{
		$('#type_'+type_id).hide("fast");
	}
}

function search(){
    var country = $('#search_country').val();
    var city = $('#search_city').val();
    window.location.href = '/search/?country='+country+'&city='+city;
    
    return false;
}
