function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
}

//--- Common
var isHorizontal=1;
var smColumns=1;
var smOrientation=0;
var smViewType=0;
var dmRTL=0;
var pressedItem = getQueryVariable("menuNo")-1 ;
var itemCursor="hand";
var itemTarget="_self";
var statusString="text";
var blankImage="images/blank.gif";

//--- Dimensions
var menuWidth="400px";
var menuHeight="";
var smWidth="";
var smHeight="";

//--- Positioning
var absolutePos = 0;
var posX = 20;
var posY = 100;

var topDX=0;
var topDY=1;
var DX=-5;
var DY=0;

//--- Font
var fontStyle="bold 8pt Arial";
var fontColor=["#FFFFFF","#FFFFFF"];
var fontDecoration=["none","none"];
var fontColorDisabled="#AAAAAA";

//--- Appearance
var menuBackImage="";
var menuBackColor="#FF7200";
var menuBorderColor="#000000";
var menuBorderStyle="solid";
var menuBorderWidth=0;
var shadowColor="#999999";
var shadowLen=0;
var menuWidth="993";

var menuBackRepeat="repeat";


//--- Item Appearance
var itemBackColor=["#000000","#B0B0B0"];
var itemBorderWidth=0;
var itemAlign="left";
var itemBorderColor=["#6655ff","#665500"];
var itemBorderStyle=["solid","solid"];
var itemBackImage=["",""];

var itemSpacing=3;
var itemPadding="2px";
var itemAlignTop="left";
var itemAlign="left";
var subMenuAlign="";

//--- Icons
var iconTopWidth  = 16;
var iconTopHeight = 16;
var iconWidth=16;
var iconHeight=16;
var arrowImageMain=["/images/topmenu/arrow_d.gif","/images/topmenu/arrow_d2.gif"];
var arrowImageSub=["/images/topmenu/arrow_r.gif","/images/topmenu/arrow_r2.gif"];
var arrowWidth=7;
var arrowHeight=7;
var itemSpacing=1;
var itemPadding=6;


//--- Separators

var separatorVImage="/v2/images/topmenu/separv1.gif";
var separatorVWidth="5";
var separatorVHeight="16";

var separatorImage="separ1.gif";
var separatorWidth="100%";
var separatorHeight="5";
var separatorAlignment="center";

var separatorVImage="/v2/images/topmenu/separv1.gif";
var separatorVWidth="5";
var separatorVHeight="16";

var separatorPadding="0px";

//--- Floatable Menu
var floatable=0;
var floatIterations=6;
var floatableX=1;
var floatableY=1;

//--- Movable Menu
var movable=0;
var moveWidth=12;
var moveHeight=20;
var moveColor="#DECA9A";
var moveImage="";
var moveCursor="move";
var smMovable=0;
var closeBtnW=15;
var closeBtnH=15;
var closeBtn="";


//--- Transitional Effects & Filters
var transparency=100;
var transition=24;
var transDuration=500;

var transOptions="";
var transDuration2=200;
var shadowLen=3;
var shadowColor="#B1B1B1";
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 pathPrefix_img="";
var pathPrefix_link="";
var smShowPause=200;
var smHidePause=1000;
var smSmartScroll=1;
var smHideOnClick=1;
var dm_writeAll=0;

//--- AJAX-like Technology
var dmAJAX=0;
var dmAJAXCount=0;

//--- Dynamic Menu
var dynamic=0;

//--- Keystrokes Support
var keystrokes=0;
var dm_focus=1;
var dm_actKey=113;

var key="159b1288e00tg"; 

var menuItems = [


["Home"],
["|Home","/default.asp?menuItemID=135&toplvlID=9&menuNo=1","","","","_self"],
["|Overview","/public/Article/show.asp?ArticleID=1007&menuItemID=144&toplvlID=9&menuNo=1","","","","_self"],
["|Direct Fixing Tools","/public/Article/show.asp?ArticleID=1008&menuItemID=149&toplvlID=9&menuNo=1","","","","_self"],
["|Power Tools","/public/Article/show.asp?ArticleID=1009&menuItemID=150&toplvlID=9&menuNo=1","","","","_self"],
["|Mechanical Anchoring","/public/Article/show.asp?ArticleID=1010&menuItemID=151&toplvlID=9&menuNo=1","","","","_self"],
["|Chemical Anchoring","/public/Article/show.asp?ArticleID=1011&menuItemID=152&toplvlID=9&menuNo=1","","","","_self"],
["|Construction Chemicals","/public/Article/show.asp?ArticleID=1012&menuItemID=153&toplvlID=9&menuNo=1","","","","_self"],
["|Trades"],
["||Plumbing","/public/Article/show.asp?Articleid=1054&menuItemID=204&toplvlID=9&menuNo=1","","","","_self"],
["||Fire and Security","/public/Article/show.asp?ArticleID=1052&menuItemID=202&toplvlID=9&menuNo=1","","","","_self"],
["||Electrical","/public/Article/show.asp?ArticleID=1213&menuItemID=277&toplvlID=9&menuNo=1","","","","_self"],
["|About Ramset","/public/Article/show.asp?ArticleID=1013&menuItemID=154&toplvlID=9&menuNo=1","","","","_self"],
["|Technical Information"],
["||Direct Fixing Tools","/public/resourceList.asp?category=Direct Fixing Tools&menuItemID=138&toplvlID=9&menuNo=1","","","","_self"],
["||Power Tools","/public/resourceList.asp?category=Power Tools&menuItemID=139&toplvlID=9&menuNo=1","","","","_self"],
["||Mechanical Anchoring","/public/resourceList.asp?category=Mechanical Anchoring&menuItemID=140&toplvlID=9&menuNo=1","","","","_self"],
["||Chemical Anchoring","/public/resourceList.asp?category=Chemical Anchoring&menuItemID=141&toplvlID=9&menuNo=1","","","","_self"],
["||Construction Chemicals","/public/resourceList.asp?category=Construction Chemicals&menuItemID=142&toplvlID=9&menuNo=1","","","","_self"],
["||MSDS ","/public/resourceList.asp?type=Material%20Safety%20Data%20Sheets&menuItemID=205&toplvlID=9&menuNo=1","","","","_self"],
["||Specifiers Resource Book","/public/article/show.asp?articleid=1221&menuItemID=206&toplvlID=9&menuNo=1","","","","_self"],
["|Careers","/public/Article/show.asp?Articleid=1000&menuItemID=119&toplvlID=9&menuNo=1","","","","_self"],
["Direct Fixing Tools"],
["|Overview","/public/article/show.asp?articleid=1008&menuItemID=92&toplvlID=6&menuNo=2","","","","_self"],
["|Powder Actuated"],
["||JobMaster","/public/Article/show.asp?ArticleID=1128&menuItemID=156&toplvlID=6&menuNo=2","","","","_self"],
["||FixMaster","/public/Article/show.asp?ArticleID=1122&menuItemID=157&toplvlID=6&menuNo=2","","","","_self"],
["||TyMaster","/public/Article/show.asp?ArticleID=1017&menuItemID=159&toplvlID=6&menuNo=2","","","","_self"],
["||FrameMaster","/public/Article/show.asp?ArticleID=1124&menuItemID=160&toplvlID=6&menuNo=2","","","","_self"],
["||FormMaster","/public/Article/show.asp?ArticleID=1123&menuItemID=161&toplvlID=6&menuNo=2","","","","_self"],
["||DekMaster","/public/Article/show.asp?ArticleID=1160&menuItemID=240&toplvlID=6&menuNo=2","","","","_self"],
["||SalvageMaster","/public/Article/show.asp?ArticleID=1161&menuItemID=241&toplvlID=6&menuNo=2","","","","_self"],
["||Safety Precautions","/public/article/show.asp?articleid=1137&menuItemID=222&toplvlID=6&menuNo=2","","","","_self"],
["||FrameBoss","/fileupload/pdfs/FrameBossA4Flyer.pdf?menuItemID=299&toplvlID=6&menuNo=2","","","","_blank"],
["|Gas Technology"],
["||TrakMaster","/public/Article/show.asp?ArticleID=1144&menuItemID=158&toplvlID=6&menuNo=2","","","","_self"],
["||Trakfast","/public/article/show.asp?articleid=1143&menuItemID=220&toplvlID=6&menuNo=2","","","","_self"],
["||CableMaster","/public/article/show.asp?articleid=1110&menuItemID=221&toplvlID=6&menuNo=2","","","","_self"],
["|Direct Fixing Tool Accessories","/public/Article/show.asp?ArticleID=1025&menuItemID=167&toplvlID=6&menuNo=2","","","","_self"],
["|Technical Information","/public/resourceList.asp?category=Direct Fixing Tools&menuItemID=49&toplvlID=6&menuNo=2","","","","_self"],
["Power Tools"],
["|Overview","/public/Article/show.asp?ArticleID=1009&menuItemID=165&toplvlID=5&menuNo=3","","","","_self"],
["|DynaDrill"],
["||Drilling","/public/article/show.asp?articleid=1196&menuItemID=59&toplvlID=5&menuNo=3","","","","_self"],
["||DD514","/public/Article/show.asp?ArticleID=1164&menuItemID=244&toplvlID=5&menuNo=3","","","","_self"],
["||DD526","/public/article/show.asp?articleid=1113&menuItemID=109&toplvlID=5&menuNo=3","","","","_self"],
["||DD527","/public/article/show.asp?articleid=1115&menuItemID=110&toplvlID=5&menuNo=3","","","","_self"],
["||DD528","/public/Article/show.asp?ArticleID=1162&menuItemID=242&toplvlID=5&menuNo=3","","","","_self"],
["||DD532","/public/article/show.asp?articleid=1116&menuItemID=111&toplvlID=5&menuNo=3","","","","_self"],
["||DD543","/public/article/show.asp?articleid=1117&menuItemID=112&toplvlID=5&menuNo=3","","","","_self"],
["||DD565","/public/article/show.asp?articleid=1118&menuItemID=224&toplvlID=5&menuNo=3","","","","_self"],
["||DD610","/public/article/show.asp?articleid=1223&menuItemID=296&toplvlID=5&menuNo=3","","","","_self"],
["||DD665","/public/article/show.asp?articleid=1218&menuItemID=291&toplvlID=5&menuNo=3","","","","_self"],
["||DD576","/public/Article/show.asp?ArticleID=1163&menuItemID=243&toplvlID=5&menuNo=3","","","","_self"],
["||CSD4000","/public/article/show.asp?articleid=1219&menuItemID=294&toplvlID=5&menuNo=3","","","","_self"],
["|Carbide","/public/Article/show.asp?ArticleID=1111&menuItemID=171&toplvlID=5&menuNo=3","","","","_self"],
["|Diamond Drilling"],
["||Diamond Drilling Introduction","/public/Article/show.asp?ArticleID=1170&menuItemID=250&toplvlID=5&menuNo=3","","","","_self"],
["||CDBR130-Rig","/public/article/show.asp?articleid=1149&menuItemID=226&toplvlID=5&menuNo=3","","","","_self"],
["||Wet and Dry Vacuum R1600-50C","/public/article/show.asp?articleid=1147&menuItemID=229&toplvlID=5&menuNo=3","","","","_self"],
["||RW150E","/public/Article/show.asp?ArticleID=1165&menuItemID=245&toplvlID=5&menuNo=3","","","","_self"],
["||SG125","/public/Article/show.asp?ArticleID=1166&menuItemID=246&toplvlID=5&menuNo=3","","","","_self"],
["||RG125","/public/Article/show.asp?ArticleID=1222&menuItemID=295&toplvlID=5&menuNo=3","","","","_self"],
["||RG230E","/public/Article/show.asp?ArticleID=1167&menuItemID=247&toplvlID=5&menuNo=3","","","","_self"],
["||RM200 Motor","/public/Article/show.asp?ArticleID=1168&menuItemID=248&toplvlID=5&menuNo=3","","","","_self"],
["||CDBR350 - Rig","/public/Article/show.asp?ArticleID=1169&menuItemID=249&toplvlID=5&menuNo=3","","","","_self"],
["||RM350 Motor","/public/Article/show.asp?ArticleID=1171&menuItemID=251&toplvlID=5&menuNo=3","","","","_self"],
["|Laser Levels"],
["||Laser RL150","/public/Article/show.asp?Articleid=1129&menuItemID=231&toplvlID=5&menuNo=3","","","","_self"],
["||RL5W 5 Way Laser","/public/Article/show.asp?Articleid=1135&menuItemID=232&toplvlID=5&menuNo=3","","","","_self"],
["||RLCB","/public/Article/show.asp?Articleid=1216&&menuItemID=289&toplvlID=5&menuNo=3","","","","_self"],
["||RLM50","/public/Article/show.asp?Articleid=1217&menuItemID=290&toplvlID=5&menuNo=3","","","","_self"],
["|18v Lithium-Ion Cordless Range","/public/article/show.asp?articleid=1233&menuItemID=298&toplvlID=5&menuNo=3","","","","_self"],
["|Technical Information","/public/resourceList.asp?category=Power Tools&menuItemID=58&toplvlID=5&menuNo=3","","","","_self"],
["Mechanical Anchoring"],
["|Overview","/public/Article/show.asp?ArticleID=1010&menuItemID=175&toplvlID=3&menuNo=4","","","","_self"],
["|Heavy Duty Anchors"],
["||Dynabolt™","/public/Article/show.asp?ArticleID=1120&menuItemID=176&toplvlID=3&menuNo=4","","","","_self"],
["||TruBolt ™","/public/Article/show.asp?ArticleID=1145&menuItemID=177&toplvlID=3&menuNo=4","","","","_self"],
["||SpaTec Plus ™","/public/Article/show.asp?ArticleID=1139&menuItemID=178&toplvlID=3&menuNo=4","","","","_self"],
["||Boa™ Coil","/public/Article/show.asp?ArticleID=1106&menuItemID=180&toplvlID=3&menuNo=4","","","","_self"],
["||AnkaScrew ™","/public/Article/show.asp?ArticleID=1105&menuItemID=181&toplvlID=3&menuNo=4","","","","_self"],
["|Medium Duty Anchors"],
["||Loxin","/public/article/show.asp?articleid=1130&menuItemID=213&toplvlID=3&menuNo=4","","","","_self"],
["||Dynaset","/public/article/show.asp?articleid=1121&menuItemID=214&toplvlID=3&menuNo=4","","","","_self"],
["|Light Duty Anchors"],
["||WallMate ™","/public/Article/show.asp?ArticleID=1150&menuItemID=182&toplvlID=3&menuNo=4","","","","_self"],
["||ToggleMate ™","/public/article/show.asp?articleid=1141&menuItemID=183&toplvlID=3&menuNo=4","","","","_self"],
["||Ram Toggle ™","/public/Article/show.asp?ArticleID=1133&menuItemID=184&toplvlID=3&menuNo=4","","","","_self"],
["||DynaClip","/public/Article/show.asp?ArticleID=1039&menuItemID=185&toplvlID=3&menuNo=4","","","","_self"],
["||Shuredrive","/public/article/show.asp?articleid=1138&menuItemID=215&toplvlID=3&menuNo=4","","","","_self"],
["||Easydrive","/public/article/show.asp?articleid=1157&menuItemID=237&toplvlID=3&menuNo=4","","","","_self"],
["||Redidrive","/public/article/show.asp?articleid=1158&menuItemID=238&toplvlID=3&menuNo=4","","","","_self"],
["||Nylon Anchors","/public/article/show.asp?articleid=1131&menuItemID=216&toplvlID=3&menuNo=4","","","","_self"],
["||Hollow Wall Anchors","/public/article/show.asp?articleid=1146&menuItemID=217&toplvlID=3&menuNo=4","","","","_self"],
["||Plastic Toggle","/public/article/show.asp?articleid=1132&menuItemID=218&toplvlID=3&menuNo=4","","","","_self"],
["||Toggles","/public/article/show.asp?articleid=1142&menuItemID=219&toplvlID=3&menuNo=4","","","","_self"],
["||Multiclip","/public/Article/show.asp?ArticleID=1159&menuItemID=239&toplvlID=3&menuNo=4","","","","_self"],
["|Screws"],
["||Metal Screws","/public/Article/show.asp?ArticleID=1040&menuItemID=186&toplvlID=3&menuNo=4","","","","_self"],
["||Chipboard Screws","/public/Article/show.asp?ArticleID=1041&menuItemID=187&toplvlID=3&menuNo=4","","","","_self"],
["||Plasterboard Screws","/public/Article/show.asp?ArticleID=1042&menuItemID=188&toplvlID=3&menuNo=4","","","","_self"],
["||Cement Sheet Screws","/public/Article/show.asp?ArticleID=1043&menuItemID=189&toplvlID=3&menuNo=4","","","","_self"],
["|Technical Information","/public/resourceList.asp?category=Mechanical Anchoring&menuItemID=73&toplvlID=3&menuNo=4","","","","_self"],
["Chemical Anchoring"],
["|Overview","/public/Article/show.asp?ArticleID=1011&menuItemID=190&toplvlID=116&menuNo=5","","","","_self"],
["|Chemset ™ Injection","/public/Article/show.asp?ArticleID=1044&menuItemID=191&toplvlID=116&menuNo=5","","","","_self"],
["|Chemset™ Reo502","/public/article/show.asp?articleid=1134&menuItemID=210&toplvlID=116&menuNo=5","","","","_self"],
["|Chemset™ Injection 801","/public/article/show.asp?articleid=1109&menuItemID=233&toplvlID=116&menuNo=5","","","","_self"],
["|Chemset™ Injection 101","/public/article/show.asp?articleid=1108&menuItemID=209&toplvlID=116&menuNo=5","","","","_self"],
["|Chemset™ Maxmina™ Spin Capsules","/public/article/show.asp?articleid=1140&menuItemID=211&toplvlID=116&menuNo=5","","","","_self"],
["|Hammer-In Capsules","/public/article/show.asp?articleid=1125&menuItemID=212&toplvlID=116&menuNo=5","","","","_self"],
["|Technical Information","/public/resourceList.asp?category=Chemical Anchoring&menuItemID=136&toplvlID=116&menuNo=5","","","","_self"],
["Construction Chemicals"],
["|Overview","/public/Article/show.asp?ArticleID=1012&menuItemID=193&toplvlID=4&menuNo=6","","","","_self"],
["|Sealants"],
["||Glass Seal","/public/Article/show.asp?ArticleID=1172&menuItemID=252&toplvlID=4&menuNo=6","","","","_self"],
["||Roof Seal","/public/Article/show.asp?ArticleID=1173&menuItemID=253&toplvlID=4&menuNo=6","","","","_self"],
["||Water Seal","/public/Article/show.asp?ArticleID=1174&menuItemID=254&toplvlID=4&menuNo=6","","","","_self"],
["||Joint Seal","/public/Article/show.asp?ArticleID=1175&menuItemID=255&toplvlID=4&menuNo=6","","","","_self"],
["||HiSeal","/public/Article/show.asp?ArticleID=1176&menuItemID=256&toplvlID=4&menuNo=6","","","","_self"],
["||HiSeal TG","/public/Article/show.asp?ArticleID=1177&menuItemID=257&toplvlID=4&menuNo=6","","","","_self"],
["||DynaSeal","/public/Article/show.asp?ArticleID=1178&menuItemID=258&toplvlID=4&menuNo=6","","","","_self"],
["||BlazeBrake 201 Fire Sealant ","/public/Article/show.asp?ArticleID=1179&menuItemID=259&toplvlID=4&menuNo=6","","","","_self"],
["||DuctSeal (Water Based)","/public/Article/show.asp?ArticleID=1180&menuItemID=260&toplvlID=4&menuNo=6","","","","_self"],
["||Gap Seal","/public/Article/show.asp?ArticleID=1181&menuItemID=261&toplvlID=4&menuNo=6","","","","_self"],
["|FomoFill ™ Expanding Foams"],
["||Fomofill","/public/Article/show.asp?ArticleID=1182&menuItemID=262&toplvlID=4&menuNo=6","","","","_self"],
["||Fomoplus","/public/Article/show.asp?ArticleID=1183&menuItemID=263&toplvlID=4&menuNo=6","","","","_self"],
["|Cementitious & Epoxy Grouts"],
["||Concremate","/public/Article/show.asp?ArticleID=1184&menuItemID=264&toplvlID=4&menuNo=6","","","","_self"],
["||Cemcrete","/public/Article/show.asp?ArticleID=1185&menuItemID=265&toplvlID=4&menuNo=6","","","","_self"],
["||Pluscrete","/public/Article/show.asp?ArticleID=1186&menuItemID=266&toplvlID=4&menuNo=6","","","","_self"],
["||Concrebond","/public/Article/show.asp?ArticleID=1187&menuItemID=267&toplvlID=4&menuNo=6","","","","_self"],
["||Fillers FG","/public/Article/show.asp?ArticleID=1188&menuItemID=268&toplvlID=4&menuNo=6","","","","_self"],
["||Premier Group MP","/public/Article/show.asp?ArticleID=1189&menuItemID=269&toplvlID=4&menuNo=6","","","","_self"],
["||Epoxy Putty","/public/Article/show.asp?ArticleID=1190&menuItemID=270&toplvlID=4&menuNo=6","","","","_self"],
["||Epoxypatch","/public/Article/show.asp?ArticleID=1191&menuItemID=271&toplvlID=4&menuNo=6","","","","_self"],
["||Epoxy Grout","/public/Article/show.asp?ArticleID=1192&menuItemID=272&toplvlID=4&menuNo=6","","","","_self"],
["|Adhesives"],
["||Nailfree","/public/Article/show.asp?ArticleID=1193&menuItemID=273&toplvlID=4&menuNo=6","","","","_self"],
["||Safe-T-Bond Adhesive","/public/Article/show.asp?ArticleID=1194&menuItemID=274&toplvlID=4&menuNo=6","","","","_self"],
["||Ultrafix Plus","/public/Article/show.asp?ArticleID=1195&menuItemID=275&toplvlID=4&menuNo=6","","","","_self"],
["|Technical Information","/public/resourceList.asp?category=Construction Chemicals&menuItemID=84&toplvlID=4&menuNo=6","","","","_self"],
["Trades"],
["|Plumbing","/public/Article/show.asp?Articleid=1054&menuItemID=283&toplvlID=282&menuNo=7","","","","_self"],
["|Fire & Security","/public/Article/show.asp?ArticleID=1052&menuItemID=284&toplvlID=282&menuNo=7","","","","_self"],
["|Electrical","/public/Article/show.asp?ArticleID=1213&menuItemID=285&toplvlID=282&menuNo=7","","","","_self"],
["About Ramset™"],
["|Company Overview","/public/Article/show.asp?ArticleID=1013&menuItemID=199&toplvlID=117&menuNo=8","","","","_self"],
["|Product Guide","/public/Article/show.asp?ArticleID=1215&menuItemID=288&toplvlID=117&menuNo=8","","","","_self"],
["|Industrial Price List","http://www.ramset.com.au/fileupload/Resources/industrialPriceList.pdf?menuItemID=276&toplvlID=117&menuNo=8","","","","_blank"],
["|T&C's of Sale","http://www.ramset.com.au/fileupload/Terms__Conditions_of_Sales.pdf?menuItemID=127&toplvlID=117&menuNo=8","","","","_blank"],
["|Locations","/public/Article/show.asp?Articleid=1051&menuItemID=297&toplvlID=117&menuNo=8","","","","_self"],
["|Contact Us","/public/contactus.asp?menuItemID=129&toplvlID=117&menuNo=8","","","","_self"],
["|Warranty Information","/fileupload/pdfs/Ramset_Tool_Warranty_Document.pdf?menuItemID=300&toplvlID=117&menuNo=8","","","","_blank"],
["Careers"],
["|Enquiries","/public/Article/show.asp?Articleid=1000&menuItemID=131&toplvlID=130&menuNo=9","","","","_self"],
["|Register Your Details","/public/jobApplicationUpload.asp?menuItemID=132&toplvlID=130&menuNo=9","","","","_self"],
["|Current Vacancies","/public/Article/show.asp?Articleid=1001&menuItemID=133&toplvlID=130&menuNo=9","","","","_self"]
];
dm_init();
