

$(window).load(function () {


	// set the flash
	if( $('flashfallback') )
	{
		var flashvars = {};
		var params = { };
		var atts = {  'wmode':'transparent', 'menu':'false' };
		swfobject.embedSWF("flash/trallfa.swf", "actualFlash", "983", "570", "9.0.0", flashvars, params, atts );
		
		
	}

	// do the form stuff ==========================================================================
	if( $("#username") )
	{
		$("#username").focus(function () {
				if( $(this).attr('value') == "Username" ) $(this).attr('value','');
			$(this).css( { 'border':'1px solid #8c004a;' } );
		});
		
		
		$("#username").blur(function () {
				$(this).css( { 'border':'1px solid #939598;' } );
		});
	
	}
	if( $("#password") )
	{
		$("#password").focus(function () {
			if( $(this).attr('value') == "*****" ) $(this).attr('value','');
			$(this).css( { 'border':'1px solid #8c004a;' } );
		});
		
		
		$("#password").blur(function () {
				$(this).css( { 'border':'1px solid #939598;' } );
		});
	}
  
});

function checkLoginForm()
{
	var un = $("#username").attr('value');
	var pw = $("#password").attr('value');
	
	if( un != "Username" && un != "" && pw != "*****" && pw != "" )
	{
		document.getElementById('taghublogin').submit();
	}
	
}
