// JavaScript Document

	//if (DD_belatedPNG != undefined)
	//{
	//	DD_belatedPNG.fix('img, div');
	//}
	$(document).ready(function() {
		
		$("input.nbe_input").focus(function(srcc)
		{
			
			if ($(this).val() == $(this)[0].title)
			{
				
				$(this).val("");
			}
			
	
		});
		
		$("input.nbe_input").blur(function()
		{
			
			if ($(this).val() == "")
			{
				
				$(this).val($(this)[0].title);
			}
		});
	
		$("input.nbe_input").blur();   
		
		
				$("input.nbe_input").focus(function(srcc)
		{
			
			if ($(this).val() == $(this)[0].title)
			{
				
				$(this).val("");
			}
			
	
		});
		
		$("input.search2").blur(function()
		{
			
			if ($(this).val() == "")
			{
				
				$(this).val($(this)[0].title);
			}
		});
	
		$("input.search2").blur();   
		
		// these functions clear the search bar on focus 
		$("input.search").focus(function(srcc)
		{
			if ($(this).val() == $(this)[0].title)
			{
				
				$(this).val("");
			}
			
	
		});
		
		$("input.search").blur(function()
		{
			
			if ($(this).val() == "")
			{
				
				$(this).val($(this)[0].title);
			}
		});
	
		$("input.search").blur();     
		
		$("#email").focus(function(srcc)
		{
			if ($(this).val() == $(this)[0].title)
			{
				
				$(this).val("");
			}
			
	
		});
		
		$("#email").blur(function()
		{
			if ($(this).val() == "")
			{
				
				$(this).val($(this)[0].title);
			}
		});
	
		$("#email").blur();   
		
		var css = $('.active-menu').attr('rel');
		//css = ltrim(css);
		if (css != undefined) {
		    //$('.contentpage').addClass(css);
			$('.rcl').addClass(css);
		} 
	});
