
//  QuickMenu Pro, Copyright (c) 1998 - 2003, OpenCube Inc. - http://www.opencube.com

/*******************************************
*				License						*
********************************************/
	limit_multiple_users = true;
	restrict_access = true;
	sequence = '9x44_5';
	
/*	Cache defiting */

function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return 'null';
}

function GetSession()
{
  var ses = "" + GetCookie("SessionInfo");


  if (ses != "" && ses != "null" && ses != null)
  {
	if (ses.indexOf("FURNITURESESSION") != -1)
	{
		var start = ses.indexOf("FURNITURESESSION") + 17;
			
		var end = ses.indexOf("&", start);	
		if (end == -1)
		{
			end = ses.length;
		}
		
		ses = ses.substring(start, end);
	}
	else
	{
		ses = "";
	}
  }
  else
  {
	ses = GetCookie("FURNITURESESSION");
  }

	return ses;
}


var ms = new Date().getMilliseconds();
var xs = "xs=" + ms + GetSession();

/*Use the showmenu_code parameter below to call the function which sets the visibility of the
  div to 'hidden' then use hidenmenu to set the visibility to 'visible'*/
  
var selectArray = new Array;
var frm = document.forms;
var typeStr,elm;


function hide_show_select(show)
{
	if (window.external)  //only if we are in IE
	{
		if (show)
		{	//hidden
			
			for (var i=0; i < frm.length; i++)
			{
				for (var j=0; j<frm[i].elements.length; j++){
					elm = document.forms[i].elements;
					typeStr = elm[j].type.toString();					
					if(typeStr.substring(0,6)=="select")
					{
						selectArray[selectArray.length]=elm[j];
					}
				}
			}			
			
			if (selectArray.length>0){
				for (var z=0; z<selectArray.length; z++){
					if(typeof selectArray[z].style != "undefined"){
						selectArray[z].style.visibility='hidden';
					}
				}
			}			
		}
		else
		{	// visible
			if (selectArray.length>0){
				for (var z=0; z<selectArray.length; z++){
					if(typeof selectArray[z].style!="undefined"){
						selectArray[z].style.visibility='visible';
					}
				}
			}
		}
	}
}




/*-------------------------------------------
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 = 1;
	dqm__divider_height = 1;

	dqm__border_color = "#999999"		//Hex color or 'transparent'
	dqm__menu_bgcolor = "#ffffff"		//Hex color or 'transparent'
	dqm__hl_bgcolor = "#e6e6e6"		

	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)


/*-------------------------------------------
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 = "#000000";
	dqm__hl_textdecoration = "underline"	//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   


/*-------------------------------------------
Bullet and Icon image library
--------------------------------------------*/

    //Relative positioned icon images (flow with sub item text)
	//dqm__icon_image0 = "";		//"sample_images/bullet.gif"
	//dqm__icon_rollover0 = "";		//"sample_images/bullet_hl.gif"
	//dqm__icon_image_wh0 = "";		//	"13,8"
	

    //Absolute positioned icon images (coordinate poitioned)
	dqm__2nd_icon_image0 = RemoteImageServerURL + "/Common/images/right-grey.gif";
	dqm__2nd_icon_rollover0 = RemoteImageServerURL + "/Common/images/right-black.gif";
	dqm__2nd_icon_image_wh0 = "5,9";
	dqm__2nd_icon_image_xy0 = "0,4";


/*---------------------------------------------
Optional Status Bar Text
-----------------------------------------------*/

	dqm__show_urls_statusbar = true;
   
	//dqm__status_text0 = "Sample text - Main Menu Item 0"
	//dqm__status_text1 = "Sample text - Main Menu Item 1"

	//dqm__status_text1_0 = "Sample text - Main Menu Item 1, Sub Item 0"	
	//dqm__status_text1_0 = "Sample text - Main Menu Item 1, Sub Item 1"	


/*-------------------------------------------
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__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."
	   

    //Opera 5 & 6, set to true if the menu is the only item on the HTML page.
	dqm__use_opera_div_detect_fix = true


    //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

