



$(document).ready(function(){

		
	//$("#breadCrumb0").jBreadCrumb();
	
	//navigation
	function showMenu() {
			var menu = $(this);
			menu.children(".topMenuItem ul").slideDown();
			var menuClass = menu.children('.topMenuItem a.topLevel').attr('menuClass');
			//$('.topMenuItem a.' + menuClass + ' img.menuImage').hide();
			//$('.topMenuItem a.' + menuClass + ' img.menuHoverImage').show();
		}
		function hideMenu() { 
			var menu = $(this);
			menu.children(".topMenuItem ul").slideUp();
			var menuClass = menu.children('.topMenuItem a.topLevel').attr('menuClass');
			//$('.topMenuItem a.' + menuClass + ' img.menuImage').show();
			//$('.topMenuItem a.' + menuClass + ' img.menuHoverImage').hide();
		}
		$(".topMenuItem").hoverIntent({
			sensitivity: 1,
			interval: 50,
			over: showMenu,
			timeout: 300,
			out: hideMenu
		});
	
	
	///print switcher
	  
	  $(".print_switch").click(function() { 
		$("link.layout").attr("href",$(this).attr('rel'));
		return false;
	});
	
	
	
	
	
	  
	  $("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'fast', /* fast/slow/normal */
			opacity: 0.80, /* Value between 0 and 1 */
			showTitle: false, /* true/false */
			allowresize: true /* true/false */
			
            });
			
			
	//defaultValue = $('#SearchForm_SearchForm_Search').val();  		
		 
    $('#SearchForm_SearchForm_Search').focus(function() {  
        $('#searchForm').removeClass("idleField").addClass("focusField");
        if (this.value == this.defaultValue){  
            this.value = '';  
        }  
        if(this.value != this.defaultValue){  
            this.select();  
        }  
    });  
    $('#SearchForm_SearchForm_Search').blur(function() {  
        $('#searchForm').removeClass("focusField").addClass("idleField");   
        if ($.trim(this.value == '')){  
            this.value = (this.defaultValue ? this.defaultValue : '');  
			
        }  
    });  
			
			
	
	  
        
    });











