/* ================================================ PVII Tree Menu Magic 2 scripts Copyright (c) 2009 Project Seven Development www.projectseven.com Version: 2.1.6 - build: 1-17 ================================================ */ // define the image swap file naming convention // rollover image for any image in the normal state var p7TMMover='_over'; // image for any trigger that has an open sub menu -no rollover var p7TMMopen='_overdown'; // image to be used for current marker -no roll over var p7TMMmark='_down'; var p7TMMi=false,p7TMMa=false,p7TMMctl=[],p7TMMadv=[]; function P7_TMMset(){ var i,h,sh,hd,x,v; if(!document.getElementById){ return; } sh='.p7TMM div {height:0px;overflow:hidden;position:relative}\n'; sh+='.p7TMM ul {overflow:hidden;}\n'; sh+='.p7TMMtoggle {display:block !important;}\n'; if(document.styleSheets){ h='\n\n'+sh+'\n'; document.write(h); } else{ h=document.createElement('style'); h.type='text/css'; h.appendChild(document.createTextNode(sh)); hd=document.getElementsByTagName('head'); hd[0].appendChild(h); } } P7_TMMset(); function P7_TMMaddLoad(){ if(window.addEventListener){ if(!/KHTML|WebKit/i.test(navigator.userAgent)){ document.addEventListener("DOMContentLoaded", P7_TMMinit, false); } window.addEventListener("load",P7_TMMinit,false); window.addEventListener("unload",P7_TMMbb,false); } else if(document.addEventListener){ document.addEventListener("load",P7_TMMinit,false); } else if(window.attachEvent){ document.write("