function show_selector_menu(b){var e=$(b);if(e.style.visibility=="inherit"){var c=e.firstChild;if(navigator.userAgent.indexOf("MSIE")>=0){c.style.marginBottom="0";var a=e.offsetHeight;var d=setInterval(function(){var f=parseInt(c.style.marginBottom);if(f<=parseInt("-"+a)){c.style.marginBottom="0";e.style.visibility="hidden";clearInterval(d)}else{c.style.marginBottom=(f-20)+"px"}},1)}else{e.style.visibility="hidden"}}else{var c=e.firstChild;if(navigator.userAgent.indexOf("MSIE")>=0){c.style.marginBottom="-"+e.offsetHeight+"px";var d=setInterval(function(){var f=parseInt(c.style.marginBottom);if(f>=0){c.style.marginBottom="0";clearInterval(d)}else{c.style.marginBottom=(f+20)+"px"}},1)}selector_is_clicked[b]=true;e.style.visibility="inherit"}}var showImageIndex=-1;var imageTimer;function showImage(d){var j=document.getElementById("flash_img");var g=document.getElementById("flash_title");var b=new Array();b[0]=0;b[1]=1;b[2]=2;b[3]=3;for(var l=0;l<b.length;l++){var f=document.getElementById("aimg"+l);if(f!=null){if(l==d){f.className="aimg"}else{f.className=""}}}if(d>fImgs.length-1){d=0;var f=document.getElementById("aimg"+d);f.className="aimg"}if(!fImgs[d]||d==showImageIndex){return false}var c="__fImg"+d;j.filters&&j.filters[0].Apply();for(l=0;l<j.childNodes.length;l++){j.childNodes[l].style.display="none"}if(document.getElementById(c)){var h=document.getElementById(c);h.style.display="block";if(h.tagName=="OBJECT"){h.rewind();h.Play()}}else{var m=fImgs[d].img.lastIndexOf(".");if(fImgs[d].img.substr(m+1).substr(0,3).toLowerCase()=="swf"){j.innerHTML+='				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="730" height="92" id="'+c+'">					<param name="movie" value="'+fImgs[d].img+'" />					<param name="quality" value="high" />					<embed src="'+fImgs[d].img+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="730" height="92"></embed>				</object>'}else{var k=new Image();k.border="0";k.src=fImgs[d].img;k.width="256";k.height="204";var n=document.createElement("a");n.href=fImgs[d].href;n.target="main";n.id=c;n.appendChild(k);j.appendChild(n)}}j.filters&&j.filters[0].Play();var e=document.getElementById("flash_show_ctl_msg");e.filters&&e.filters[0].Apply();g.href=fImgs[d].href;g.innerHTML=fImgs[d].title;e.filters&&e.filters[0].Play();showImageIndex=d;return true}function imagePlay(){if(imageTimer){return}if(showImageIndex>=fImgs.length-1){showImageIndex=-1}showImage(showImageIndex+1);imageTimer=setInterval(function(){var a=showImage(showImageIndex+1);if(!a){stop()}},8000)}function stop(){clearInterval(imageTimer);imageTimer=null}function showNextImage(){showImage(showImageIndex+1)}function showPrevImage(){showImage(showImageIndex-1)};