/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    * Filename: argisnacre.js
    * Website: http://www.argis-nacre.com
    * Author: Groupe I.D.A
    * Description: javascript 

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
    
    

// JAVASCRIPT VARS
      // cache buster
      var cacheBuster = "?t=" + Date.parse(new Date());
      // stage dimensions    
      var stageW = "560";//"100%";
      var stageH = "175";//"100%";
      
      
      // ATTRIBUTES
      var attributes = {};
      attributes.id = 'FlabellComponent';
      attributes.name = 'FlabellComponent';

      // PARAMS
      var params = {};
      params.bgcolor = "#cbbb9d";
        params.menu = "false";
        params.scale = 'noScale';
        params.wmode = "opaque";
        params.allowfullscreen = "true";
        params.allowScriptAccess = "always";      
      
      
      /* FLASH VARS */
      var flashvars = {};
      
      /// if commented / delete these lines, the component will take the stage dimensions defined 
      /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
        flashvars.componentWidth = stageW;
      flashvars.componentHeight = stageH;
      
      /// path to the content folder(where the xml files, images or video are nested)
      /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")      
      flashvars.pathToFiles = "";
      
      // path to content XML
      flashvars.xmlPath = "/scripts/banner.xml";
      
      
      /** EMBED THE SWF**/
      swfobject.embedSWF("/images/preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "/scripts/expressInstall.swf", flashvars, params, attributes);
      
      
function init(){
        sfHover();
      }
      womAdd('init();');
      
/*gestion du menu déroulant - script Suckerfish Dropdowns (A List Apart) revu par pompage.net*/
/*imitation du fonctionnement de la pseudo class :hover sur les éléments de liste (<li>)*/
sfHover = function() {
	if(document.getElementById("nested")){
		var sfEls = document.getElementById("nested").getElementsByTagName("LI");
		if(sfEls){
			for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				}
			}
		}
	}
}

