//url="http://king/www/micheletcheverry/website/v2/";
url="http://www.micheletcheverry.com/";
 
$(document).ready(function(){
	$(".tab1").addClass("active");
	$("#content_2").css("display","none");
	
	$(".tabs a").click(function(i){
		$(".tabs a").removeClass("active");
		$(this).addClass("active");
		if (this.title=="content_1") {
			$("#content_2").hide();
			$("#content_1").fadeIn(1000);
		}
		else{
			$("#content_1").hide();
			$("#content_2").fadeIn(1000);
		}
		return false;
	})
	
	$('.ngg-widget a').lightBox({
		imageLoading:url+'wp-content/themes/micheletcheverry/images/lightbox-ico-loading.gif',
		imageBtnClose: url+'wp-content/themes/micheletcheverry/images/lightbox-btn-close.gif',
		imageBtnPrev: url+'wp-content/themes/micheletcheverry/images/lightbox-btn-prev.gif',
		imageBtnNext: url+'wp-content/themes/micheletcheverry/images/lightbox-btn-next.gif',
		imageBlank: url+'wp-content/themes/micheletcheverry/images/lightbox-blank.gif',
		txtOf: 'sur'
	});
	$('.ngg-galleryoverview a').lightBox({
		imageLoading:url+'wp-content/themes/micheletcheverry/images/lightbox-ico-loading.gif',
		imageBtnClose:url+'wp-content/themes/micheletcheverry/images/lightbox-btn-close.gif',
		imageBtnPrev: url+'wp-content/themes/micheletcheverry/images/lightbox-btn-prev.gif',
		imageBtnNext: url+'wp-content/themes/micheletcheverry/images/lightbox-btn-next.gif',
		imageBlank: url+'wp-content/themes/micheletcheverry/images/lightbox-blank.gif',
		txtOf: 'sur'
	});
	
	if ($('a[@rel*=lightbox]').length) {
		$('a[@rel*=lightbox]').lightBox({
		imageLoading:url+'wp-content/themes/micheletcheverry/images/lightbox-ico-loading.gif',
		imageBtnClose:url+'wp-content/themes/micheletcheverry/images/lightbox-btn-close.gif',
		imageBtnPrev: url+'wp-content/themes/micheletcheverry/images/lightbox-btn-prev.gif',
		imageBtnNext: url+'wp-content/themes/micheletcheverry/images/lightbox-btn-next.gif',
		imageBlank: url+'wp-content/themes/micheletcheverry/images/lightbox-blank.gif',
		txtOf: 'sur'
		});	
	}
	
	$('.btn-footer').click(function(){$.scrollTo('#navigationed',400);return false;});
	
	var params = {
	  wmode: "transparent"
	};
	var flashvars = {
	  configxml: url+"wp-content/themes/micheletcheverry/swf/configxml_multi.xml"
	};
	swfobject.embedSWF(url+"wp-content/themes/micheletcheverry/swf/player_mp3_multi.swf", "audio", "265", "90", "9.0.0","",flashvars,params);

 })
 

