//combined javascript file.

// menu.js

//BEGIN ROLLOVER CODE
function newImage(arg) {
      if (document.images) {
            rslt = new Image();
            rslt.src = arg;
            return rslt;
      }
}

function changeImages() {
      if (document.images && (preloadFlag == true)) {
            for (var i=0; i<changeImages.arguments.length; i+=2) {
                 document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
            }
      }
}

var preloadFlag = false;
      if (document.images) {
            menu_home_over = newImage('../images/menu_home-over.gif');
            menu_home_on = newImage('../images/menu_home-on.gif');
            menu_salon_over = newImage('../images/menu_salon-over.gif');
            menu_salon_on = newImage('../images/menu_salon-on.gif');
            menu_spa_over = newImage('../images/menu_spa-over.gif');
            menu_spa_on = newImage('../images/menu_spa-on.gif');
            menu_men_over = newImage('../images/menu_men-over.gif');
            menu_men_on = newImage('../images/menu_men-on.gif');
            menu_specials_over = newImage('../images/menu_specials-over.gif');
            menu_specials_on = newImage('../images/menu_specials-on.gif');
            menu_about_over = newImage('../images/menu_about-over.gif');
            menu_about_on = newImage('../images/menu_about-on.gif');
            menu_contact_over = newImage('../images/menu_contact-over.gif');
            menu_contact_on = newImage('../images/menu_contact-on.gif');
			menu_children_over = newImage('../images/menu_children-over.gif');
            menu_children_on = newImage('../images/menu_children-on.gif');
			menu_children_over = newImage('../images/menu_children-over.gif');
            menu_children_on = newImage('../images/menu_children-on.gif');
			menu_locations_over = newImage('../images/menu_locations-over.gif');
            menu_locations_on = newImage('../images/menu_locations-on.gif');
			menu_events_over = newImage('../images/menu_events-over.gif');
            menu_events_on = newImage('../images/menu_events-on.gif');
			menu_visit_over = newImage('../images/menu_visit-over.gif');
            menu_visit_on = newImage('../images/menu_visit-on.gif');
			menu_blog_over = newImage('../images/menu_blog-over.gif');
            menu_blog_on = newImage('../images/menu_blog-on.gif');
            preloadFlag = true;
      }

//END ROLLOVER CODE


//BEGIN MENU CONTROLS
var state = 'none'

function deselect() {
      if (state == 'menu1') {
            changeImages('menu1', '../images/menu_home.gif');
            state = 'none';
      }
      if (state == 'menu2') {
            changeImages('menu2', '../images/menu_salon.gif');
            state = 'none';
      }
      if (state == 'menu3') {
            changeImages('menu3', '../images/menu_spa.gif');
            state = 'none';
      }
      if (state == 'menu4') {
            changeImages('menu4', '../images/menu_men.gif');
            state = 'none';
      }
      if (state == 'menu5') {
            changeImages('menu5', '../images/menu_specials.gif');
            state = 'none';
      }
      if (state == 'menu6') {
            changeImages('menu6', '../images/menu_about.gif');
            state = 'none';
      }
      if (state == 'menu7') {
            changeImages('menu7', '../images/menu_contact.gif');
            state = 'none';
      }
	  if (state == 'menu8') {
            changeImages('menu8', '../images/menu_children.gif');
            state = 'none';
      }
	  if (state == 'menu9') {
            changeImages('menu9', '../images/menu_locations.gif');
            state = 'none';
      }
	  if (state == 'menu10') {
            changeImages('menu10', '../images/menu_events.gif');
            state = 'none';
      }
	  if (state == 'menu11') {
            changeImages('menu11', '../images/menu_visit.gif');
            state = 'none';
      }
	  if (state == 'menu12') {
            changeImages('menu12', '../images/menu_blog.gif');
            state = 'none';
      }
}
//BEGIN MENU OPTION 1 CONTROLS
function menu1_over() {
      if (state == 'menu1') {
            }
      else {
            changeImages('menu1', '../images/menu_home-over.gif');
      }
}
function menu1_out() {
      if (state == 'menu1') {
            }
      else {
            changeImages('menu1', '../images/menu_home.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu1() {
      if (state == 'menu1') {
            }
      else {
            deselect();
            changeImages('menu1', '../images/menu_home-on.gif');
            state = 'menu1';
      }
}


//END MENU OPTION 1 CONTROLS


//BEGIN MENU OPTION 2 CONTROLS
function menu2_over() {
      if (state == 'menu2') {
            }
      else {
            changeImages('menu2', '../images/menu_salon-over.gif');
      }
}
function menu2_out() {
      if (state == 'menu2') {
            }
      else {
            changeImages('menu2', '../images/menu_salon.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu2() {
      if (state == 'menu2') {
            }
      else {
            deselect();
            changeImages('menu2', '../images/menu_salon-on.gif');
            state = 'menu2';
      }
}


//END MENU OPTION 2 CONTROLS


//BEGIN MENU OPTION 3 CONTROLS
function menu3_over() {
      if (state == 'menu3') {
            }
      else {
            changeImages('menu3', '../images/menu_spa-over.gif');
      }
}
function menu3_out() {
      if (state == 'menu3') {
            }
      else {
            changeImages('menu3', '../images/menu_spa.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu3() {
      if (state == 'menu3') {
            }
      else {
            deselect();
            changeImages('menu3', '../images/menu_spa-on.gif');
            state = 'menu3';
      }
}


//END MENU OPTION 3 CONTROLS


//BEGIN MENU OPTION 4 CONTROLS
function menu4_over() {
      if (state == 'menu4') {
            }
      else {
            changeImages('menu4', '../images/menu_men-over.gif');
      }
}
function menu4_out() {
      if (state == 'menu4') {
            }
      else {
            changeImages('menu4', '../images/menu_men.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu4() {
      if (state == 'menu4') {
            }
      else {
            deselect();
            changeImages('menu4', '../images/menu_men-on.gif');
            state = 'menu4';
      }
}


//END MENU OPTION 4 CONTROLS


//BEGIN MENU OPTION 5 CONTROLS
function menu5_over() {
      if (state == 'menu5') {
            }
      else {
            changeImages('menu5', '../images/menu_specials-over.gif');
      }
}
function menu5_out() {
      if (state == 'menu5') {
            }
      else {
            changeImages('menu5', '../images/menu_specials.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu5() {
      if (state == 'menu5') {
            }
      else {
            deselect();
            changeImages('menu5', '../images/menu_specials-on.gif');
            state = 'menu5';
      }
}


//END MENU OPTION 5 CONTROLS


//BEGIN MENU OPTION 6 CONTROLS
function menu6_over() {
      if (state == 'menu6') {
            }
      else {
            changeImages('menu6', '../images/menu_about-over.gif');
      }
}
function menu6_out() {
      if (state == 'menu6') {
            }
      else {
            changeImages('menu6', '../images/menu_about.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu6() {
      if (state == 'menu6') {
            }
      else {
            deselect();
            changeImages('menu6', '../images/menu_about-on.gif');
            state = 'menu6';
      }
}


//END MENU OPTION 6 CONTROLS


//BEGIN MENU OPTION 7 CONTROLS
function menu7_over() {
      if (state == 'menu7') {
            }
      else {
            changeImages('menu7', '../images/menu_contact-over.gif');
      }
}
function menu7_out() {
      if (state == 'menu7') {
            }
      else {
            changeImages('menu7', '../images/menu_contact.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu7() {
      if (state == 'menu7') {
            }
      else {
            deselect();
            changeImages('menu7', '../images/menu_contact-on.gif');
            state = 'menu7';
      }
}


//END MENU OPTION 7 CONTROLS

//BEGIN MENU OPTION 8 CONTROLS
function menu8_over() {
      if (state == 'menu8') {
            }
      else {
            changeImages('menu8', '../images/menu_children-over.gif');
      }
}
function menu8_out() {
      if (state == 'menu8') {
            }
      else {
            changeImages('menu8', '../images/menu_children.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu8() {
      if (state == 'menu8') {
            }
      else {
            deselect();
            changeImages('menu8', '../images/menu_children-on.gif');
            state = 'menu8';
      }
}


//END MENU OPTION 8 CONTROLS

//BEGIN MENU OPTION 9 CONTROLS
function menu9_over() {
      if (state == 'menu9') {
            }
      else {
            changeImages('menu9', '../images/menu_locations-over.gif');
      }
}
function menu9_out() {
      if (state == 'menu9') {
            }
      else {
            changeImages('menu9', '../images/menu_locations.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu9() {
      if (state == 'menu9') {
            }
      else {
            deselect();
            changeImages('menu9', '../images/menu_locations-on.gif');
            state = 'menu9';
      }
}


//END MENU OPTION 9 CONTROLS

//BEGIN MENU OPTION 10 CONTROLS
function menu10_over() {
      if (state == 'menu10') {
            }
      else {
            changeImages('menu10', '../images/menu_events-over.gif');
      }
}
function menu10_out() {
      if (state == 'menu10') {
            }
      else {
            changeImages('menu10', '../images/menu_events.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu10() {
      if (state == 'menu10') {
            }
      else {
            deselect();
            changeImages('menu10', '../images/menu_events-on.gif');
            state = 'menu10';
      }
}


//END MENU OPTION 10 CONTROLS

//BEGIN MENU OPTION 11 CONTROLS
function menu11_over() {
      if (state == 'menu11') {
            }
      else {
            changeImages('menu11', '../images/menu_visit-over.gif');
      }
}
function menu11_out() {
      if (state == 'menu11') {
            }
      else {
            changeImages('menu11', '../images/menu_visit.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu11() {
      if (state == 'menu11') {
            }
      else {
            deselect();
            changeImages('menu11', '../images/menu_visit-on.gif');
            state = 'menu11';
      }
}


//END MENU OPTION 11 CONTROLS

//BEGIN MENU OPTION 12 CONTROLS
function menu12_over() {
      if (state == 'menu12') {
            }
      else {
            changeImages('menu12', '../images/menu_blog-over.gif');
      }
}
function menu12_out() {
      if (state == 'menu12') {
            }
      else {
            changeImages('menu12', '../images/menu_blog.gif');
      }
}

// onload and onclick controls for backward and forward nav
function state_menu12() {
      if (state == 'menu12') {
            }
      else {
            deselect();
            changeImages('menu12', '../images/menu_blog-on.gif');
            state = 'menu12';
      }
}


//END MENU OPTION 12 CONTROLS


// END MENU CONTROLS

/*

FREESTYLE MENUS v1.0 RC (c) 2001-2006 Angus Turnbull, http://www.twinhelix.com
Altering this notice or redistributing this file is prohibited.

*/

var isDOM=document.getElementById?1:0,isIE=document.all?1:0,isNS4=navigator.appName=='Netscape'&&!isDOM?1:0,isOp=self.opera?1:0,isDyn=isDOM||isIE||isNS4;function getRef(i,p){p=!p?document:p.navigator?p.document:p;return isIE?p.all[i]:isDOM?(p.getElementById?p:p.ownerDocument).getElementById(i):isNS4?p.layers[i]:null};function getSty(i,p){var r=getRef(i,p);return r?isNS4?r:r.style:null};if(!self.LayerObj)var LayerObj=new Function('i','p','this.ref=getRef(i,p);this.sty=getSty(i,p);return this');function getLyr(i,p){return new LayerObj(i,p)};function LyrFn(n,f){LayerObj.prototype[n]=new Function('var a=arguments,p=a[0],px=isNS4||isOp?0:"px";with(this){'+f+'}')};LyrFn('x','if(!isNaN(p))sty.left=p+px;else return parseInt(sty.left)');LyrFn('y','if(!isNaN(p))sty.top=p+px;else return parseInt(sty.top)');if(typeof addEvent!='function'){var addEvent=function(o,t,f,l){var d='addEventListener',n='on'+t,rO=o,rT=t,rF=f,rL=l;if(o[d]&&!l)return o[d](t,f,false);if(!o._evts)o._evts={};if(!o._evts[t]){o._evts[t]=o[n]?{b:o[n]}:{};o[n]=new Function('e','var r=true,o=this,a=o._evts["'+t+'"],i;for(i in a){o._f=a[i];r=o._f(e||window.event)!=false&&r;o._f=null}return r');if(t!='unload')addEvent(window,'unload',function(){removeEvent(rO,rT,rF,rL)})}if(!f._i)f._i=addEvent._i++;o._evts[t][f._i]=f};addEvent._i=1;var removeEvent=function(o,t,f,l){var d='removeEventListener';if(o[d]&&!l)return o[d](t,f,false);if(o._evts&&o._evts[t]&&f._i)delete o._evts[t][f._i]}}function FSMenu(myName,nested,cssProp,cssVis,cssHid){this.myName=myName;this.nested=nested;this.cssProp=cssProp;this.cssVis=cssVis;this.cssHid=cssHid;this.cssLitClass='';this.menus={root:new FSMenuNode('root',true,this)};this.menuToShow=[];this.mtsTimer=null;this.showDelay=0;this.switchDelay=125;this.hideDelay=500;this.showOnClick=0;this.hideOnClick=true;this.animInSpeed=0.2;this.animOutSpeed=0.2;this.animations=[]};FSMenu.prototype.show=function(mN){with(this){menuToShow.length=arguments.length;for(var i=0;i<arguments.length;i++)menuToShow[i]=arguments[i];clearTimeout(mtsTimer);if(!nested)mtsTimer=setTimeout(myName+'.menus.root.over()',10)}};FSMenu.prototype.hide=function(mN){with(this){clearTimeout(mtsTimer);if(menus[mN])menus[mN].out()}};FSMenu.prototype.hideAll=function(){with(this){for(var m in menus)if(menus[m].visible&&!menus[m].isRoot)menus[m].hide(true)}};function FSMenuNode(id,isRoot,obj){this.id=id;this.isRoot=isRoot;this.obj=obj;this.lyr=this.child=this.par=this.timer=this.visible=null;this.args=[];var node=this;this.over=function(evt){with(node)with(obj){if(isNS4&&evt&&lyr.ref)lyr.ref.routeEvent(evt);clearTimeout(timer);clearTimeout(mtsTimer);if(!isRoot&&!visible)node.show();if(menuToShow.length){var a=menuToShow,m=a[0];if(!menus[m]||!menus[m].lyr.ref)menus[m]=new FSMenuNode(m,false,obj);var c=menus[m];if(c==node){menuToShow.length=0;return}clearTimeout(c.timer);if(c!=child&&c.lyr.ref){c.args.length=a.length;for(var i=0;i<a.length;i++)c.args[i]=a[i];var delay=child?switchDelay:showDelay;c.timer=setTimeout('with('+myName+'){menus["'+c.id+'"].par=menus["'+node.id+'"];menus["'+c.id+'"].show()}',delay?delay:1)}menuToShow.length=0}if(!nested&&par)par.over()}};this.out=function(evt){with(node)with(obj){if(isNS4&&evt&&lyr&&lyr.ref)lyr.ref.routeEvent(evt);clearTimeout(timer);if(!isRoot){timer=setTimeout(myName+'.menus["'+id+'"].hide()',hideDelay);if(!nested&&par)par.out()}}};if(this.id!='root')with(this)with(lyr=getLyr(id))if(ref){if(isNS4)ref.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT);addEvent(ref,'mouseover',this.over);addEvent(ref,'mouseout',this.out);if(obj.nested){addEvent(ref,'focus',this.over);addEvent(ref,'click',this.over);addEvent(ref,'blur',this.out)}}};FSMenuNode.prototype.show=function(forced){with(this)with(obj){if(!lyr||!lyr.ref)return;if(par){if(par.child&&par.child!=this)par.child.hide();par.child=this}var offR=args[1],offX=args[2],offY=args[3],lX=0,lY=0,doX=''+offX!='undefined',doY=''+offY!='undefined';if(self.page&&offR&&(doX||doY)){with(page.elmPos(offR,par.lyr?par.lyr.ref:0))lX=x,lY=y;if(doX)lyr.x(lX+eval(offX));if(doY)lyr.y(lY+eval(offY))}if(offR)lightParent(offR,1);visible=1;if(obj.onshow)obj.onshow(id);lyr.ref.parentNode.style.zIndex='2';setVis(1,forced)}};FSMenuNode.prototype.hide=function(forced){with(this)with(obj){if(!lyr||!lyr.ref||!visible)return;if(isNS4&&self.isMouseIn&&isMouseIn(lyr.ref))return show();if(args[1])lightParent(args[1],0);if(child)child.hide();if(par&&par.child==this)par.child=null;if(lyr){visible=0;if(obj.onhide)obj.onhide(id);lyr.ref.parentNode.style.zIndex='1';setVis(0,forced)}}};FSMenuNode.prototype.lightParent=function(elm,lit){with(this)with(obj){if(!cssLitClass||isNS4)return;if(lit)elm.className+=(elm.className?' ':'')+cssLitClass;else elm.className=elm.className.replace(new RegExp('(\\s*'+cssLitClass+')+$'),'')}};FSMenuNode.prototype.setVis=function(sh,forced){with(this)with(obj){if(lyr.forced&&!forced)return;lyr.forced=forced;lyr.timer=lyr.timer||0;lyr.counter=lyr.counter||0;with(lyr){clearTimeout(timer);if(sh&&!counter)sty[cssProp]=cssVis;var speed=sh?animInSpeed:animOutSpeed;if(isDOM&&speed<1)for(var a=0;a<animations.length;a++)animations[a](ref,counter,sh);counter+=speed*(sh?1:-1);if(counter>1){counter=1;lyr.forced=false}else if(counter<0){counter=0;sty[cssProp]=cssHid;lyr.forced=false}else if(isDOM){timer=setTimeout(myName+'.menus["'+id+'"].setVis('+sh+','+forced+')',50)}}}};FSMenu.animSwipeDown=function(ref,counter,show){if(show&&(counter==0)){ref._fsm_styMT=ref.style.marginTop;ref._fsm_curMT=parseInt(ref.currentStyle?ref.currentStyle.marginTop:(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(ref,null).getPropertyValue('marginTop'):0))}var cP=Math.pow(Math.sin(Math.PI*counter/2),0.75);var clipY=ref.offsetHeight*(1-cP);ref.style.clip=(counter==1?((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto,auto,auto,auto)'):'rect('+clipY+'px,'+ref.offsetWidth+'px,'+ref.offsetHeight+'px,0)');if(counter==1||(counter<0.01&&!show)){if(ref._fsm_styMT)ref.style.marginTop=ref._fsm_styMT;else if(ref.style.removeProperty)ref.style.removeProperty('margin-top',true);else if(ref.style.cssText)ref.style.cssText=ref.style.cssText.replace(/MARGIN-TOP:[^;]*;\s*/i,'')}else ref.style.marginTop=((0-clipY)+(ref._fsm_curMT||0))+'px'};FSMenu.animFade=function(ref,counter,show){var done=(counter==1);if(ref.filters){var alpha=!done?' alpha(opacity='+parseInt(counter*100)+')':'';if(ref.style.filter.indexOf("alpha")==-1)ref.style.filter+=alpha;else ref.style.filter=ref.style.filter.replace(/\s*alpha\([^\)]*\)/i,alpha)}else ref.style.opacity=ref.style.MozOpacity=counter/1.001};FSMenu.animClipDown=function(ref,counter,show){var cP=Math.pow(Math.sin(Math.PI*counter/2),0.75);ref.style.clip=(counter==1?((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto,auto,auto,auto)'):'rect(0,'+ref.offsetWidth+'px,'+(ref.offsetHeight*cP)+'px,0)')};FSMenu.prototype.activateMenu=function(id,subInd){with(this){if(!isDOM||!document.documentElement)return;var fsmFB=getRef('fsmenu-fallback');if(fsmFB){fsmFB.rel='alternate stylesheet';fsmFB.disabled=true}var a,ul,li,parUL,mRoot=getRef(id),nodes,count=1;var lists=mRoot.getElementsByTagName('ul');for(var i=0;i<lists.length;i++){li=ul=lists[i];while(li){if(li.nodeName.toLowerCase()=='li')break;li=li.parentNode}if(!li)continue;parUL=li;while(parUL){if(parUL.nodeName.toLowerCase()=='ul')break;parUL=parUL.parentNode}a=null;for(var j=0;j<li.childNodes.length;j++)if(li.childNodes[j].nodeName.toLowerCase()=='a')a=li.childNodes[j];if(!a)continue;var menuID=myName+'-id-'+count++;if(ul.id)menuID=ul.id;else ul.setAttribute('id',menuID);var sOC=(showOnClick==1&&li.parentNode==mRoot)||(showOnClick==2);var evtProp=navigator.userAgent.indexOf('Safari')>-1||isOp?'safRtnVal':'returnValue';var eShow=new Function('with('+myName+'){var m=menus["'+menuID+'"],pM=menus["'+parUL.id+'"];'+(sOC?'if((pM&&pM.child)||(m&&m.visible))':'')+' show("'+menuID+'",this)}');var eHide=new Function('e','if(e.'+evtProp+'!=false)'+myName+'.hide("'+menuID+'")');addEvent(a,'mouseover',eShow);addEvent(a,'focus',eShow);addEvent(a,'mouseout',eHide);addEvent(a,'blur',eHide);if(sOC)addEvent(a,'click',new Function('e',myName+'.show("'+menuID+'",this);if(e.cancelable&&e.preventDefault)e.preventDefault();e.'+evtProp+'=false;return false'));if(subInd)a.insertBefore(subInd.cloneNode(true),a.firstChild)}if(isIE&&!isOp){var aNodes=mRoot.getElementsByTagName('a');for(var i=0;i<aNodes.length;i++){addEvent(aNodes[i],'focus',new Function('e','var node=this.parentNode;while(node){if(node.onfocus)node.onfocus(e);node=node.parentNode}'));addEvent(aNodes[i],'blur',new Function('e','var node=this.parentNode;while(node){if(node.onblur)node.onblur(e);node=node.parentNode}'))}}if(hideOnClick)addEvent(mRoot,'click',new Function(myName+'.hideAll()'));menus[id]=new FSMenuNode(id,true,this)}};var page={win:self,minW:0,minH:0,MS:isIE&&!isOp,db:document.compatMode&&document.compatMode.indexOf('CSS')>-1?'documentElement':'body'};page.elmPos=function(e,p){var x=0,y=0,w=p?p:this.win;e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}if(e&&this.MS&&navigator.platform.indexOf('Mac')>-1&&e.tagName=='A'){e.onfocus=new Function('with(event){self.tmpX=clientX-offsetX;self.tmpY=clientY-offsetY}');e.focus();x=tmpX;y=tmpY;e.blur()}else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}return{x:x,y:y}};if(isNS4){var fsmMouseX,fsmMouseY,fsmOR=self.onresize,nsWinW=innerWidth,nsWinH=innerHeight;document.fsmMM=document.onmousemove;self.onresize=function(){if(fsmOR)fsmOR();if(nsWinW!=innerWidth||nsWinH!=innerHeight)location.reload()};document.captureEvents(Event.MOUSEMOVE);document.onmousemove=function(e){fsmMouseX=e.pageX;fsmMouseY=e.pageY;return document.fsmMM?document.fsmMM(e):document.routeEvent(e)};function isMouseIn(sty){with(sty)return((fsmMouseX>left)&&(fsmMouseX<left+clip.width)&&(fsmMouseY>top)&&(fsmMouseY<top+clip.height))}}

var arrow = null;
var listMenu;
function loadMenu()
{
//<![CDATA[

// For each menu you create, you must create a matching "FSMenu" JavaScript object to represent
// it and manage its behaviour. You don't have to edit this script at all if you don't want to;
// these comments are just here for completeness. Also, feel free to paste this script into the
// external .JS file to make including it in your pages easier!

// Here's a menu object to control the above list of menu data:
listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');

// The parameters of the FSMenu object are:
//  1) Its own name in quotes.
//  2) Whether this is a nested list menu or not (in this case, true means yes).
//  3) The CSS property name to change when menus are shown and hidden.
//  4) The visible value of that CSS property.
//  5) The hidden value of that CSS property.
//
// Next, here's some optional settings for delays and highlighting:
//  * showDelay is the time (in milliseconds) to display a new child menu.
//  * switchDelay is the time to switch from one child menu to another child menu.
//    Set this higher and point at 2 neighbouring items to see what it does.
//  * hideDelay is the time it takes for a menu to hide after mouseout.
//  * cssLitClass is the CSS classname applied to parent items of active menus.
//  * showOnClick will, suprisingly, set the menus to show on click. Pick one of 3 values:
//    0 = all mouseover, 1 = first level click, sublevels mouseover, 2 = all click.
//  * hideOnClick hides all visible menus when one is clicked (defaults to true).
//  * animInSpeed and animOutSpeed set the animation speed. Set to a number
//    between 0 and 1 where higher = faster. Setting both to 1 disables animation.

//listMenu.showDelay = 0;
//listMenu.switchDelay = 125;
//listMenu.hideDelay = 500;
listMenu.cssLitClass = 'highlighted';
//listMenu.showOnClick = 1;
//listMenu.hideOnClick = true;
//listMenu.animInSpeed = 1;
//listMenu.animOutSpeed = 1;


// Now the fun part... animation! This script supports animation plugins you
// can add to each menu object you create. I have provided 3 to get you started.
// To enable animation, add one or more functions to the menuObject.animations
// array; available animations are:
//  * FSMenu.animSwipeDown is a "swipe" animation that sweeps the menu down.
//  * FSMenu.animFade is an alpha fading animation using tranparency.
//  * FSMenu.animClipDown is a "blind" animation similar to 'Swipe'.
// They are listed inside the "fsmenu.js" file for you to modify and extend :).

// I'm applying two at once to listMenu. Delete this to disable!
listMenu.animations[listMenu.animations.length] = FSMenu.animFade;
listMenu.animations[listMenu.animations.length] = FSMenu.animSwipeDown;
//listMenu.animations[listMenu.animations.length] = FSMenu.animClipDown;


// Finally, on page load you have to activate the menu by calling its 'activateMenu()' method.
// I've provided an "addEvent" method that lets you easily run page events across browsers.
// You pass the activateMenu() function two parameters:
//  (1) The ID of the outermost <ul> list tag containing your menu data.
//  (2) A node containing your submenu popout arrow indicator.
// If none of that made sense, just cut and paste this next bit for each menu you create.

arrow = null;
if (document.createElement && document.documentElement)
{
 arrow = document.createElement('span');
 arrow.appendChild(document.createTextNode('>'));
 // Feel free to replace the above two lines with these for a small arrow image...
 //arrow = document.createElement('img');
 //arrow.src = 'arrow.gif';
 //arrow.style.borderWidth = '0';
 arrow.className = 'subind';
}
addEvent(window, 'load', new Function('listMenu.activateMenu("listMenuRoot", arrow)'));


// You may wish to leave your menu as a visible list initially, then apply its style
// dynamically on activation for better accessibility. Screenreaders and older browsers will
// then see all your menu data, but there will be a 'flicker' of the raw list before the
// page has completely loaded. If you want to do this, remove the CLASS="..." attribute from
// the above outermost UL tag, and uncomment this line:
//addEvent(window, 'load', new Function('getRef("listMenuRoot").className="menulist"'));


// To create more menus, duplicate this section and make sure you rename your
// menu object to something different; also, activate another <ul> list with a
// different ID, of course :). You can hae as many menus as you want on a page.

//]]>
}

// Tooltip.php

/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var offsetxpoint=15 //Customize x offset of tooltip
var offsetypoint=15 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip

// flash.php

// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -----------------------------------------------------------------------------
// -->

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
jsVersion = 1.1;
// JavaScript helper required to detect Flash Player PlugIn version information
function JSGetSwfVer(i){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      		var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			descArray = flashDescription.split(" ");
			tempArrayMajor = descArray[2].split(".");
			versionMajor = tempArrayMajor[0];
			versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) {
				tempArrayMinor = descArray[3].split("r");
			} else {
				tempArrayMinor = descArray[4].split("r");
			}
      		versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
            flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
      	} else {
			flashVer = -1;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	// Can't detect in all other cases
	else {
		
		flashVer = -1;
	}
	return flashVer;
} 
// If called with no parameters this function returns a floating point value 
// which should be the version of the Flash Player or 0.0 
// ex: Flash Player 7r14 returns 7.14
// If called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) 
{
 	reqVer = parseFloat(reqMajorVer + "." + reqRevision);
   	// loop backwards through the versions until we find the newest version	
	for (i=25;i>0;i--) {	
		if (isIE && isWin && !isOpera) {
			versionStr = VBGetSwfVer(i);
		} else {
			versionStr = JSGetSwfVer(i);		
		}
		if (versionStr == -1 ) { 
			return false;
		} else if (versionStr != 0) {
			if(isIE && isWin && !isOpera) {
				tempArray         = versionStr.split(" ");
				tempString        = tempArray[1];
				versionArray      = tempString .split(",");				
			} else {
				versionArray      = versionStr.split(".");
			}
			versionMajor      = versionArray[0];
			versionMinor      = versionArray[1];
			versionRevision   = versionArray[2];
			
			versionString     = versionMajor + "." + versionRevision;   // 7.0r24 == 7.24
			versionNum        = parseFloat(versionString);
        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
			if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {
				return true;
			} else {
				return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );	
			}
		}
	}	
	return (reqVer ? false : 0.0);
}
// -->
