/*
	Company:	SIFFM
	Author:		QuickMenu Pro, Copyright (c) 1998 - 2003
	Product:	OpenCube Inc. - http://www.opencube.com
	Comment:	Javascript custom settings for the dropdown menu
	Parameters:
	
	----------
	Change History:
	
*/
  
/*-------------------------------------------
Custom Settings...
--------------------------------------------*/

	//Menu color and border
	dqm__border_color = "#9E0313"
	dqm__menu_bgcolor = "#eaebed"
	dqm__hl_bgcolor = "#eaebed"
	dqm__border_width = 1
	dqm__divider_height = 0
	
    //Font settings
	dqm__textcolor = "#434755"
	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 = "#9E0313"
	dqm__hl_textdecoration = "underline"		//set to: 'normal', or 'underline'

    //Relative positioned icon images (flow with sub item text)
	dqm__icon_image0 = "/tds_images/bullet_n.gif"
	dqm__icon_rollover0 = "/tds_images/bullet_h.gif"
	dqm__icon_image_wh0 = "13,8"

    //Absolute positioned icon images (coordinate poitioned)
	dqm__2nd_icon_image0 = "/tds_images/arrow_n.gif"
	dqm__2nd_icon_rollover0 = "/tds_images/arrow_h.gif"
	dqm__2nd_icon_image_wh0 = "13,10"
	dqm__2nd_icon_image_xy0 = "0,4"

    //Opacity and drop shadows.
	dqm__sub_menu_opacity = 100					//1 to 100
	dqm__dropshadow_color = "#9E0313"			//Hex color value or 'none'
	dqm__dropshadow_offx = 1					//drop shadow width
	dqm__dropshadow_offy = 1					//drop shadow height


/*-------------------------------------------
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__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
--------------------------------------------*/

    //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 = true

/*-------------------------------------------
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 = .5
	dqm__sub_item_effect_duration = .4

    //Specific settings for various transitions.
	dqm__effect_pixelate_maxsqare = 25
	dqm__effect_iris_irisstyle = "STAR"				//CROSS, CIRCLE, PLUS, SQUARE, or STAR
	dqm__effect_checkerboard_squaresx = 14
	dqm__effect_checkerboard_squaresY = 14
	dqm__effect_checkerboard_direction = "DOWN"		//UP, DOWN, LEFT, RIGHT

/*-------------------------------------------
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

/**********************************************************************************************
**********************************************************************************************

                           Custom Functions when menu is activated

**********************************************************************************************
**********************************************************************************************/

var hideitems = false;
var hidedivs = false;


function hideall(img,isrc)
{
	var el;
	
	if (document.all)
		el = document.all[img];
	else
		el = document.getElementById(img);
		
	el.src = isrc;
		
	if (hideitems)
	{
		for (x=0;x<hideitem.length;x++)
		{
			obj = document.frmData[hideitem[x]];
			obj.style.visibility = 'hidden';
		}
	}
		
	if (hidedivs)
	{
		for (x=0;x<hidediv.length;x++)
		{
			if (document.all)
				ap = document.all[hidediv[x]];
			else
				ap = document.getElementById(hidediv[x]);
		
			ap.style.visibility = 'hidden';
		}
	}
}

function showall(img,isrc)
{
	var el;
	
	if (document.all)
		el = document.all[img];
	else
		el = document.getElementById(img);
		
	el.src = isrc;
	
	if (hideitems)
	{
		for (x=0;x<hideitem.length;x++)
		{
			obj = document.frmData[hideitem[x]];
			obj.style.visibility = 'visible';
		}
	}
		
	if (hidedivs)
	{
		for (x=0;x<hidediv.length;x++)
		{
			if (document.all)
				ap = document.all[hidediv[x]];
			else
				ap = document.getElementById(hidediv[x]);
		
			ap.style.visibility = 'visible';
		}
	}
}

