  $(document).ready(function(){
		$.spin.imageBasePath = '/img/';
		$('.spin1').spin({
			interval: 1,
			/*max: 18,*/
			min: 0
		});
		$('.spin2').spin({
			interval: 30000,
			/*max: 300000,*/
			min: 0
		});

	$('.new_cruiselanta_tpl_cruise_online_datepicked').datepicker({});

});

$(function() {
      $('#contenu2 div a').lightBox();
      });

function opcl(id)
{
	var targ =document.getElementById(id);
	if(targ.style.display=='none')
		{
			targ.style.display='block';

		}
	else
		{
			targ.style.display='none';
		}
}

function show_opt(opt_id) {
	document.getElementById('allcomp1').style.display = 'none';
	document.getElementById('allcomp2').style.display='';
}

function ValidSearch()
{
  var msg='';
  if($("#ctl00_ContentPlaceHolder1_ASPxGuests").attr("value") == "0") 
    {
      msg+='*Укажите количество человек\n'; 
    }
  if($("#ctl00_ContentPlaceHolder1_ASPxComboCity").attr("value") == "0") 
    {   
       msg+='*Укажите регион плавания\n';   
    }
  if(msg!='') { alert(msg); return false; }
  else { return true; }
}


function showhide(id) {
var targ =document.getElementById(id);
targ.style.display = (targ.style.display == 'none') ? '' : 'none';
}

function plus_minus(id)
{
	var targ =document.getElementById(id);
	if(targ.style.display=='none')
		{
			this.className = 'minus';
			targ.style.display='block';
		
		}
	else
		{
			targ.style.display='none';
			this.className = 'plus';
		}
}
