<?php
header("Content-Type: text/plain");
include('../inc/vars.php');
include('/util/phplib/tbd_helpers.php');
?>/*-------------------------------------------
Choice One OnLine's Registration Code
-------------------------------------------*/
limit_multiple_users = true
sequence = "9x88_4"

/*-------------------------------------------
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 = "#8E8E8E"		//Hex color or 'transparent'
	dqm__menu_bgcolor = "#D3D3D3"		//Hex color or 'transparent'
	dqm__hl_bgcolor = "#010101"

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


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


    //Font settings

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


    //Rollover font settings

	dqm__hl_textcolor = "#FFFFFF"
	dqm__hl_textdecoration = "normal"	//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 - Unlimited bullet
or icon images may be defined below and then associated
with any sub menu items within the 'Sub Menu Structure
and Text' section of this data file.
--------------------------------------------*/


    //Relative positioned icon images (flow with sub item text)

	dqm__icon_image0 = jsImage + "sample_images/bullet.gif"
	dqm__icon_rollover0 = jsImage + "sample_images/bullet_hl.gif"
	dqm__icon_image_wh0 = "13,8"



    //Absolute positioned icon images (coordinate poitioned)

	dqm__2nd_icon_image0 = jsImage + "sample_images/arrow.gif"
	dqm__2nd_icon_rollover0 = jsImage + "sample_images/arrow.gif"
	dqm__2nd_icon_image_wh0 = "13,10"
	dqm__2nd_icon_image_xy0 = "0,4"



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

	dqm__show_urls_statusbar = false

	//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 = .1
	dqm__sub_item_effect_duration = .1


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


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


    //Reference additional onload statements here.


		//dqm__onload_code = ""

    //The 'X' indicates the index number of the sub menu group or item.
    //The 'X_X' indicates the index number of the sub menu item.

	dqm__showmenu_codeX = "status = 'custom show menu function call - menu0'"
	dqm__hidemenu_codeX = "status = 'custom hide menu function call - menu0'"
	dqm__clickitem_codeX_X = "alert('custom Function - Menu Item 0_0')"



/*---------------------------------------------
Specific Sub Menu Settings
----------------------------------------------*/


    //The following settings may be defined for specific sub menu groups.
    //The 'X' represents the index number of the sub menu group.

	dqm__border_widthX = 10;
	dqm__divider_heightX = 5;
	dqm__border_colorX = "#0000ff";
	dqm__menu_bgcolorX = "#ff0000"
	dqm__hl_bgcolorX = "#00ff00"
	dqm__hl_textcolorX = "#ff0000"
	dqm__text_alignmentX = "left"


    //The following settings may be defined for specific sub menu items.
    //The 'X_X' represents the index number of the sub menu item.

	dqm__hl_subdescX_X = "custom highlight text"
	dqm__urltargetX_X = "_new"

/*---------------------------------------------
Top Level Mouseover Buttons
----------------------------------------------*/

	dqm__rollover_image0 = navImage + "nav_products_on.gif"
	dqm__rollover_wh0 = "108,26"
	dqm__url0 = "<?php echo(getLink(2));?>";

	dqm__rollover_image1 = navImage + "nav_how_to_buy_on.gif"
	dqm__rollover_wh1 = "118,26"
	dqm__url1 = "<?php echo(getLink(3));?>";

	dqm__rollover_image2 = navImage + "nav_lifestyle_on.gif"
	dqm__rollover_wh2 = "88,26"
	dqm__url2 = "<?php echo(getLink(4));?>";

	dqm__rollover_image3 = navImage + "nav_about_on.gif"
	dqm__rollover_wh3 = "110,26"
	dqm__url3 = "<?php echo(getLink(5));?>";

	dqm__rollover_image4 = navImage + "nav_feature_on.gif"
	dqm__rollover_wh4 = "156,26"
	dqm__url4 = "<?php echo(getLink(6));?>";

	dqm__rollover_image5 = navImage + "nav_support_on.gif"
	dqm__rollover_wh5 = "87,26"
	dqm__url5 = "<?php echo(getLink(7));?>";

	dqm__rollover_image6 = navImage + "nav_contact_on.gif"
	dqm__rollover_wh6 = "103,26"
	dqm__url6 = "<?php echo(getLink(8));?>";


/*---------------------------------------------
Second Level Drop Down Buttons
----------------------------------------------*/
<?php
function subs($parent, $DQM) {
	$linksQuery = "select pageID, title from pages where parent='$parent' and parent > 1 and link='1' and live='1' and active='1' order by nOrder, pageID";
	$linksResults = mysql_query($linksQuery);
	if ($links = mysql_fetch_array($linksResults)) {
		$i=0;

		do {
			echo("dqm__subdesc" . $DQM . "_" . $i . " = \"" . str_replace('"', '\"', stripslashes($links['title'])) . "\";\n\t");
			echo("dqm__url" . $DQM . "_" . $i . " = \"" . getLink($links['pageID']) . "\";\n\t");

			// third level navigation
			$j = 0;
			$cSQL = "select pageID, title, parent from pages where parent='{$links['pageID']}' and parent > 1 and link='1' and live='1' and active='1' order by nOrder, pageID";
			$oResult = mysql_query($cSQL);
			while ($rsData = mysql_fetch_array($oResult)) {
				echo("\tdqm__subdesc" . $DQM . "_" . $i . "_" . $j . " = \"" . str_replace('"', '\"', stripslashes($rsData['title'])) . "\";\n\t");
				echo("\tdqm__url" . $DQM . "_" . $i . "_" . $j . " = \"" . getLink($rsData['pageID']) . "\";\n\t");

				// fourth level navigation
				$k = 0;
				$cSQL = "select pageID, title from pages where parent='{$rsData['pageID']}' and parent > 1 and link='1' and live='1' and active='1' order by nOrder, pageID";
				$oResult2 = mysql_query($cSQL);
				while ($rsData2 = mysql_fetch_array($oResult2)) {
					echo("\tdqm__subdesc" . $DQM . "_" . $i . "_" . $j . "_" . $k . " = \"" . str_replace('"', '\"', stripslashes($rsData2['title'])) . "\";\n\t");
					echo("\tdqm__url" . $DQM . "_" . $i . "_" . $j . "_" . $k . " = \"" . getLink($rsData2['pageID']) . "\";\n\t");
					$k++;
				}

				$j++;
			}

			$i++;
		} while($links = mysql_fetch_array($linksResults));
	}
} // ends function function subs($parent, $DQM)
?>

/*---------------------------------------------
Top Level Subnav
function usage: subs(parent ID, menu ID)
----------------------------------------------*/

	dqm__sub_xy0 = "-108,26";
	dqm__sub_menu_width0 = 150;
	<?php subs(2, 0); ?>

	dqm__sub_xy1 = "-118,26";
	dqm__sub_menu_width1 = 150;
	<?php subs(3, 1); ?>

	dqm__sub_xy2 = "-88,26";
	dqm__sub_menu_width2 = 150;
	<?php subs(4, 2); ?>

	dqm__sub_xy3 = "-110,26";
	dqm__sub_menu_width3 = 150;
	<?php subs(5, 3); ?>

	dqm__sub_xy4 = "-156,26";
	dqm__sub_menu_width4 = 150;
	<?php subs(6, 4); ?>

	dqm__sub_xy5 = "-87,26";
	dqm__sub_menu_width5 = 150;
	<?php subs(7, 5); ?>

	dqm__sub_xy6 = "-103,26";
	dqm__sub_menu_width6 = 150;
	<?php subs(8, 6); ?>
