function addBookmark(url, title)
{
  if (!url) url = location.href;
  if (!title) title = document.title;
  
  //Gecko
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
  //IE4+
  else if (typeof window.external == "object") window.external.AddFavorite(url, title);
  //Opera7+
  else if (window.opera && document.createElement)
  {
    var a = document.createElement('A');
    if (!a) return false; //IF Opera 6
    a.setAttribute('rel','sidebar');
    a.setAttribute('href',url);
    a.setAttribute('title',title);
    a.click();
  }
  else return false;
  
  return true;
}


jQuery(function()
{
    jQuery('#mycarousel ul').jcarousel({
        // Configuration goes here
		scroll:1
    });
	

	jQuery('.map').click(function (){				
		 
	jQuery.modal(
			'<iframe src="'+this.href+'"height="450" width="870" style="border:0"></iframe><p class="tonew"><a target="_blank" href="'+this.href+'">В отдельном окне</a></p>',
				{
closeHTML: "<a href='#' class='modalCloseImg'></a>",
	opacity:50,
	overlayCss:{
		background:"#000"
	},
	containerCss:{
		backgroundcolor:"#000",
		borderColor:"#0063dc",
		height:475,
		padding:500,
		width:868
	},
	overlayClose:true,
	close:true
}				 
);
	return false;
});
	
	
$('.btn-add-resorthotel').click(function () {
	$('#add-resorthotel').modal({
		closeHTML: "<a href='#' class='close-smodal'></a>",
		opacity:50,
		overlayCss:{
			background:"#000"
		},									
		containerCss:{
			height:575,
			width:430
		},
		overlayClose:true,
		close:true
	});	
});


$('a.order').click(function () {
	$('#block-order').modal({
		closeHTML: "<a href='#' class='close-smodal'></a>",
		opacity:50,
		overlayCss:{
			background:"#000"
		},									
		containerCss:{
			height:390,
			width:430
		},
		overlayClose:true,
		close:true
	});	
});

});
