jQuery.noConflict();

// BEGIN Extend String Object
String.prototype.isNumeric = function(){
  var expression = /^[0-9]+$/;
  if(expression.test(this)){
    return true;
  }else{
    return false;
  }
};
String.prototype.isEmpty = function(){
  if(this == null || this.length == 0){
    return false;
  }else{
    return true;
  }
};
// END Extend String Object

// BEGIN ALTIMA CLASS
ALTIMA = function(parameters)
{
  var fnc = prototype = {
    options: {
    },

    initialize: function(parameters){
      return this;
    },

    nothing: function(event){
      event.preventDefault();
      event.stopPropagation();
    },
		
		swf: function(option){
			var s = '<object type="application/x-shockwave-flash" data="'+option.url+'" width="'+option.width+'" height="'+option.height+'"'+(option.id ? ' id="'+option.id+'"' : '')+'>';
			s += '<param name="movie" value="'+option.url+'" />';
			for(var key in option.param) {
				s += '<param name="'+ key +'" value="'+ option.param[key] +'" />';
			}
			s += (option.flashvars ? '<param name="flashvars" value="'+ option.flashvars +'" />' : '') + '</object>';
			option.elm.innerHTML = s;
		}
  }

  return fnc.initialize(parameters);
};
// END CLASS ALTIMA

// BEGIN document.ready
jQuery(document).ready(function() {  
  var altima  = new ALTIMA();

/* FONCTION VERIF CHAMPS SAISIE RECHERCHE ET NEWSLETTER */
	jQuery('#search').focus(function() {jQuery('#search').attr('value','');});
	jQuery('#search').blur(function() {if(jQuery('#search').attr('value')==''){jQuery('#search').attr('value','rechercher un produit')}});

	jQuery('#NewsletterEmail').focus(function() {jQuery('#NewsletterEmail').attr('value','');});
	jQuery('#NewsletterEmail').blur(function() {if(jQuery('#NewsletterEmail').attr('value')==''){jQuery('#NewsletterEmail').attr('value','votre adresse email')}});
/* FIN FUNCTION VERIF CHAMPS DE SAISIE RECHERCHE ET NEWSLETTER */

/* HOVER DU MENU */
	jQuery('#navigation ul li').hover(function(){
        jQuery(this).next().addClass('SuiteActif');
	},function(){
		if(!jQuery(this).hasClass('actif')) jQuery(this).next().removeClass('SuiteActif');
	});
/* FIN HOVER DU MENU */

// END document.ready

});

