/**********************************************************************************   
*   Dynamic Categories 
*   Copyright (C) 2001
*   Developed by Shazad Hussain and Micheal Ouwerkerk
*********************************************************************************/
var op= /opera 5|opera\/5/i.test(navigator.userAgent);var ie=!op&& /msie/i.test(navigator.userAgent);var mz=!op&& /mozilla\/5/i.test(navigator.userAgent);var ieBox=ie&& /win/i.test(navigator.platform)&&(document.compatMode==null||document.compatMode=="BackCompat");var ie50= /msie 5\.[01234]/i.test(navigator.userAgent);function lib_bwcheck(){this.ver=navigator.appVersion; this.agent=navigator.userAgent; this.dom=document.getElementById?1:0; this.opera5=this.agent.indexOf("Opera 5")>-1 ; this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera5)?1:0;this.ie4=(document.all&&!this.dom&&!this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6; this.mac=this.agent.indexOf("Mac")>-1; this.ns6=(this.dom&&parseInt(this.ver)>=5)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5); return this }; var bw=new lib_bwcheck(); if(document.layers){scrX=innerWidth;scrY=innerHeight;onresize=function(){if(scrX!=innerWidth||scrY!=innerHeight){history.go(0)}};}function MainSearch(frmName){if(document.layers||document.all){if(bw.ns4)frmName.target="listFrameNS";if(frmName.searchStr.value.length<3)
{alert("Please enter atleast 3 characters \n for the venue name.");frmName.searchStr.focus();return(false);}var checkOK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzàáèéìíòóùúý0123456789-@ .()";var checkStr=frmName.searchStr.value;var allValid=true;for(i=0;i<checkStr.length;i++)
{ch=checkStr.charAt(i);for(j=0;j<checkOK.length;j++)
if(ch==checkOK.charAt(j))break;if(j==checkOK.length){allValid=false;break;}}if(!allValid){alert("Sorry we can not allow this request. \nPlease try removing any invalid \ncharacters from you request");frmName.searchStr.focus();return(false);}}else
return true
}function makeCategories(obj){this.elm=document.getElementById? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;this.css=bw.ns4?this.elm:this.elm.style;this.wref=bw.ns4?this.elm.document:this.elm;this.obj=obj+'makeCategories';eval(this.obj+'=this');this.w=bw.ns4? this.elm.clip.width: this.elm.offsetWidth;this.h=bw.ns4? this.elm.clip.height: this.elm.offsetHeight;};makeCategories.prototype.measureIt=function(){this.w=bw.ns4? this.elm.clip.width: this.elm.offsetWidth;this.h=bw.ns4? this.elm.clip.height: this.elm.offsetHeight;};makeCategories.prototype.writeIt=function(text){if(bw.ns4){this.wref.write(text);this.wref.close()}else{this.wref.innerHTML=text};};var mouseX=0,mouseY=0,setX=0,setY=0;function getMousemove(e){mouseX=(bw.ns4||bw.ns6)? e.pageX: bw.ie4&&bw.win? event.x: bw.ie&&bw.win&&!bw.ie4?(event.x-2)+document.body.scrollLeft : event.x+document.body.scrollLeft;mouseY=(bw.ns4||bw.ns6)? e.pageY: bw.ie4&&bw.win? event.y: bw.ie&&bw.win&&!bw.ie4?(event.y-2)+document.body.scrollTop : event.y+document.body.scrollTop;if(isLoaded&&hovering&&animation){placeIt();showShadow();}};function placeIt(){if(detectiontype==1)setX=mouseX+fromX+categories.w>screenWscrolled ? screenWscrolled-categories.w: mouseX+fromX;if(detectiontype==1)setY=mouseY+fromY+categories.h>screenHscrolled ? screenHscrolled-categories.h: mouseY+fromY;if(detectiontype==0)setX=mouseX+fromX+categories.w>screenWscrolled ? mouseX-fromX-categories.w: mouseX+fromX;if(detectiontype==0)setY=mouseY+fromY+categories.h>screenHscrolled ? mouseY-fromY-categories.h: mouseY+fromY;if(setX<0)setX=0;if(setY<0)setY=0;categories.css.left=setX;categories.css.top=setY;categories.css.zIndex=eval(categories.css.zIndex+100);};var hovering=false,screenWscrolled=0,screenHscrolled=0;makeCategories.prototype.showTimer=null;function getString(num){this.strOut="";var arrPairs=num.split("#");for(i=0;i<arrPairs.length;i++){var arrNameValue=arrPairs[i].split(",");if(arrNameValue.length==2){this.strOut=this.strOut+"<a href=";if(bw.ns4&&target=='listFrame'){this.strOut=this.strOut+"\'#list\' onclick=\'document.layers[listFrameNS].src="+arrNameValue[0]+"\'"};else{this.strOut=this.strOut+"\'"+arrNameValue[0]+"\' target=\'"+target+"\'"};this.strOut=this.strOut+">"+unescape(arrNameValue[1])+"</a>"}}};function popUp(num){if(isLoaded){clearTimeout(categories.popTimer);dopopOut();getString(HSpots[num]);if(bw.ns4){var text='<span class="normalStyle">'+(ns4center?'<center>':"")+strOut+(ns4center?'</center>':"")+'</span>';categories.writeIt(text);}if(!bw.ns4)categories.writeIt(strOut);screenWscrolled=screenW+(bw.ie?document.body.scrollLeft:pageXOffset);screenHscrolled=screenH+(bw.ie?document.body.scrollTop:pageYOffset);hovering=true;if(bw.ie4)setTimeout('categories.measureIt(); placeIt();',delay/2);else{categories.measureIt();placeIt();}if(useFading)categories.showTimer=setTimeout('categories.blendIn(); showShadow();',delay);if(!useFading)categories.showTimer=setTimeout('categories.css.visibility="visible"; showShadow();',delay);}};var global=window.document
global.shadows=new Array; var d;function showShadow(){if(document.getElementById&&document.all){for(d=0;d<global.shadows.length;d++)
global.shadows[d].removeNode(true);global.shadows=new Array();for(d=depth;d>0;d--){var rect=document.createElement('div');rect.className='ttshadow'; var rs=rect.style; rs.position='absolute';rs.left=(categories.css.posLeft+d)+'px';rs.top=(categories.css.posTop+d)+'px';rs.width=categories.w+'px';rs.height=categories.h+'px';rs.zIndex=categories.css.zIndex-d;var opacity=1-d/(d+1);rs.filter='alpha(opacity='+(100*opacity)+')';categories.wref.insertAdjacentElement('afterEnd',rect);global.shadows[global.shadows.length]=rect;}}}makeCategories.prototype.popTimer=null;function popOut(){if(isLoaded)categories.popTimer=setTimeout('dopopOut()',80)
};function dopopOut(){hovering=false;clearTimeout(categories.showTimer);categories.css.visibility='hidden';clearTimeout(categories.fadeTimer);categories.i=0;for(d=0;d<global.shadows.length;d++)
global.shadows[d].removeNode(true);global.shadows=new Array();};var scrollbarWidth=bw.ns6&&bw.win?14:bw.ns6&&!bw.win?16:bw.ns4?16:0;function measureScreen(){categories.css.top=0;categories.css.left=0;screenW=(bw.ie?document.body.clientWidth:innerWidth)-scrollbarWidth;screenH=(bw.ie?document.body.clientHeight:innerHeight);};makeCategories.prototype.blendIn=function(){if(bw.ie&&bw.win&&!bw.ie4){this.css.filter='blendTrans(duration=0.5)';this.elm.filters.blendTrans.apply();this.css.visibility='visible';this.elm.filters.blendTrans.play();}else{this.css.visibility='visible';if(!bw.ns4)this.fadeIt();}};makeCategories.prototype.step=8;makeCategories.prototype.i=0;makeCategories.prototype.fadeTimer=null;makeCategories.prototype.fadeIt=function(){this.i+=this.step;this.css.MozOpacity=this.i/100;if(this.i<100)this.fadeTimer=setTimeout(this.obj+'.fadeIt()',40);else this.i=0;};var isLoaded=false;function popupInit(){bw.opera5=(navigator.userAgent.indexOf("Opera")>-1&&document.getElementById)?true:false
if(bw.opera5)bw.ns6=0; bw.win=(navigator.userAgent.indexOf('Windows')>-1); categories=new makeCategories('divCategories');categories.elm.onmouseover=function(){clearTimeout(categories.popTimer);if(bw.ns4){setTimeout('clearTimeout(categories.popTimer)',20)};};if(bw.ns4)document.captureEvents(Event.MOUSEMOVE);document.onmousemove=getMousemove;measureScreen();if(!bw.ns4)onresize=measureScreen;if(!bw.ns4)categories.elm.className='normalStyle';if(bw.ie&&bw.win&&!bw.ie4)categories.css.filter='alpha(opacity=100)';isLoaded=true;};if(bw.bw&&!isLoaded)onload=popupInit;