
var nn4 = (document.layers)? true : false; // Netscape 4.xx 
var iex = (document.all)? true : false; // IE4+ 
var dom = (document.getElementById && !document.all && !document.layers)? true: false; // compatible DOM, IE 5+, Netscape 6+, Mozilla, Firefox 

var language = '';
if(navigator.browserLanguage){
	language = navigator.browserLanguage;
}else{
	language = navigator.language;
}

// Redirection vers la page Anglaise si FR n'a pas été trouvée
//if (language.indexOf('fr') == -1) document.location.href = 'indexEn.html';




//---------------------------------------------------------------------
$(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"));
		}

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




//---------------------------------------------------------------------
// Au chargement de la page
function loadPage()
{
	window.status="Koyote Soft homepage";
}
//---------------------------------------------------------------------


//---------------------------------------------------------------------
$(document).ready(function() { 
	//1er lancement selection mp3 wma converetr
	//$('#mainContent').slideDown('fast',  function(){clearAll(); $('#mp3wmaconverter').show()});
	clearAll();
	$('#mp3wmaconverter').show();
	$('#mp3converterF').show();
		
	$('a#cutterAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#mp3wmacutter').show(); $('#mp3wmacutterF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});
	
	
	$('a#mp3converterAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#mp3wmaconverter').show(); $('#mp3converterF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});
	
	$('a#ripperAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#cdripper').show();$('#cdripperF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	

	$('a#burnerAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#burner').show();$('#burnerF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	

	$('a#burnerActionb').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#burner').show();$('#burnerF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#jingleAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#hot').show();$('#hotF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#videoAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#video').show();$('#videoF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#flvAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#flv').show();$('#flvF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#videoActionSug').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#video').show();$('#videoF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#flvActionSug').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#flv').show();$('#flvF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});		
	
	$('a#hdAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#hd').show();$('#hdF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#ipodAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#ipod').show();$('#ipodF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#tgpAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#tgp').show();$('#tgpF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#screenAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#screeni').show();$('#screeniF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#dvdAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#dvd').show();$('#dvdF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#ffpAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#ffp').show();$('#ffpF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#ibkAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#ibk').show();$('#ibkF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
	
	$('a#isopenAction').click(function() {
		$('#mainContent').slideUp('fast', function(){clearAll(); $('#isopen').show();$('#isopenF').show();});
		$('#mainContent').slideDown('fast');
		return false;
	});	
}); 
//---------------------------------------------------------------------
 
 
 
function clearAll(){
 	$('#mp3wmaconverter').hide();
	$('#mp3converterF').hide();
	$('#mp3wmacutter').hide();
	$('#mp3wmacutterF').hide();
	$('#cdripper').hide();
	$('#cdripperF').hide();
	$('#burner').hide();
	$('#burnerF').hide();
	$('#hot').hide();
	$('#hotF').hide();
	$('#video').hide();
	$('#videoF').hide();
	$('#flv').hide();
	$('#flvF').hide();
	$('#hd').hide();
	$('#hdF').hide();
	$('#ipod').hide();
	$('#ipodF').hide();
	$('#tgp').hide();
	$('#tgpF').hide();
	$('#screeni').hide();
	$('#screeniF').hide();
 	$('#dvd').hide();
	$('#dvdF').hide();
	$('#ffp').hide();
	$('#ffpF').hide();
	$('#ibk').hide();
	$('#ibkF').hide();
	$('#isopen').hide();
	$('#isopenF').hide();
}

