
$(document).ready(function(){

	//$(".sideMenu li:last").addClass("last");

    $('#txtSearchTerm').click(function () { if ($(this).attr('value') == 'Keyword Search') $(this).attr('value', '') });
    $('#txtSearchTerm').blur(function () { if ($(this).attr('value') == '') $(this).attr('value', 'Keyword Search') });


	$('#txtName').click(function () { if ($(this).attr('value') == 'Name') $(this).attr('value', '') });
	$('#txtName').blur(function () { if ($(this).attr('value') == '') $(this).attr('value', 'Name') });

	$('#txtEmail').click(function () { if ($(this).attr('value') == 'Email') $(this).attr('value', '') });
	$('#txtEmail').blur(function () { if ($(this).attr('value') == '') $(this).attr('value', 'Email') });

	$('#txtCapcha').click(function () { if ($(this).attr('value') == 'Enter Code') $(this).attr('value', '') });
	$('#txtCapcha').blur(function () { if ($(this).attr('value') == '') $(this).attr('value', 'Enter Code') });

	/* Highlighting sub menu & side menu items */
	//var url = window.location.href;
	var url = window.location.pathname;
	url = url.substr(url.lastIndexOf("/") + 1);
	//url = url.replace(/#/g, "");
	url = url.split("#")[0];
	
	if( (url=='') || (url=='/Default.aspx') ) {
		$(".topMenu .li:first a").addClass("act");
	} else {
		$(".topMenu, .sideMenu, #path").find("a[href='" + url + "']").addClass("act");
	}
	
});
