/*
   Deluxe Menu Data File
   Created by Deluxe Tuner v3.2
   http://deluxe-menu.com
*/


// -- Deluxe Tuner Style Names
var itemStylesNames = [];
var menuStylesNames = [ "subproducts", "Top Menu", "Sub Menu", ];
// -- End of Deluxe Tuner Style Names

//--- Common
var isHorizontal = 1;
var smColumns = 1;
var smOrientation = 0;
var dmRTL = 0;
var pressedItem = -1;
var itemCursor = "pointer";
var itemTarget = "_self";
var statusString = "link";
var blankImage = "";
var pathPrefix_img = "/menus/";
var pathPrefix_link = "";

//--- Dimensions
var menuWidth = "473px";
var menuHeight = "36px";
var smWidth = "";
var smHeight = "";

//--- Positioning
var absolutePos = 0;
var posX = "0px";
var posY = "0px";
var topDX = 0;
var topDY = 0;
var DX = 0;
var DY = -4;
var subMenuAlign = "left";
var subMenuVAlign = "top";

//--- Font
var fontStyle = [ "", "" ];
var fontColor = [ "", "" ];
var fontDecoration = [ "none", "none" ];
var fontColorDisabled = "#AAAAAA";

//--- Appearance
var menuBackColor = "#FFFFFF";
var menuBackImage = "topnav.files/nvback2.gif";
var menuBackRepeat = "no-repeat";
var menuBorderColor = "";
var menuBorderWidth = 0;
var menuBorderStyle = "none";

//--- Item Appearance
var itemBackColor = [ "#FFFFFF", "#4792E6" ];
var itemBackImage = [ "", "" ];
var beforeItemImage = [ "", "" ];
var afterItemImage = [ "", "" ];
var beforeItemImageW = "";
var afterItemImageW = "";
var beforeItemImageH = "";
var afterItemImageH = "";
var itemBorderWidth = 1;
var itemBorderColor = [ "#007061", "#007061" ];
var itemBorderStyle = [ "none", "none" ];
var itemSpacing = 0;
var itemPadding = "3px";
var itemAlignTop = "center";
var itemAlign = "left";

//--- Icons
var iconTopWidth = 24;
var iconTopHeight = 24;
var iconWidth = 16;
var iconHeight = 16;
var arrowWidth = 8;
var arrowHeight = 10;
var arrowImageMain = [ "", "" ];
var arrowWidthSub = 0;
var arrowHeightSub = 0;
var arrowImageSub = [ "topnav.files/arrow.gif", "" ];

//--- Separators
var separatorImage = "";
var separatorWidth = "";
var separatorHeight = "";
var separatorAlignment = "left";
var separatorVImage = "";
var separatorVWidth = "";
var separatorVHeight = "";
var separatorPadding = "";

//--- Floatable Menu
var floatable = 0;
var floatIterations = 6;
var floatableX = 1;
var floatableY = 1;
var floatableDX = 15;
var floatableDY = 15;

//--- Movable Menu
var movable = 0;
var moveWidth = 12;
var moveHeight = 20;
var moveColor = "#AA0000";
var moveImage = "";
var moveCursor = "default";
var smMovable = 0;
var closeBtnW = 15;
var closeBtnH = 15;
var closeBtn = "";

//--- Transitional Effects & Filters
var transparency = "100";
var transition = 24;
var transOptions = "";
var transDuration = 100;
var transDuration2 = 100;
var shadowLen = 0;
var shadowColor = "#777777";
var shadowTop = 0;

//--- CSS Support (CSS-based Menu)
var cssStyle = 0;
var cssSubmenu = "";
var cssItem = [ "", "" ];
var cssItemText = [ "", "" ];

//--- Advanced
var dmObjectsCheck = 0;
var saveNavigationPath = 1;
var showByClick = 0;
var noWrap = 1;
var smShowPause = 100;
var smHidePause = 500;
var smSmartScroll = 1;
var topSmartScroll = 0;
var smHideOnClick = 1;
var dm_writeAll = 1;
var useIFRAME = 1;
var dmSearch = 0;

//--- AJAX-like Technology
var dmAJAX = 0;
var dmAJAXCount = 0;
var ajaxReload = 0;

//--- Dynamic Menu
var dynamic = 0;

//--- Popup Menu
var popupMode = 0;

//--- Keystrokes Support
var keystrokes = 0;
var dm_focus = 1;
var dm_actKey = 113;

//--- Sound
var onOverSnd = "";
var onClickSnd = "";

//--- MENU ON-STATE START
//--- AMICA CUSTOM CODE
var str_out = "";
var str_in = location.href;
str_in_len = str_in.length;
var hst = location.hostname;
hst = 'http://' + hst + '/';
hst_len = hst.length;
for (i = 0; i < str_in.length; i++) {
	str_out += str_in.charAt(i);
}
// URL string excluding the host machine variable
var strUrl = (str_out.substr(hst_len, str_in_len).toUpperCase());
var strSection = new Array();
strSection = strUrl.split('/');


// Put top nav images into array
var topNavImages = Array();

topNavImages["products_on"] = "topnav.files/bk_products_on.gif";
topNavImages["products_off"] = "topnav.files/bk_products.gif";

topNavImages["claimcenter_on"] = "topnav.files/bk_claimcenter_on.gif";
topNavImages["claimcenter_off"] = "topnav.files/bk_claimcenter.gif";

topNavImages["custservice_on"] = "topnav.files/bk_custservice_on.gif";
topNavImages["custservice_off"] = "topnav.files/bk_custservice.gif";

topNavImages["aboutus_on"] = "topnav.files/bk_aboutus_on.gif";
topNavImages["aboutus_off"] = "topnav.files/bk_aboutus.gif";

// Determine on/off images based on section directory location
switch (strSection[0])
{
	case "PRODUCTS":
		var tmp = topNavImages["products_on"];
		topNavImages["products_on"] = topNavImages["products_off"];
		topNavImages["products_off"] = tmp;
		break
	case "CLAIM_CENTER":
		var tmp = topNavImages["claimcenter_on"];
		topNavImages["claimcenter_on"] = topNavImages["claimcenter_off"];
		topNavImages["claimcenter_off"] = tmp;
		break
	case "CLAIMSONLINE":
		var tmp = topNavImages["claimcenter_on"];
		topNavImages["claimcenter_on"] = topNavImages["claimcenter_off"];
		topNavImages["claimcenter_off"] = tmp;
		break
	case "CUSTOMER_SERVICE":
		var tmp = topNavImages["custservice_on"];
		topNavImages["custservice_on"] = topNavImages["custservice_off"];
		topNavImages["custservice_off"] = tmp;
		break
	case "ABOUT_US":
		var tmp = topNavImages["aboutus_on"];
		topNavImages["aboutus_on"] = topNavImages["aboutus_off"];
		topNavImages["aboutus_off"] = tmp;
		break
	case "STORMCENTER":
		var tmp = topNavImages["claimcenter_on"];
		topNavImages["claimcenter_on"] = topNavImages["claimcenter_off"];
		topNavImages["claimcenter_off"] = tmp;
		break
}

// Set item styles based on on/off images above 
var itemStyles = [
    ["itemWidth=96px","itemHeight=36px","itemBackImage=" + topNavImages["products_off"] + "," + topNavImages["products_on"],"itemBorderStyle=none,","fontStyle=bold 14px Arial","fontColor=#FFFFFF,"],
        [ "itemWidth=124px", "itemHeight=36px", "itemBackImage=" + topNavImages["claimcenter_off"] + "," + topNavImages["claimcenter_on"], "fontStyle=bold 14px Arial", "fontColor=#FFFFFF," ],
        [ "itemWidth=149px", "itemHeight=36px", "itemBackImage=" + topNavImages["custservice_off"] + "," + topNavImages["custservice_on"], "fontStyle=bold 14px Arial", "fontColor=#FFFFFF," ],
        [ "itemWidth=104px", "itemHeight=36px", "itemBackImage=" + topNavImages["aboutus_off"] + "," + topNavImages["aboutus_on"], "fontStyle=bold 14px Arial", "fontColor=#FFFFFF," ],
        [ "itemBackColor=#FFFFFF,#EAF6F4", "itemBorderColor=#007061,", "fontStyle=normal 12px Arial", "fontColor=#333333," ],
    ["itemBackColor=#FFFFFF,#EAF6F4","itemBorderColor=#007061,","fontStyle=normal 12px Arial","fontColor=#333333,"],
];

//--- MENU ON-STATE END


var menuStyles = [
    ["menuBorderWidth=2","menuBorderStyle=double","menuBorderColor=#007061","itemPadding=2px"],
        [ "menuBackColor=#FFFFFF", "menuBorderWidth=0", "menuBorderStyle=solid", "menuBorderColor=#007061" ],
    ["menuBorderWidth=4","menuBorderStyle=solid","menuBorderColor=#007061","itemPadding=5px","CSS=,"],
];

var menuItems = [

    ["Products","/products/products.html", "", "", "", "", "0", "-1", "", "", "", ],
        ["|Auto Insurance","/products/productsAuto.html", "", "", "", "", "4", "2", "", "", "", ],
		["|Home Insurance","/products/productsHome.html", "", "", "", "", "4", "", "", "", "", ],
  		["|Life Insurance","/products/productslife.html", "", "", "", "", "4", "", "", "", "", ],
  		["|Coverage by State","/products/products.html", "", "", "", "", "4", "", "", "", "", ],
    ["Claim Center","/claim_center/claimCenter.html", "", "", "", "", "1", "", "", "", "", ],
        [ "|Your Claim Center", "javascript:Director.directRequest('ClaimCenter');", "", "", "", "", "4", "2", "", "", "", ],
        [ "|Report a Claim", "/claim_center/report_a_claim.html", "", "", "", "", "4", "2", "", "", "", ],
        [ "|Prompt Payments", "/claim_center/promptPayments.html", "", "", "", "", "4", "-1", "", "", "", ],
        ["|Amica Storm Center","/stormcenter/amicaStormCenter.html", "", "", "", "", "4", "", "", "", "", ],
        ["|Repair Assistance Programs","", "", "", "", "", "4", "", "", "", "", ],
        [ "||Auto Repair Assist Program", "/claim_center/repairAssistanceAuto.html", "", "", "", "", "5", "2", "", "", "", ],
        [ "||Home Repair Assist Program", "/claim_center/repairAssistanceHome.html", "", "", "", "", "5", "2", "", "", "", ],
        ["|What to do After a loss","", "", "", "", "", "4", "-1", "", "", "", ],
            ["||Auto","/customer_service/accidentChecklist.html", "", "", "", "", "5", "2", "", "", "", ],
            ["||Home","/claim_center/whatToDoHome.html", "", "", "", "", "5", "", "", "", "", ],
            ["||Life","/claim_center/whatToDoLife.html", "", "", "", "", "5", "", "", "", "", ],
        ["|Insurance Fraud","", "", "", "", "", "4", "-1", "", "", "", ],
            ["||Report Fraud Online","javascript:Director.directRequest('Fraud');", "", "", "", "", "5", "2", "", "", "", ],
            ["||Fighting Fraud for You","/claim_center/fightingFraud.html", "", "", "", "", "5", "", "", "", "", ],
        ["|Frequent Questions","/claim_center/FAQLanding.html", "", "", "", "", "4", "-1", "", "", "", ],
        [ "Customer Service", "/customer_service/customerService.html", "", "", "", "", "2", "", "", "", "", ],
        [ "|Customer Service - Home", "/customer_service/customerService.html", "", "", "", "", "4", "2", "", "", "", ],
        [ "|Manage Your Account", "javascript:submitForms(document.globalLogin);", "", "", "", "", "4", "2", "", "", "", ],
        [ "|Billing and Payment Options", "/customer_service/billingOptions.html", "", "", "", "", "4", "2", "", "", "", ],
        [ "|Learning Center", "/customer_service/learningCenter.html", "", "", "", "", "4", "2", "", "", "", ],
        ["|Help","/customer_service/help.html", "", "", "", "", "4", "2", "", "", "", ],
    ["About Us","/about_us/aboutUs.html", "", "", "", "", "3", "", "", "", "", ],
        [ "|About Us - Home", "/about_us/aboutUs.html", "", "", "", "", "4", "2", "", "", "", ],
        [ "|Our Quality Service", "/about_us/quality_service/qualityService.html", "", "", "", "", "4", "-1", "", "", "", ],
        [ "|Mission Statement", "/about_us/amica_advantage/missionStatement.html", "", "", "", "", "4", "-1", "", "", "", ],
        [ "|Customer Testimonials", "http://amicaconnections.com/#ads_and_stories", "", "", "", "_blank", "4", "-1", "", "", "", ],
        ["|Awards & Recognition","/about_us/awards/awards.html", "", "", "", "", "4", "-1", "", "", "", ],
        ["|Careers","/about_us/careers/default.html", "", "", "", "", "4", "-1", "", "", "", ],
        [ "|Find an Office", "/Amica/Contact/InPerson.jsp?tab=4", "", "", "", "", "4", "-1", "", "", "", ],
        [ "|In Your Community", "/about_us/in_your_community/events.html", "", "", "", "", "4", "-1", "", "", "", ],
        [ "|News You Can Use", "/about_us/news_media/newsMedia.html", "", "", "", "", "4", "-1", "", "", "", ],
        [ "|Contact Us", "javascript:Director.directRequest('ContactUs');", "", "", "", "", "4", "-1", "", "", "", ],
        ["|Licensing Information","/about_us/licensing_info/licenseInfo.html", "", "", "", "", "4", "-1", "", "", "", ],
];

dm_init();
