    var isIE;
    //var rootpath="file:///C:/Documents%20and%20Settings/Drew/My%20Documents/fizz3/hackup/site/";


    var ghref;
	var mx="mailto:sales@gingellcottage.co.uk";//?subject=Order%20Catalogue&body=Include%20postal%20address


/* *********************** END GOOGLE MAP FUNCTIONS START ANYFADER ********************* */
        function formatText(index, panel) {
		//  return index + "";
		  return "";
	    }
        $(function() {
          if($('.anythingFader').length==0) return;      
            $('.anythingFader').anythingFader({
                autoPlay: true,                 // This turns off the entire FUNCTIONALITY, not just if it starts running or not.
                delay: 8000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 800,             // How long the slide transition takes
                hashTags: false,                 // Should links change the hashtag in the URL?
                buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
                pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
                startText: "",                // Start text
                stopText: "",               // Stop text
                navigationFormatter: formatText   // Details at the top of the file on this use (advanced use)
            });

            
            $("#slide-jump").click(function(){
                $('.anythingFader').anythingFader(1);
            });
            
        });
	
/* ******************* $ DOCUMENT READY *********************** */
		$(document).ready(function() {
		      $('#inner').hide();
		      $('.loading').show();

var fpSettings = {
	clip:{
		url:"superfixvid/sfixwithmusic.flv",
		autoPlay:false
	},
	canvas:  {
		background: 'none'
	},
	screen:  {
		background: 'none'
	} ,
	plugins:  {
		controls:{
			backgroundGradient:'low',
			backgroundColor:'transparent',
			volumeSliderColor:'#88df34',
			bufferColor:'#ff0000',
			all:false,
			fullscreen:false,
			scrubber:true,
			play:true,
			volume:true,
			mute:true,
			autoHide:'always'
		}
	}  
};


		isIE = navigator.appName.indexOf("Microsoft") != -1;


				if($('#mapcontainer').length > 0) OnMapLoad();
				$('.testim').colorbox({width:"50%", href:"testimonials.html",rel:".testimonials"});

		        		$('a.cbox').each(function() {
		 		      $('a.cbox',this).live('click',function() {
			       		var box=$(this).attr('rel'); 
			        		$(this).colorbox({open:true,transition:"elastic",opacity:0.5,width:"630px", inline:true, href:box,
					     onOpen:function(){ 
			       			// y=$(window).scrollTop();
						// $(window).scrollTop(0);
					     },
					     onClosed:function() {
						// $('#dbug').html(y+" ");
						// $(window).scrollTop(y); 
					     }
			       	      	});
		                   	     return false; 
				     });
		          		});



			    	$('.loading').hide();
			    	$('#inner').show(); //customFadeIn('slow');
		$("a.player").colorbox({ inline:true, opacity:0.8,  width:"600px", height:"480px",resize:true,href:"#mediaPlayer", current:"",onComplete:function() {
		    //alert(fpSettings.clip.url);
		    var uu = this.href.toString();
		    //var d = $.fn.colorbox.element();
		    //var um = d.href.toString();
		    //if(uu==um){
			$("#cboxTitle").css({"visibility":"visible","color":"#efefef"});
			$("#cboxLoadedContent").css("overflow","hidden");
			flowplayer("mediaPlayer",relativeURL+"flow/flowplayer-3.2.1.swf",fpSettings);
			flowplayer().play(uu); 
		    //}
		  },
		onClosed:function() {$.fn.colorbox.element().blur();}
		});



		}); // END doc ready
