//---------------------------------------------------------------------
$(function() {
	/*$("#triggers img[rel]").overlay({

	// some expose tweaks suitable for modal dialogs
	expose: {color: '#333'}, effect: 'apple'

	});*/
	

	$("a[rel]").overlay({
		expose: {color: '#333'},
		effect: 'apple',
		onBeforeLoad: function() {
			// grab wrapper element inside content
			var wrap = this.getContent().find(".contentWrap");
			// load the page specified in the trigger
			wrap.load(this.getTrigger().attr("href"));
		}

	});
});
//---------------------------------------------------------------------





//---------------------------------------------------------------------
$(document).ready(function() { 
	//1er lancement selection mp3 wma converetr
	//$('#mainContent').slideDown('fast',  function(){clearAll(); $('#mp3wmaconverter').show()});
	clearAll();
	$('#extractorContent').show();

	$('a#screenshotAction').click(function() {
		$('#productDetailWrap').slideUp('fast', function(){clearAll(); $('#screenshotContent').show();});
		$('#productDetailWrap').slideDown('fast');
		return false;
	});
	
	$('a#extractorAction').click(function() {
		$('#productDetailWrap').slideUp('fast', function(){clearAll(); $('#extractorContent').show();});
		$('#productDetailWrap').slideDown('fast');
		return false;
	});

	$('a#catcherAction').click(function() {
		$('#productDetailWrap').slideUp('fast', function(){clearAll(); $('#catcherContent').show();});
		$('#productDetailWrap').slideDown('fast');
		return false;
	});
	
	$('a#m4aAction').click(function() {
		$('#productDetailWrap').slideUp('fast', function(){clearAll(); $('#m4aContent').show();});
		$('#productDetailWrap').slideDown('fast');
		return false;
	});
}); 
//---------------------------------------------------------------------
 
 
 
function clearAll(){
 	$('#screenshotContent').hide();
	$('#extractorContent').hide();
	$('#catcherContent').hide();
	$('#m4aContent').hide();
}
