
 var x = 0;
 var y = 0;
 var ToolbarMenu = 'qm"+mindex+"';
 var IsMSMenu = false;
 
function hideElement(elmID)
{
 for (i = 0; i < document.all.tags(elmID).length; i++)
 {
  obj = document.all.tags(elmID)[i];
  if (! obj || ! obj.offsetParent)
   continue;
 
  // Find the element's offsetTop and offsetLeft relative to the BODY tag.
  objLeft   = obj.offsetLeft;
  objTop    = obj.offsetTop;
  objParent = obj.offsetParent;
  while (objParent.tagName.toUpperCase() != "BODY")
  {
   objLeft  += objParent.offsetLeft;
   objTop   += objParent.offsetTop;
   objParent = objParent.offsetParent;
  }
 
  // Adjust the element's offsetTop relative to the dropdown menu
  objTop = objTop - y;
 
  if (x > (objLeft + obj.offsetWidth) || objLeft > (x + ToolbarMenu.offsetWidth))
   ;
 else if (objTop > ToolbarMenu.offsetHeight)
  ;
  else if ((y + ToolbarMenu.offsetHeight) <= 80)
   ;
   else
   obj.style.visibility = "hidden";
 }
}
 
function showElement(elmID)
{
 for (i = 0; i < document.all.tags(elmID).length; i++)
 {
  obj = document.all.tags(elmID)[i];
  if (! obj || ! obj.offsetParent)
   continue;
  obj.style.visibility = "";
 }
}



/*-------------------------------------------
Colors, Borders, Dividers, and more...
--------------------------------------------*/


	dqm__sub_menu_width = 130      		//default sub menu widths
	dqm__sub_xy = "0,0"            		//default sub x,y coordinates - defined relative
						//to the top-left corner of parent image or sub menu
   

	dqm__urltarget = "_self"		//default URL target: _self, _parent, _new, or "my frame name"

	dqm__border_width = 0
	dqm__divider_height = 0


	dqm__border_color = "transparent"		//Hex color or 'transparent'
	dqm__menu_bgcolor = "#BCDFF2"		//Hex color or 'transparent'
	dqm__hl_bgcolor = "#EAF4F9"		

	dqm__mouse_off_delay = 150		//defined in milliseconds (activated after mouse stops)
	dqm__nn4_mouse_off_delay = 500		//defined in milliseconds (activated after leaving sub)


	dqm__menu_bgcolor = "#BCDFF2"
	dqm__hl_bgcolor = "#EAF4F9"



/*-------------------------------------------
Font settings and margins
--------------------------------------------*/
   

    //Font settings

	dqm__textcolor = "#000000"
	dqm__fontfamily = "Verdana"		//Any available system font     
	dqm__fontsize = 11			//Defined with pixel sizing  	
	dqm__fontsize_ie4 = 9			//Defined with point sizing
	dqm__textdecoration = "normal"		//set to: 'normal', or 'underline'
	dqm__fontweight = "normal"		//set to: 'normal', or 'bold'
	dqm__fontstyle = "normal"		//set to: 'normal', or 'italic' 	


    //Rollover font settings

	dqm__hl_textcolor = "#1C341C"
	dqm__hl_textdecoration = "none"	//set to: 'normal', or 'underline'



    //Margins and text alignment

	dqm__text_alignment = "left"		//set to: 'left', 'center' or 'right'
	dqm__margin_top = 2
	dqm__margin_bottom = 3
	dqm__margin_left = 5
	dqm__margin_right = 4

   



/*---------------------------------------------
Optional Status Bar Text
-----------------------------------------------*/

	dqm__show_urls_statusbar = false

/*-------------------------------------------
Internet Explorer Transition Effects
--------------------------------------------*/


    //Options include - none | fade | pixelate |iris | slide | gradientwipe | checkerboard | radialwipe | randombars | randomdissolve |stretch

	dqm__sub_menu_effect = "none"
	dqm__sub_item_effect = "none"


    //Define the effect duration in seconds below.
   
	dqm__sub_menu_effect_duration = .4
	dqm__sub_item_effect_duration = .4


    //Specific settings for various transitions.

	dqm__effect_pixelate_maxsqare = 25
	dqm__effect_iris_irisstyle = "CIRCLE"		//CROSS, CIRCLE, PLUS, SQUARE, or STAR
	dqm__effect_checkerboard_squaresx = 14
	dqm__effect_checkerboard_squaresY = 14
	dqm__effect_checkerboard_direction = "RIGHT"	//UP, DOWN, LEFT, RIGHT


    //Opacity and drop shadows.

	dqm__sub_menu_opacity = 100			//1 to 100
	dqm__dropshadow_color = "none"			//Hex color value or 'none'
	dqm__dropshadow_offx = 5			//drop shadow width
	dqm__dropshadow_offy = 5			//drop shadow height



/*-------------------------------------------
Browser Bug fixes and Workarounds
--------------------------------------------*/


    //Mac offset fixes, adjust until sub menus position correctly.
   
	dqm__os9_ie5mac_offset_X = 10
	dqm__os9_ie5mac_offset_Y = 15

	dqm__osx_ie5mac_offset_X = 0
	dqm__osx_ie5mac_offset_Y = 0

	dqm__ie4mac_offset_X = -8
	dqm__ie4mac_offset_Y = -50


    //Netscape 4 resize bug workaround.

	dqm__nn4_reaload_after_resize = true
	dqm__nn4_resize_prompt_user = false
	dqm__nn4_resize_prompt_message = "To reinitialize the navigation menu please click the 'Reload' button."
   

    //Set to true if the menu is the only item on the HTML page.

	dqm__use_opera_div_detect_fix = false


    //Pre-defined sub menu item heights for the Espial Escape browser.

	dqm__escape_item_height = 20
	dqm__escape_item_height0_0 = 70
	dqm__escape_item_height0_1 = 70


/*---------------------------------------------
Exposed menu events
----------------------------------------------*/





	//Sub Menu 0 inizio non usato
	
	ind_ice1 = 0;
	ind_ice2 = 0;
   
	eval('dqm__sub_xy' + ind_ice1 + ' = "0,0"');
	eval('dqm__sub_menu_width' + ind_ice1 + '= 0');

	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = " "');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/pagina.html"');
	
	//Sub Menu 0 fine
	
	//Sub Menu 1 inizio 
	
	ind_ice1 = 1;
	ind_ice2 = 0;
   
	eval('dqm__sub_xy' + ind_ice1 + ' = "-60,23"');
	eval('dqm__sub_menu_width' + ind_ice1 + '= 130');
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "identity and assets"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/azienda.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "advantages"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/vantaggi1.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "key figures"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/figure2.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "financial numbers"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/indicatori.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "shareholders"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/azionisti.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "history"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/storia.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "where we are"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/dove.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "contact us"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/contatti.html"');
	
	//Sub Menu 1 fine

	//Sub Menu 2 inizio 
	
	ind_ice1 = 2;
	ind_ice2 = 0;
   
	eval('dqm__sub_xy' + ind_ice1 + ' = "-62,23"');
	eval('dqm__sub_menu_width' + ind_ice1 + '= 160');
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "continuous innovation"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/ricerca1.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "specialistic skill"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/competenza.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "scientific surveys"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/indagini.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "today let\'s talk about"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/rubrica_01.html"');
	//Sub Menu 2 fine 
	
	//Sub Menu 3 inizio 
	
	ind_ice1 = 3;
	ind_ice2 = 0;
   
	eval('dqm__sub_xy' + ind_ice1 + ' = "-71,23"');
	eval('dqm__sub_menu_width' + ind_ice1 + '= 125');
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "productive capacity"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/produzione.html"');
		
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "environmental hygiene"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/igiene.html"');
		
	ind_ice2++;
		
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "purifying system"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/acqua.html"');

	ind_ice2++;
		
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "quantitative data"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/dati.html"');


	//Sub Menu 3 fine
		
	//Sub Menu 4 inizio 
	
	ind_ice1 = 4;
	ind_ice2 = 0;
   
	eval('dqm__sub_xy' + ind_ice1 + ' = "-49,23"');
	eval('dqm__sub_menu_width' + ind_ice1 + '= 175');
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "quality assurance"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/qualita.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "certifications"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/certificazioni.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "health and the environment"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/ambiente.html"');
	
	//Sub Menu 4 fine
	
	//Sub Menu 5 inizio 
	
	ind_ice1 = 5;
	ind_ice2 = 0;
   
	eval('dqm__sub_xy' + ind_ice1 + ' = "-53,23"');
	eval('dqm__sub_menu_width' + ind_ice1 + '= 130');
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "full partnership"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/servizi.html"');

	//ind_ice2++;
	
	//eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "non proprio..."');
	//eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/non_proprio.html"');

	//ind_ice2++;
	
	
	//Sub Menu 5 fine
	ind_ice1 = 6;
	ind_ice2 = 0;
   
	eval('dqm__sub_xy' + ind_ice1 + ' = "-61,23"');
	eval('dqm__sub_menu_width' + ind_ice1 + '= 150');
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "set"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/gamma.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "cosmetics"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/cosmetica_demo.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "dietary products"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/dietetica.html"');
	
	ind_ice2++;
	
	eval('dqm__subdesc' + ind_ice1 + '_' + ind_ice2 + ' = "private label"');
	eval('dqm__url' + ind_ice1 + '_' + ind_ice2 + ' = "' + external_path + script_name + '/priv_labels_demo.html"');

	
	//Sub Menu 6 fine


