/* <![CDATA[ */
		$(document).ready(function(){
								   
			window.currentPanel = "panel0";
			window.uilocked = false;
			
			$("#buttons img").hover(function(){
				this.src = this.src.replace("-Off","-On");}, function(){
					this.src = this.src.replace("-On","-Off");
				}
			);
			
			$("#buttons a").click(function(){
				 if(!window.uilocked){
					window.uilocked = true;
					oid = window.currentPanel;
					aParts = this.id.split("_");
					window.currentPanel = aParts[1];
					$('#'+oid).fadeOut(1000, function(){
						$('#'+window.currentPanel).fadeIn(function(){
							window.uilocked = false;										   
						});								   
					});
					
				}
			
			});
			
			$("#buttons a").hover(function(){				   		
				/* if(!window.uilocked){
					window.uilocked = true;
					oid = window.currentPanel;
					aParts = this.id.split("_");
					window.currentPanel = aParts[1];
					$('#'+oid).fadeOut(1000, function(){
						window.uilocked = false;										   
						$('#'+window.currentPanel).fadeIn(function(){
						});								   
					});
				} */
			});
			
	    });
	/* ]]> */	
