/**
 * EnriqueSantos Class
 */
function EnriqueSantos () {
}

/* GALLERY */
EnriqueSantos.prototype.doGallery = function() {
	var _l0 = this;
	// Content pane
	$('#id_content_pane', _l0.doc).jScrollPane({
			topCapHeight: 0,
			scrollbarWidth: 3,
			scrollbarMargin: 20
		}
	);
	// Small thumbs
	var i=0;
	while (i<11) {
		$('#idSmallThumb'+i, _l0.doc).mouseover(function() {
			$('#idBigThumb0', _l0.doc).hide();
			$('#idBigThumb1', _l0.doc).hide();
			$('#idBigThumb1', _l0.doc).css('background-image', 'url('+$(this).attr("src")+')');
			$('#idBigThumb1', _l0.doc).fadeIn(500);
		});
		$('#idSmallThumb'+i, _l0.doc).mouseout(function() {
			$('#idBigThumb1', _l0.doc).hide();
			$('#idBigThumb0', _l0.doc).fadeIn(500);
		});
		i++;
	}
}

/* HISTORY */
EnriqueSantos.prototype.doClients = function() {
	var _l0 = this;
	// Content pane
	$('#id_content_pane', _l0.doc).jScrollPane({
			topCapHeight: 0,
			scrollbarWidth: 3,
			scrollbarMargin: 20
		}
	);
	// Small thumb
	$('#idSmallThumb1', _l0.doc).mouseover(function() {
		$('#idBigThumb0', _l0.doc).hide();
		$('#idBigThumb1', _l0.doc).hide();
		$('#idBigThumb1', _l0.doc).fadeIn(500);
	});
	$('#idSmallThumb1', _l0.doc).mouseout(function() {
		$('#idBigThumb1', _l0.doc).hide();
		$('#idBigThumb0', _l0.doc).fadeIn(500);
	});
}

/* WORKSHOP */
EnriqueSantos.prototype.doWorkShop = function() {
	var _l0 = this;
	// Content pane
	$('#id_content_pane', _l0.doc).jScrollPane({
			topCapHeight: 0,
			scrollbarWidth: 3,
			scrollbarMargin: 20
		}
	);
	// Small thumbs
	var i=0;
	while (i<5) {
		$('#idSmallThumb'+i, _l0.doc).mouseover(function() {
			$('#idBigThumb0', _l0.doc).hide();
			$('#idBigThumb1', _l0.doc).hide();
			$('#idBigThumb1', _l0.doc).css('background-image', 'url('+$(this).attr("src")+')');
			$('#idBigThumb1', _l0.doc).fadeIn(500);
		});
		$('#idSmallThumb'+i, _l0.doc).mouseout(function() {
			//$('#idBigThumb1', _l0.doc).fadeOut(500);
			$('#idBigThumb1', _l0.doc).hide();
			$('#idBigThumb0', _l0.doc).fadeIn(500);
		});
		i++;
	}
}

/* HISTORY */
EnriqueSantos.prototype.doHistory = function() {
	var _l0 = this;
	// Content pane
	$('#id_content_pane', _l0.doc).jScrollPane({
			topCapHeight: 0,
			scrollbarWidth: 3,
			scrollbarMargin: 20
		}
	);
	// Small thumb
	$('#idSmallThumb1', _l0.doc).mouseover(function() {
		$('#idBigThumb0', _l0.doc).hide();
		$('#idBigThumb1', _l0.doc).hide();
		$('#idBigThumb1', _l0.doc).fadeIn(500);
	});
	$('#idSmallThumb1', _l0.doc).mouseout(function() {
		$('#idBigThumb1', _l0.doc).hide();
		$('#idBigThumb0', _l0.doc).fadeIn(500);
	});
}

/* HOME : INTRO */
EnriqueSantos.prototype.showIntro = function() {
	var _l0 = this;
	$('#idLinkSpanish', _l0.doc).click(function() {
		$('.divBigMenu', _l0.doc).hide();
		$('.divHider', _l0.doc).hide();
		$('.divLanguageLinks', _l0.doc).hide();
		_l0.showIntroTitle();
	});
	$('#idLinkEnglish', _l0.doc).click(function() {
		// Change language to English
		$('#id_intro_title', _l0.doc).empty();
		$('#id_intro_title', _l0.doc).append("the art of framing art");
		$('#id_h1_bigmenu_link1', _l0.doc).empty();
		$('#id_h1_bigmenu_link1', _l0.doc).append("&nbsp;&nbsp;&nbsp;60 years of history");
		$('#id_h1_bigmenu_link2', _l0.doc).empty();
		$('#id_h1_bigmenu_link2', _l0.doc).append("Clients&nbsp;&nbsp;&nbsp;");
		$('#id_h1_bigmenu_link3', _l0.doc).empty();
		$('#id_h1_bigmenu_link3', _l0.doc).append("&nbsp;&nbsp;&nbsp;The workshop");
		$('#id_h1_bigmenu_link4', _l0.doc).empty();
		$('#id_h1_bigmenu_link4', _l0.doc).append("Gallery&nbsp;&nbsp;&nbsp;");
		// Change menu links to the English ones
		$('#id_a_bigmenu_link1', _l0.doc).attr('href', '../history/');
		$('#id_a_bigmenu_link2', _l0.doc).attr('href', '../clients/');
		$('#id_a_bigmenu_link3', _l0.doc).attr('href', '../the-workshop/');
		$('#id_a_bigmenu_link4', _l0.doc).attr('href', '../gallery/');
		//
		$('.divBigMenu', _l0.doc).hide();
		$('.divHider', _l0.doc).hide();
		$('.divLanguageLinks', _l0.doc).hide();
		_l0.showIntroTitle();
	});
}

EnriqueSantos.prototype.showIntroTitle = function() {
	var _l0 = this;
	$('.divIntroTitle', _l0.doc).fadeIn(500, function() {
		_l0.showBigMenu();
	});
}

EnriqueSantos.prototype.hideIntroTitle = function() {
	var _l0 = this;
	$('.divIntroTitle', _l0.doc).fadeOut(1000);
}

EnriqueSantos.prototype.showBigMenu = function() {
	var _l0 = this;
	$('.divBigMenu', _l0.doc).fadeIn(1000, function() {
		_l0.hideIntroTitle();
	});
}
