			$().ready(function() {
				$('#coda-slider-1').codaSlider({
					autoSlide: true,
                    autoSlideInterval: 7000,
					dynamicArrows: false,
					dynamicTabs: false,
					crossLinking: false
				});
			});
	$(function() {
		$("ul#navigation li a span#current").css("opacity","1");
		// set opacity to nill on page load
		$("ul#navigation span").not('#current').css("opacity","0");
		// on mouse over
		$("ul#navigation span").not('#current').hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, 'slow');
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, 'slow');
		});
	});
$(document).ready(function() {
					$("#twitter").getTwitter({
					userName: "Blue_Canvas",
					numTweets: 3,
					loaderText: "Loading tweets...",
					slideIn: true,
					showHeading: true,
					headingText: "Latest Tweets",
					showProfileLink: true
				});
// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText='Read more of this vacancy';
var hideText='Close this box please';

// initialise the visibility check
var is_visible = false;

// append show/hide links to the element directly preceding the element with a class of "toggle"
$('.toggle').prev().append('<a href="#" class="toggleLink">'+showText+'</a>');

// hide all of the elements with a class of 'toggle'
$('.toggle').hide();

// capture clicks on the toggle links
$('a.toggleLink').click(function() {

if ($(this).html()==showText) { 
$(this).html(hideText); } else { 
$(this).html(showText); 
}
// toggle the display 
$(this).parent().next('.toggle').toggle('slow'); 

return false; 

});
	
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");
		 $.cookie('showTop', 'collapsed');
	return false;
	});		
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("slow");	
		$.cookie('showTop', 'expanded');
	return false;
	});	
	// Switch buttons from "Log In" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});		
	// COOKIES
    // Header State
    var showTop = $.cookie('showTop');
    // Set the user's selection for the Header State
    if (showTop == 'collapsed') {
	$("div#panel").show();
	$("#toggle a").toggle();
	
    };
	
	
	// Expand Form Homepage
	$("#open_form").click(function(){
		$("div#extra_form").slideDown("slow");
		 $.cookie('showMore', 'collapsed');
	return false;
	});	
	// Collapse Panel
	$("#close_form").click(function(){
		$("div#extra_form").slideUp("slow");	
		$.cookie('showMore', 'expanded');
	return false;
 
	});	
	
	// Switch buttons from "Log In" to "Close Panel" on click
	$(".more_info a").click(function () {
		$(".more_info a").toggle();
	});		
	// COOKIES
    // Header State
    var showMore = $.cookie('showMore');
 
    // Set the user's selection for the Header State
    if (showMore == 'collapsed') {
	$("div#extra_form").show();
	$(".more_info a").toggle();	
    };	
});
