



function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// Accueil pour Importer les Themes

function Get_THEMES(sel)
{

    $('#li_theme').html('<center><img src="_images/loading.gif" border="0" /></center>');
    $('#li_theme').fadeIn("slow");


$.post( base_url + "Ajax/Get_THEMES",
 { 'id' : $('#'+sel).val()},
  function(data){
    $('#li_theme').html(data);
  });
}



function Get_THEMES3(sel)
{

    $('#is_theme').html('<td colspan="2" align="center" valign="middle" ><img src="_images/loading.gif" border="0" /></td>');
    $('#is_theme').fadeIn("slow");


$.post( base_url + "Ajax/Get_THEMES3",
 { 'id' : $('#'+sel).val()},
  function(data){
    $('#is_theme').html(data);
  });
}



function Get_THEMES_post(sel,poss)
{

    $('#li_theme').html('<center><img src="_images/loading.gif" border="0" /></center>');
    $('#li_theme').fadeIn("slow");


$.post( base_url + "Ajax/Get_THEMES",
 { 'id' : $('#'+sel).val()    , 'sel_theme' : poss},
  function(data){
    $('#li_theme').html(data);
  });
}



function Get_THEMES2(sel)
{

	$('#li_theme2').html('<center><img src="_images/loading.gif" border="0" /></center>');
	$('#li_theme2').fadeIn("slow");


$.post( base_url + "Ajax/Get_THEMES2",
 { 'id' : $('#'+sel).val()},
  function(data){
	$('#li_theme2').html(data);
  });
}








function Get_THEMES2_post(sel,poss)
{

	$('#li_theme2').html('<center><img src="_images/loading.gif" border="0" /></center>');
	$('#li_theme2').fadeIn("slow");


$.post( base_url + "Ajax/Get_THEMES2",
 { 'id' : $('#'+sel).val(), 'sel_theme' : poss},
  function(data){
	$('#li_theme2').html(data);
  });
}










//////////////////////////////////TEST/////////////////////////////////////////////////
function getGRAPH()
{

$('#resultat').html('<center><img src="_images/loading.gif" border="0" /></center>');

$.post( base_url + "Ajax",
 { 'todo' : 'getGRAPH'  ,'txt' : $('#txt').val()},
  function(data){
	$('#resultat').html(data);
  });

}


function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};


$(document).ready(function(){
$('.wys').wysiwyg();
});
