function Client() {
}

Client.prototype.mobileClients = [
	"midp",
	"240x320",
	"blackberry",
	"netfront",
	"nokia",
	"panasonic",
	"portalmmm",
	"sharp",
	"sie-",
	"sonyericsson",
	"symbian",
	"windows ce",
	"benq",
	"mda",
	"mot-",
	"opera mini",
	"philips",
	"pocket pc",
	"sagem",
	"samsung",
	"sda",
	"sgh-",
	"vodafone",
	"xda",
	"iphone",
	"android"
];

Client.prototype.isMobileClient = function(userAgent)
{
	userAgent=userAgent.toLowerCase();
	for (var i in this.mobileClients) {
		if (userAgent.indexOf(this.mobileClients[i]) != -1) {
			return true;
		}
	}
    return false;
}



$(document).ready(function() {

	$('input[type=text]').click(function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});
	//Hide Password Label
	$('input[type=text]').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
			$(this).focus().select();
		}
	});
	$('textarea').click(function() {
			$(this).focus().select();
	});
	
	/*var client = new Client();
if(client.isMobileClient(navigator.userAgent)) {
	$('a[rel]').each(function() {
		if($(this).attr('rel')) {
			$(this).click(function() {window.scrollTo(0, 0);});
		}
	});
}*/

});

