/******************************
* @copyright: FlashMove.com
* @version: FSUG JavaScript v.3.5
* @file: fsug/scripts/script.js
* @Created: 8/17/2005
* @Updated: 3/18/2010
* @description: fsug
* This script is not freeware
******************************/

var FSUG=function(){this.qmo=new Object();this.menuBoxVisible=false;this.imgTitles=['main','event','attendee','signup','profile','member','news','search','forum'];this.init=function(){this.mainMenuInit();document.onclick=this.checkClick;$(document).ready(function(){$$("fsugSearchBtn").onclick=function(){this.quickSearchShow('fsugSearchBit','quicksearchform');return false;};$("#eventSelectBit").change(function(){$("#eventSelectForm").submit();});});};this.attendAlert=function(){alert('You can attend for event again before event start date');};this.quickSearchShow=function(mainname,objname){var mn=$$(mainname);var o=this.qmo=$$(objname);var mh=$$('menu_horizon');var mg=$$('menu_guideline');var qs=$$('qsearch');o.style.display='block';o.style.left=(mg.offsetLeft+mn.offsetLeft-qs.offsetWidth)+'px';o.style.top=mh.offsetTop+'px';qs.focus();$fsug.menuBoxVisible=true;return false;};this.quickSearchHide=function(){if(this.qmo.style){if(this.allowHideMenu)this.qmo.style.display='none';}};this.checkClick=function(){if($fsug.menuBoxVisible==false){$fsug.quickSearchHide();}$fsug.menuBoxVisible=true;};this.mainMenuInit=function(){var i=1;var menuIcon;while(menuIcon=$$('topnavLink'+i)){var menuDesc=$$('menu_desc'+i);menuIcon.onmouseover=showIconDesc;menuIcon.onmouseout=hideIconDesc;menuIcon.id=i;menuIcon.desc=menuDesc;menuIcon.innerHTML+='<br /><img id="fsug_title_off'+i+'" src="/pic/spacer.gif" class="fsugTipImg" /><img id="fsug_title_on'+i+'" src="/pic/title/'+this.imgTitles[i-1]+'.gif" class="fsugTipImg" />';i++;}};this.showIconDesc=function(){this.desc.style.display='block';};this.hideIconDesc=function(){this._off.style.display='block';this._on.style.display=this.desc.style.display='none';};this.eventSelect=function(){};};function fsugEventSelect(o,id){if(id.value!='')$$(o).submit();};$fsug=new FSUG();$fsug.init();