function closeInfoBlock(){
	$.cookie('showInfoBlock',false,{path: '/', expires: 7})
	$("#userAlert").remove();
	$("#slideBox").show();

}

$(function() {
	$('#slide1').ulslide({
		statusbar: true,
		width: 800,
		height: 470,
		bnext: '#slide1_next',
		bprev: '#slide1_prev',
		axis: 'x',
		duration: 500
	});
});

$(document).ready(function (){
	$("#phoneBusy").click(function (e){
		e.preventDefault();
		var cur=$(".phone span:visible");
		var next=cur.next();
		if (next.attr('id')=='phoneBusy')
			next=$(".phone span:first");
		next.show();
		cur.hide();				
		return false;
	});
	
	$(".close").click(function (e){
		e.preventDefault();
		closeInfoBlock();
		return false;
	});
	
	//Показ инфо-блока
	if ( $.cookie("showInfoBlock")==null){
		$("#userAlert").show();
		$("#slideBox").hide();
	}
});

