

function PopMenuStyler(PopmenuResPath) {	

	this.pms_theme = 0;
	this.pms_skin  = 0;
	this.pms_skin_name  = 'red';
	this.pms_isHorizontal = 1;

	this.pms_couleurchampnormal      = '#D8EBFC'; 
	this.pms_couleurchampobligatoire = '#C7E1FC'; 
	this.pms_couleurchamperreur      = '#9CCCF8'; 
	this.pms_couleurtitre            = '#146DB6'; 
	this.pms_couleurfond             = '#F7FBFF'; 
	this.pms_skin_name  = 'red';

	this.pms_absolutePos               = 0; 
	this.pms_AbsPx                     = '10px'; 
	this.pms_AbsPy                     = '10px'; 
	this.pms_Floatable                 = 0; 
	
	this.pms_smWidth   = '';
	


// INITIALISATION DU HASH VALEUR => "TEXTE"
	this.pms_output = function() {

		btn_police          = 'normal 11px Trebuchet MS, Tahoma';
		nom_on              = '';
		nom_off             = '';

		switch (this.pms_theme) {

		case 6 :
				btn_pms_theme       = 'vistabar_black';
				btn_color_text      = '#FFFFFF';
				btn_police          = 'normal 10px Tahoma';
				sub_color_bg_on     = this.pms_couleurchamperreur;
				sub_color_bg_off    = '#000000';
				sub_color_text_on   = '#000000';
				sub_color_text_off  = '#FFFFFF';
				break;

		case 7 :
				btn_pms_theme       = 'vistabar_black';
				btn_color_text      = '#FFFFFF';
				btn_police          = 'normal 10px Tahoma';
				sub_color_bg_on     = this.pms_couleurchampnormal;
				sub_color_bg_off    = '#000000';
				sub_color_text_on   = '#000000';
				sub_color_text_off  = '#FFFFFF';
				nom_on              = '_'+this.pms_skin_name;
				break;

		case 8 :
				btn_pms_theme       = 'vistabar_black';
				btn_color_text      = '#FFFFFF';
				btn_police          = 'normal 10px Tahoma';
				sub_color_bg_on     = this.pms_couleurchampobligatoire;
				sub_color_bg_off    = '#FFFFFF';
				sub_color_text_on   = '#000000';
				sub_color_text_off  = '#000000';
				nom_on              = '_'+this.pms_skin_name;
				break;

		case 9 :   // btn_vistabar_color_xxxx_off.gif
				btn_pms_theme       = 'vistabar_color';
				btn_color_text      = '#FFFFFF';
				btn_police          = 'normal 10px Tahoma';
				sub_color_bg_on     = this.pms_couleurchampobligatoire;
				sub_color_bg_off    = '#FFFFFF';
				sub_color_text_on   = '#000000';
				sub_color_text_off  = '#000000';
				nom_off  = nom_on   = '_'+this.pms_skin_name;
				break;


		default:
				alert('le style n'+this.pms_theme+' n\'est pas defini dans PopmenuStyler_bar.js');
				return;

		}
		if (this.pms_isHorizontal==1) {
			this.pms_arrow_main_off         = 'arrv_grey_1.gif'; 
			this.pms_arrow_main_on          = 'arrv_white_1.gif'; 
			this.pms_arrow_sub_off          = 'arr_grey_1.gif'; 
			this.pms_arrow_sub_on           = 'arrv_black_1a.gif'; 
		} else {
			this.pms_arrow_main_off         = 'arr_grey_1.gif'; 
			this.pms_arrow_main_on          = 'arr_white_1a.gif'; 
			this.pms_arrow_sub_off          = 'arr_black_1.gif'; 
			this.pms_arrow_sub_on           = 'arrv_black_1a.gif'; 
		}
		btn_on   = 'btn_'+btn_pms_theme+nom_on+'_on.gif';
		btn_off  = 'btn_'+btn_pms_theme+nom_off+'_off.gif';
		document.write('<script type=\"text/javascript\">' );

		// -- Deluxe Tuner Style Names
		document.write('var itemStylesNames=["Top Item",]; ');
		document.write('var menuStylesNames=["Top Menu",]; ');
		// -- End of Deluxe Tuner Style Names

		//--- Common
		document.write('var isHorizontal='+this.pms_isHorizontal+'; ');
		document.write('var smColumns=1; ');
		document.write('var smOrientation=0; ');
		document.write('var smViewType=0; ');
		document.write('var dmRTL=0; ');
		document.write('var pressedItem=-2; ');
		document.write('var itemCursor="default"; ');
		document.write('var itemTarget="_self"; ');
		document.write('var statusString="link"; ');
		document.write('var blankImage="'+PopmenuResPath+'blank.gif"; ' );
		document.write('var pathPrefix_img=""; ');
		document.write('var pathPrefix_link=""; ');

		//--- Dimensions
		document.write('var menuWidth=""; ');
		document.write('var menuHeight="22px"; ');
		document.write('var smWidth="'+this.pms_smWidth+'"; ');
		document.write('var smHeight=""; ');

		//--- Positioning
		document.write('var absolutePos='+this.pms_absolutePos+'; ');
		document.write('var posX="'+this.pms_AbsPx+'"; ');
		document.write('var posY="'+this.pms_AbsPy+'"; ');
		document.write('var topDX=0; ');
		document.write('var topDY=1; ');
		document.write('var DX=-16; ');
		document.write('var DY=20; ');
	
		//--- Font
		document.write('var fontStyle="'+btn_police+'"; ');
		document.write('var fontColor=["'+sub_color_text_off+'","'+sub_color_text_on+'"]; ');
		document.write('var fontDecoration=["none","none"]; ');
		document.write('var fontColorDisabled="#AAAAAA"; ');

		//--- Appearance
		document.write('var menuBackColor="'+sub_color_bg_off+'"; ');
		document.write('var menuBackImage=""; ');
		document.write('var menuBackRepeat="repeat"; ');
		document.write('var menuBorderColor="#575757"; ');
		document.write('var menuBorderWidth=1; ');
		document.write('var menuBorderStyle="solid"; ');

		//--- Item Appearance
		document.write('var itemBackColor=["'+sub_color_bg_off+'","'+sub_color_bg_on +'"]; ');
		document.write('var itemBackImage=["",""]; ');
		document.write('var itemBorderWidth=0; ');
		document.write('var itemBorderColor=["#FCEEB0","#4C99AB"]; ');
		document.write('var itemBorderStyle=["solid","solid"]; ');
		document.write('var itemSpacing=1; ');
		document.write('var itemPadding="2px 1px 2px 5px"; ');
		document.write('var itemAlignTop="left"; ')
		document.write('var itemAlign="left"; ');
		document.write('var subMenuAlign="left"; ');

		//--- Icons
		document.write('var iconTopWidth=16; ');
		document.write('var iconTopHeight=16; ');
		document.write('var iconWidth=16; ');
		document.write('var iconHeight=16; ');
		document.write('var arrowWidth=9; ');
		document.write('var arrowHeight=9; ');
		document.write('var arrowImageMain=["'+PopmenuResPath+this.pms_arrow_main_off+'","'+PopmenuResPath+this.pms_arrow_main_on+'"]; ');
		document.write('var arrowImageSub=["'+PopmenuResPath+this.pms_arrow_sub_off+'","'+PopmenuResPath+this.pms_arrow_sub_on+'"]; ');

		//--- Separators
		document.write('var separatorImage="'+PopmenuResPath+'sep_grey.gif"; ');
		document.write('var separatorWidth="100%"; ');
		document.write('var separatorHeight="1px"; ');
		document.write('var separatorAlignment="left"; ');
		document.write('var separatorVImage=""; ');
		document.write('var separatorVWidth="3px"; ');
		document.write('var separatorVHeight="100%"; ');
		document.write('var separatorPadding="0px"; ');

		//--- Floatable Menu
		document.write('var floatable='+this.pms_Floatable+'; ');
		document.write('var floatIterations=1; ');
		document.write('var floatableX=1; ');
		document.write('var floatableY=1; ');

		//--- Movable Menu
		document.write('var movable=0; ');
		document.write('var moveWidth=12; ');
		document.write('var moveHeight=20; ');
		document.write('var moveColor="#DECA9A"; ');
		document.write('var moveImage=""; ');
		document.write('var moveCursor="move"; ');
		document.write('var smMovable=0; ');
		document.write('var closeBtnW=15; ');
		document.write('var closeBtnH=15; ');
		document.write('var closeBtn=""; ');

		//--- Transitional Effects & Filters
		document.write('var transparency="100"; ');
		document.write('var transition=-1; ');
		document.write('var transOptions=""; ');
		document.write('var transDuration=0; ');
		document.write('var transDuration2=0; ');
		document.write('var shadowLen=4; ');
		document.write('var shadowColor="#B1B1B1"; ');
		document.write('var shadowTop=0; ');

		//--- CSS Support (CSS-based Menu)
		document.write('var cssStyle=0; ');
		document.write('var cssSubmenu=""; ');
		document.write('var cssItem=["",""]; ');
		document.write('var cssItemText=["",""]; ');

		//--- Advanced
		document.write('var dmObjectsCheck=0; ');
		document.write('var saveNavigationPath=1; ');
		document.write('var showByClick=0; ');
		document.write('var noWrap=1; ');
		document.write('var smShowPause=200; ');
		document.write('var smHidePause=1000; ');
		document.write('var smSmartScroll=1; ');
		document.write('var topSmartScroll=0; ');
		document.write('var smHideOnClick=1; ');
		document.write('var dm_writeAll=1; ');

		//--- AJAX-like Technology
		document.write('var dmAJAX=1; ');
		document.write('var dmAJAXCount=20; ');
	
		//--- Dynamic Menu
		document.write('var dynamic=0; ');
	
		//--- Keystrokes Support
		document.write('var keystrokes=0; ');
		document.write('var dm_focus=1; ');
		document.write('var dm_actKey=113; ');

		document.write('var itemStyles = [ ');
		document.write('["itemWidth=94px","itemBackColor=transparent,transparent","itemBorderWidth=0","fontStyle=bold 10px Tahoma","fontColor='+btn_color_text+','+btn_color_text+'","itemBackImage='+PopmenuResPath+btn_off+','+PopmenuResPath+btn_on+'"], ');
		document.write(']; ');

		document.write('var menuStyles = [ ');
		document.write('["menuBackColor=transparent","transition=-1","menuBorderWidth=0","itemSpacing=0","itemPadding=5px 6px 5px 6px"], ');

		document.write(']; ');


		document.write("</script>\n" );
		if (this.pms_toolbar) {
			document.write('<style type="text/css"> <!-- #classePopmenu_toolbar { ');
			document.write('width: 100%; height: 22px;	background-image: url('+PopmenuResPath+btn_off+'); ');
			document.write('background-repeat: repeat-x; background-position: top;');
			document.write('} --> </style>');
		}
	} // fin de fonction output
	
} // fin de classe  PopMenuStyler