// JavaScript Document

	jQuery.noConflict(); 

	jQuery(document).ready(function(){
		

		jQuery('a').attr('onfocus', 'blur();');



	// ***********************************************************************************************	
	// Login main
	// ***********************************************************************************************	


		jQuery('#frm_loginmain input[@type=text]').focus(function(){
			if (jQuery(this).val() == jQuery(this).attr('title')) jQuery(this).removeAttr('value');
		});

		jQuery('#frm_loginmain input[@type=text]').blur(function(){																  
			if (jQuery(this).val()=='') jQuery(this).val(jQuery(this).attr('title'));
		});

		
		jQuery('#frm_loginmain').submit(function(){
			
			if ( (jQuery('#frm_loginmain_login').val()!='login') && (jQuery('#frm_loginmain_pass').val()!='pass') ) return true;
			
			return false;
			
		});


	// ***********************************************************************************************	
	// Menu layout
	// ***********************************************************************************************	


 		jQuery('div.menu-item').mouseover(function(){		
			jQuery(this).addClass('pointer');
			jQuery(this).addClass('highlight');
		});

		jQuery('div.menu-item').mouseout(function(){		
			jQuery(this).removeClass('pointer');
			jQuery(this).removeClass('highlight');			
		});

		jQuery('div.menu-item').click(function(){			
			document.location = jQuery(this).attr('title');			
		});		
		
		
		
	// ***********************************************************************************************	
	// Button layout
	// ***********************************************************************************************	

		jQuery('input.button').attr('onfocus', 'blur();');

		jQuery('input.button').mouseover(function() {						
			jQuery(this).addClass('button-mouseover');			
		});
		
		jQuery('input.button').mouseout(function() {						
			jQuery(this).removeClass('button-mouseover').removeClass('button-down');
		});
		
		jQuery('input.button').mousedown(function() {
			jQuery(this).addClass('button-down');			
		});

		jQuery('input.button').mouseup(function() {
			jQuery(this).removeClass('button-down');
		});		
		
		
		
		

	});