//##########################################################################################
//I have used some javascript on this page from demo resources that I can't remember.
//If you see some of your code here please let me know and I will credit you accordingly. :-)  
// Mark Simons 09 www.sponsormark.co.uk
//##########################################################################################

$(document).ready(function(){
						   
//expandable box hide content when document is ready
    $(".expandable_box").css("display","none");

//trigger bubbles
	$(".trigger").tooltip();

});

	
	$(document).ready(function(){

//Logo here background fades
    if ($.browser.msie && $.browser.version < 7) return;
    
    $('#logoHere li, #rKeeper li')
        .removeClass('highlight')
        .find('a')
        .append('<span class="hover" />').each(function () {
                var $span = $('> span.hover', this).css('opacity', 0);
                $(this).hover(function () {
                    // on hover
                    $span.stop().fadeTo(100, 1);
                }, function () {
                    // off hover
                    $span.stop().fadeTo(200, 0);
                });
    });
		
		//fin	
});
	
		$(document).ready(function(){


//expandable box function
    $('a.MenuTop').click(function(){  								  
		$(this).toggleClass("MenuTopon");  
		var id = $(this).attr("id");
		var number = id.substring(6,id.length);
		$("#myDiv"+number).slideToggle("fast");
	});
	//fin	
});
	
		$(document).ready(function(){

//Slide Scrolling
    $('a[href*=#]').click(function() {
    
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({scrollTop: targetOffset}, 900);
                    
                return false;
                
            }
            
        }
        
    });
	
//fin	
});



