var $j=jQuery.noConflict();

$j(document).ready( function() {
	$j('#fullSite').click( function(){
		createCookie('mobileSite', 'true', 1);
		return true;
	});
});

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

var $j=jQuery.noConflict();
$j(document).ready(function(){
	/*if( $j('input').length > 0 ){
		$j('input').each( function(){
			if( $j(this).prev('label').length > 0 ){
				$j(this).prev('label').hide();
				if( $j(this).attr('id').indexOf('Username') != -1 )
				{	$j(this).attr('value', 'username');
					$j(this).focus( function(){
						if( $j(this).attr('value') == 'username')
							$j(this).attr('value', '');
					});
					$j(this).blur( function(){
						if( $j(this).attr('value') == '' ){
							$j(this).attr('value', 'username');
						}
					});
				}
				if( $j(this).attr('id').indexOf('Password') != -1 )
				{	$j(this).attr('value', 'password');
					$j(this).focus( function(){
						if( $j(this).attr('value') == 'password')
							$j(this).attr('value', '');
					});
					$j(this).blur( function(){
						if( $j(this).attr('value') == '' ){
							$j(this).attr('value', 'password');
						}
					});
				}
			}
		});
	}
	if( $j('#locList').length > 0 ){
		$j('.locationInfo').hide();
		$j('.locationInfo:first').show();
		$j('#locList h3').click( function(){
			$j('.locationInfo').slideUp();
			$j(this).next().slideDown();
		});
	}
	if( $j('#faq').length > 0 ){
		$j('p.textVariant1').hide();
		$j('p.textVariant1:first').show();
		$j('p').click( function(){
			if( !$j(this).hasClass('textVariant1') ){
				$j('p.textVariant1').slideUp();
				$j(this).next().slideDown();
			}
		});
	}*/
});
