	$(document).ready(function() { 
		$("#navigation-find input.input-text").click(function(){
			$("#navigation-find img").hide();
		});	
		
		var config = {    
			 sensitivity: 5,
			 interval: 200,
			 over: showSubMenu,
			 timeout: 500,
			 out: hideSubMenu   
		};

		var onlineconfig = {    
			 sensitivity: 5,
			 interval: 200,
			 over: showSubOnlineMenu,
			 timeout: 500,
			 out: hideSubOnlineMenu   
		};

		$("#navigation-services").hoverIntent(config);			

		$("#navigation-shop").hoverIntent(onlineconfig);			
		
		$("a.lightbox").fancybox(); 

		$(".advanced-toggle").click(function(){
			$('#advanced').slideToggle(500);
			sIFR.replace(futura, {
			  selector: '#advanced h2',
			  css: '.sIFR-root { color: #8c8987; font-size: 26px; font-weight: normal; text-transform: uppercase; letter-spacing: 6; leading: -10; text-align: left; }',
			  wmode: 'transparent'
			});				
			return false;
		});			
		
	});

	function showSubMenu(){
		$("#navigation-services-sub").show();
	}
	
	function hideSubMenu(){
		$("#navigation-services-sub").hide();
	}			

	function showSubOnlineMenu(){
		$("#navigation-shop-sub").show();
	}
	
	function hideSubOnlineMenu(){
		$("#navigation-shop-sub").hide();
	}		

	
	function searchcancel(){
		$('#advanced').slideToggle(500);
		return false;
	}
	
	function animateUP(){
		$('#advanced').slideToggle(500);
	}		
	
	function onAfter() { 
		sIFR.replace(futura, {
		  selector: '.topten-item-header-right .number',
		  css: '.sIFR-root { color: #666666; font-size: 26px; font-weight: normal; text-transform: uppercase; letter-spacing: 6;, leading: -10; }',
		  wmode: 'transparent'
		});
		
		sIFR.replace(futura, {
		  selector: '.topten-item-header-right .author, .topten-item-header-right .title',
		  css: '.sIFR-root { color: #da3930; font-size: 26px; font-weight: normal; text-transform: uppercase; letter-spacing: 6; leading: -10; }',
		  wmode: 'transparent'
		});		
	}	

	var futura = { src: 'core/swf/futura.swf' };
	var futurabold = { src: 'core/swf/futura-bold.swf' };

	sIFR.activate(futura,futurabold);

	sIFR.replace(futura, {
	  selector: '#title-beta h2',
	  css: '.sIFR-root { color: #8c8987; font-size: 26px; font-weight: normal; text-transform: uppercase; letter-spacing: 6; leading: -10; text-align: right; }',
	  wmode: 'transparent'
	});		
	
	sIFR.replace(futura, {
	  selector: 'h2',
	  css: '.sIFR-root { color: #8c8987; font-size: 26px; font-weight: normal; text-transform: uppercase; letter-spacing: 6; leading: -10; }',
	  wmode: 'transparent'
	});
	
	sIFR.replace(futura, {
	  selector: '.topten-item-header-right .number',
	  css: '.sIFR-root { color: #666666; font-size: 26px; font-weight: normal; text-transform: uppercase; letter-spacing: 6;, leading: -10; }',
	  wmode: 'transparent'
	});
	
	sIFR.replace(futura, {
	  selector: '.topten-item-header-right .author, .topten-item-header-right .title',
	  css: '.sIFR-root { color: #da3930; font-size: 26px; font-weight: normal; text-transform: uppercase; letter-spacing: 6; leading: -10; }',
	  wmode: 'transparent'
	});	
	
	sIFR.replace(futurabold, {
	  selector: '.pagination-beta span',
	  css: '.sIFR-root { color: #ffffff; font-size: 10px; font-weight: bold; text-transform: uppercase; text-align: center; letter-spacing: 1; }',
	  wmode: 'transparent'
	});	
	
	//Clear default Value onFocus
	function clearDefault(el,clss) {
  	if (el.defaultValue==el.value) el.value = ""
  	// If CSS supported, clear the style
		if (el.style) el.className = clss
	}


	//Check content of txtKeywords on submit of search
	function checktxtKeywords(fn,val){
	if (document.forms[fn].txtKeywords.value == val){
		document.forms[fn].txtKeywords.value='';
		} else {
		}}

	//Swap Values to make the image disappear in the search field
//TAXI.clearField = function() {
    //$('.clearSearch').bind('focus', function(){
       // if( this.value == this.defaultValue ) {
         //   this.value = "";
        //}
    //});
   // $('.clearSearch').bind('blur', function(){
     //   if( !this.value.length ) {
        //    this.value = this.defaultValue;
       // }
    //});
//};

