$(document).ready(function() {

$(".search-field, .search-field-home").attr('value', 'SEARCH');

	$(".search-field, .search-field-home").focusin(function() {


				$(this).attr('value', '');

		});

});



$(document).ready(function() {

 $('#print-page').click(function(event) {

                event.preventDefault();
                window.print();
     });

});

$(document).ready(function() {


	$("#ctl00_btnQuiz").click(function() {


			$('#quiz-content-wrapper').empty();


	});
});


$(document).ready(function() {

$("#ctl00_ContentPlaceHolder1_DOB").attr('value', 'dd/mm/yyyy');
	
	$("#ctl00_ContentPlaceHolder1_DOB").focusin(function() {


		$(this).attr('value', '');

	});
});

/*$(document).ready(function() {

 $("#ctl00_ContentPlaceHolder1_Iam").focusin(function() {
                $(this).data("origWidth", $(this).css("width")).css("width", "auto");
                $("#ctl00_ContentPlaceHolder1_lblGender").data("orignalWidth", $("#ctl00_ContentPlaceHolder1_lblGender").css("width")).css("width", "5em");
                
            }).focusout(function() {
            
                $(this).css("width", $(this).data("origWidth"));
                $("#ctl00_ContentPlaceHolder1_lblGender").css("width", $("#ctl00_ContentPlaceHolder1_lblGender").data("orignalWidth"));
                
     });

});*/

$(document).ready(function() {

    $('.rating-star').hover(  
        // Handles the mouseover  
        function() {
            $(this).prevAll().andSelf().addClass('rating-over');
            $(this).andSelf().addClass('rating-over');
            
        },  
        // Handles the mouseout  
        function() {  

              $(this).andSelf().removeClass('rating-over');
             
       }  
   ).click(function(event) {
	   
		event.preventDefault();
		
		
   });

});

$(document).ready(function() {

	$('#bookmark').click(function(event) {

		event.preventDefault();

		title = document.title;

		url = window.location;

		if (window.sidebar) { // Mozilla Firefox Bookmark

			window.sidebar.addPanel(title, url, "");

		} else if (window.external) {
			// IE Favorite		
			window.external.AddFavorite(url, title);

		} else if (window.opera && window.print) {

			// Opera Hotlist		
			return true;

		} else {


			alert("Sorry, your browser doesn't support this feature");

		}


	});

	$('#rate-page').click(function(eventRate) {

		eventRate.preventDefault();

	});

});

