<!-- // hide from older browsers


var $Jstuff = jQuery.noConflict();
var stayOpen = false;
var theheight = '125px';
var themenuheight = '120px';
var FA_pausefade;

function FadeTheObj(objname,opacity,endopacity,fadeinc) {
	
		if (opacity < endopacity) {
			/* current image not faded up fully yet...so increase its opacity */
			Objfader(AllocObj(objname),opacity);
			opacity += fadeinc; /* was 10 *///alert(opacity);
			window.setTimeout("FadeTheObj(\""+objname+"\","+opacity+","+endopacity+","+fadeinc+")", 50);  /* wae 30 */
		} else {
			Objfader(AllocObj(objname),endopacity);
		}

}


function FadeTheObjDown(objname,opacity,endopacity,fadeinc) {
	
		if (opacity > endopacity) {
			/* current image not faded up fully yet...so increase its opacity */
			Objfader(AllocObj(objname),opacity);
			opacity -= fadeinc; /* was 10 *///alert(opacity);
			window.setTimeout("FadeTheObj(\""+objname+"\","+opacity+","+endopacity+","+fadeinc+")", 50);  /* wae 30 */
		} else {
			Objfader(AllocObj(objname),endopacity);
			setObjDisplay(objname,'none'); 
			setObjVis(objname,'hidden'); 
		}

}



function onloadfunction() {

	    if (gDoAnimation == true){
				Objfader(AllocObj("splashbox"),'0');
				setObjDisplay("splashbox",'inline');
				FadeTheObj("splashbox",0,100,3);
												
				FA_goto = window.setTimeout("GoToPage()", 15000);  /* wae 30 */
	    }
	    else
	    {
	    	if ( gDoSlideShow) {runSlideShow();}
	    	FA_pausefade = window.setTimeout("LoadTheFlowUp()", 500);

	    }

 
}

function BodyClick(){
	/* if splashbox visible allow click */
	
	if (document.getElementById("splashbox")){
			var objs = document.getElementById("splashbox");

		if (objs.style.visibility != "hidden")
			{
				GoToPage();
			}
	}
	
}






function GoToPage(){
	
	clearTimeout(FA_goto);
	clearTimeout(FA_pausefade);
	
	
		
	FadeTheObjDown("splashbox",100,0,50);

	setObjDisplay("content",'inline'); 
	runSlideShow();
	/*	

	setObjDisplay("bannerbox",'inline'); 
	FadeTheObj("bannerbox",0,100,10);
	
	setObjDisplay("menu",'inline'); 
	FadeTheObj("menu",0,100,10);
	
	setObjDisplay("footer",'block'); 
	FadeTheObj("footer",0,100,10);
	*/
	
	setObjVis("page",'visible'); 
	FadeTheObj("page",0,100,3);

	
	setObjDisplay("splashbox",'none'); 
	setObjVis("splashbox",'hidden'); 
	/*setObjDisplay("splashboxwrapper",'none'); 
	setObjVis("splashboxwrapper",'hidden');
	*/
		
}

 

 
function sliderInfoPanelFunction(theText,theURL){
	
   if (theText.indexOf("rel=") > 0){
   }
   
   
	$Jstuff("#infopanel").css({"filter":"alpha(opacity=70)","opacity":"0.7"});	
	$Jstuff("#infopanel").animate({ "height": theheight},500, "swing");
	
	$Jstuff("#infopanel").html(theText);

}

function sliderInfoPanelEmpty(){
	
	/* Trick to pause before moving on */
	$Jstuff("#infopanel").animate({opacity: 0.85}, 20, "swing",function(){sliderInfoPanelEmptyCore();})
	   	
	
}
	

function sliderInfoPanelEmptyCore(){
   if (stayOpen == false)
	{
	    /* $Jstuff("#cpp").css({"background":"#0000ff"}); */
		$Jstuff("#infopanel").animate({"opacity": "0", "height": "0px"},500, "swing");
	}
	
}

$Jstuff(document).ready(function(){
	
   /* $Jstuff.preloadImages("../images/spacer.gif" ,"../images/grey-background-strip.jpg" , "../images/Fetherstonhaugh_logo.gif"); */
	
	if ( $Jstuff("#archive_button").length > 0 ){   	
	    	$Jstuff('#archive_button')
    			.animate({ marginLeft: 0 }, 3000)
    			.animate({"opacity": "show"}, 1000 , "swing"); 	
	 		}
	    	
	if ( $Jstuff("#twitter_link").length > 3000 ){   	
	    	$Jstuff('#twitter_link')
    			.animate({ marginLeft: 0 }, 4000)
    			.animate({"opacity": "show"}, 1000 , "swing"); 	
	 		}


   $Jstuff("#content").click(function(event){
      $Jstuff(".wpcf7-response-output").animate({"opacity": "hide"}, 1000 , "swing"); 
   });
	
 });

function sliderInfoPanelEmptyCheckOverImage(){
}

function sliderInfoPanelEmptyAndLoad(theText,theURL){
	$Jstuff("#infopanel").animate({"opacity": "0", "height": "0px"},100, "swing",function(){sliderInfoPanelFunction(theText,theURL);});
}




function EmptyText (){
	$Jstuff("#infopanel").html('');
}

function LayerUp(){
	
    $Jstuff("#content").css({"zIndex":"1"});
    $Jstuff("#bannerbox").css({"zIndex":"10"});
    $Jstuff("#menu").css({"zIndex":"100"});
    $Jstuff("#footer").css({"zIndex":"100"});
    $Jstuff("#content").fadeIn(1);

	$Jstuff("#content").css({"display":"inline"});
    if(typeof window.LoadTheFlow == 'function') {
    	LoadTheFlow();
    	}
};

function LoadTheFlowUp(){

    if (typeof LoadTheFlow=="function")
    	{
    		LoadTheFlow();
    		}

};

this.imagePreviewJQ = function(){	
	/* CONFIG */
		
		xOffset = 100;
		yOffset = 30;
		
		midscreen=document.documentElement.clientHeight/2;
		
	/* END CONFIG */
	$Jstuff("a.fapreview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
            $Jstuff("#fapreview").html("");
            //$Jstuff("#iframeID").attr("src","");
			$Jstuff("body").append("<div id='fapreview'><iframe id='iframeID' src='"+ this.href +"' alt='Image preview' width='700px' height='600px' />"+ c +"</div>");								 
		$Jstuff("#fapreview")
			.css("top",(e.pageY - xOffset + 30) + "px")
			.css("left","100px")
			.slideDown("normal");						
    },
	function(){
		this.title = this.t;		
		$Jstuff("#fapreview").remove();
    });	
	$Jstuff("a.fapreview").mousemove(function(e){
		$Jstuff("#fapreview")
			.css("top",(e.pageY - xOffset + 30) + "px")
			.css("left","100px");
	});			
};


function doShadowLink(thisa) {
	$Jstuff('#sb-container').css({"top":"0px"});
	$Jstuff('#sb-overlay').css({"top":"0px"});

	/*Iphone special case */
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) 
		{
	     	return true;
		}

	else
		{
		
			$Jstuff('#'+thisa).click();
			return false;
		}

}




$Jstuff.fn.stop = function(){
    this.each(function(){
        $Jstuff.dequeue(this, "fx");
    });
    return this;
};


// -->

