
// Custom Code

var webroot = "";
var baseroot = "";
var path = location.pathname;
var proto = location.protocol;
var host = location.host;
var re = /\/markets\/.*/;
if (re.test(path)) {
	path = path.replace(/\/markets\/.*/, '');
	webroot = proto + "//" + host + path;
	baseroot = path;
}


//DOM Code

var isDHTML = 0;
var isLayers = 0;
var isAll = 0;
var isID = 0;

if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
else {
if (document.all) {isAll = 1; isDHTML = 1;}
}}

function setVisibility(objectID, visible) 
{
		if (isID) 
		{ 
			document.getElementById(objectID).style.visibility = visible ? "visible" : "hidden"; 
		}
		else 
		{ 
			if (isAll) 
			{ 
				document.all[objectID].style.visibility = visible ? "visible" : "hidden";
			}
			else 
			{
				//if (isLayers) 
				//{ 
				//	if (visible)
				//		document.layers[objectID + "Layer"].visibility = "show";
				//	else
				//		document.layers[objectID + "Layer"].visibility = "hide"; 
				//}
			}
		}
}

// Required Menu Settings

DQM_sub_menu_width = 195      //default sub menu widths
DQM_sub_xy = "0,-1"            //default sub x,y coordinates

DQM_onload_code = "MM_preloadImages('" + webroot + "/images/nav/global_retail_pharmacies_over.gif','" + webroot + "/images/nav/global_health_systems_over.gif','" + webroot + "/images/nav/global_alternate_care_over.gif','" + webroot + "/images/newsbox/events_over.gif','" + webroot + "/images/newsbox/news_over.gif','" + webroot + "/images/nav/tool_print_over.gif','" + webroot + "/images/nav/tool_email_over.gif','" + webroot + "/images/nav/tool_contact_over.gif','" + webroot + "/images/nav/topnav_investors_over.gif','" + webroot + "/images/nav/topnav_suppliers_over.gif','" + webroot + "/images/nav/topnav_careers_over.gif','" + webroot + "/images/nav/topnav_contact_us_over.gif','" + webroot + "/images/nav/topnav_about_us_over.gif','" + webroot + "/images/nav/topnav_search_btn_over.gif','" + webroot + "/images/global/login_btn_over.gif')"
DQM_codebase = baseroot + "/inc/menu/"             //relative location of .js files
DQM_urltarget = "_self"       //set to: _self, _parent, _new, or "my frame name"

DQM_border_width = 1
DQM_divider_height = 1

DQM_border_color = "#FFFFFF"  //Hex color value or 'transparent'
DQM_menu_bgcolor = "#0C2D83"  //Hex color value or 'transparent'
DQM_hl_bgcolor = "#CC0033"    //Hex color value

DQM_mouse_off_delay = 10

DQM_os9_ie5mac_offset_X = 5
DQM_os9_ie5mac_offset_Y = 5

DQM_osx_ie5mac_offset_X = 5
DQM_osx_ie5mac_offset_Y = 5

DQM_ie4mac_offset_X = -8
DQM_ie4mac_offset_Y = -50

DQM_nn4_reaload_after_resize = false

DQM_nn4_resize_prompt_user = false
DQM_nn4_resize_prompt_message = "To reinitialize the navigation menu please click the 'Reload' button."

DQM_use_opera_div_detect_fix = true;

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

DQM_sub_menu_effect = "none"
DQM_sub_item_effect = "none"

DQM_sub_menu_effect_duration = .2
DQM_sub_item_effect_duration = .2

DQM_effect_pixelate_maxsqare = 1
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 = "UP"   //UP, DOWN, LEFT, RIGHT

DQM_sub_menu_opacity = 100

DQM_dropshadow_color = "none"                //Hex color value or 'none'

limit_multiple_users = true; // unlock key

// Font Settings (Required)

DQM_textcolor = "#FFFFFF"
DQM_fontfamily = "Arial, Helvetica, Sans-Serif"            //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' 	
DQM_hl_textcolor = "#FFFFFF"
DQM_hl_textdecoration = "none"   //set to: 'normal', or 'underline'

DQM_margin_top = 4
DQM_margin_bottom = 4
DQM_margin_left = 8
DQM_margin_right = 4

DQM_text_alignment = "left"           //set to: 'left', 'center' or 'right'

// Icon Definitions

//DQM_icon_image0 = "images/iconWebsite.gif"
//DQM_icon_rollover0 = "images/iconWebsite.gif"
//DQM_icon_image_wh0 = "14,12"

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

// -------- Menu Definitions --------- //


//DQM_showmenu_code5 = "setVisibility('countryWrapper', false);"
//DQM_hidemenu_code5 = "setVisibility('countryWrapper', true);"
	
										

// Supplier Information (0)

DQM_rollover_image0 = webroot + "/images/nav/sup/leftnav_supplier_information_over.gif"
DQM_rollover_wh0 = "164,24"
DQM_url0 = webroot + "/markets/suppliers/otc/hot_topics/index.jsp"

DQM_subdesc0_0 = "&raquo; Distribution Services"
DQM_url0_0 = webroot + "/markets/suppliers/otc/hot_topics/dist_serve/index.jsp"

DQM_subdesc0_1 = "&raquo; Communication Services"
DQM_url0_1 = webroot + "/markets/suppliers/otc/hot_topics/comm_service/index.jsp"

DQM_subdesc0_2 = "&raquo; Retail and Health Systems Marketing and Service Programs"
DQM_url0_2 = webroot + "/markets/suppliers/otc/hot_topics/market_service/index.jsp"

DQM_subdesc0_3 = "&raquo; AmerisourceBergen Specialty"
DQM_url0_3 = webroot + "/markets/suppliers/otc/hot_topics/specialty/index.jsp"


// Corporate Capabilities (1)

DQM_rollover_image1 = webroot + "/images/nav/sup/leftnav_capabilities_over.gif"
DQM_rollover_wh1 = "164,24"
DQM_url1 = webroot + "/markets/suppliers/other/capabilities.jsp"


// Services/Solutions (2)

DQM_rollover_image2 = webroot + "/images/nav/sup/leftnav_solutions_over.gif"
DQM_rollover_wh2 = "164,22"
DQM_url2 = webroot + "/markets/suppliers/other/solutions.jsp"


// Supplier Communications (3)

DQM_rollover_image3 = webroot + "/images/nav/sup/leftnav_communications_over.gif"
DQM_rollover_wh3 = "164,22"
DQM_url3 = webroot + "/markets/suppliers/other/communications.jsp"


// Suppier Action Items (4)

DQM_rollover_image4 = webroot + "/images/nav/sup/leftnav_action_items_over.gif"
DQM_rollover_wh4 = "164,22"
DQM_url4 = webroot + "/markets/suppliers/other/action_items.jsp"


// Meetings/Calendar (5)

DQM_rollover_image5 = webroot + "/images/nav/sup/leftnav_calendar_over.gif"
DQM_rollover_wh5 = "164,22"
DQM_url5 = webroot + "/markets/suppliers/other/calendar.jsp"


// Contact Us (6)

DQM_rollover_image6 = webroot + "/images/nav/sup/leftnav_contact_over.gif"
DQM_rollover_wh6 = "164,22"
DQM_url6 = webroot + "/markets/suppliers/other/contact.jsp"


