$(document).ready(function() {

	// Login Web Form Background Hover - input#SZUsername
	$('input#SZUsername').focus(function() {
		$(this).addClass('username-hover');
	});
	
	$('input#SZUsername').blur(function() {
		if(typeof $(this).val() != 'string' || $(this).val().length == 0)
			{
				$(this).val('');
				$(this).removeClass('username-hover');
			}
	});

	// Login Web Form Background Hover - input#SZPassword	
	$('input#SZPassword').focus(function() {
		$(this).addClass('password-hover');
	});
	
	$('input#SZPassword').blur(function() {
		if(typeof $(this).val() != 'string' || $(this).val().length == 0)
			{
				$(this).val('');
				$(this).removeClass('password-hover');
			}
	});
	
	// Remove HREF from Bookings Box Paragraph & Bookings List View

	$('div.booking-list p.descrption a').each(function() {
		$(this).before('<span>' + $(this).text() + '</span>').remove();
	});


	/**** Reverse Order Numbers ****/
	var oCount = $('ul#slideshow li.bgImage').size();
	jQuery('ul#slideshow li.bgImage').each(function(i){
		 var oValue = oCount - i;
		 jQuery(this).css('z-index',oValue * 2);
	});
	jQuery('ul#slideshow li div.zIndex').each(function(i){
		 var oValue = oCount - i;
		 jQuery(this).css('z-index',oValue * 2 + 1);
	});


});
