$(document).ready(function(){
			//Image slider
			$("#slider").easySlider()

			//Search box clear
			$("#keywords").focus(function() {
				if( this.value == this.defaultValue ) {
					this.value = "";
				}
			}).blur(function() {
				if( !this.value.length ) {
					this.value = this.defaultValue;
				}
			});
			
			//Comments box clear
			$("#comments").focus(function() {
				if( this.value == this.defaultValue ) {
					this.value = "";
				}
			}).blur(function() {
				if( !this.value.length ) {
					this.value = this.defaultValue;
				}
			});
			
			$("#xtufdxtufd").focus(function() {
				if( this.value == this.defaultValue ) {
					this.value = "";
				}
			}).blur(function() {
				if( !this.value.length ) {
					this.value = this.defaultValue;
				}
			});
			
			//Change cursor on form elements
			$('input.submit').hover(function() {
				$(this).css('cursor','pointer');
				}, function() {
				$(this).css('cursor','auto');
			});
			
			//add class for link lists
			$("#content #col2 ul li a").parent().parent().addClass("list_link");
			$("#home #content ul li a").parent().parent().removeClass("list_link");
			
			//new text resizer
			if($.cookie("resize")) {
				$("link.text").attr("href",$.cookie("resize"));
			}
			
			$("ul.textresizer a").click(function() {
				$("link.text").attr("href",$(this).attr('rel'));
				$.cookie("resize",$(this).attr('rel'), {expires: 365, path: '/'});
				return false;
			});

			
			//Stylesheet switcher
			if($.cookie("css")) {
				$("link.default").attr("href",$.cookie("css"));
			}
			
			$("li.zoom a").click(function() {
				$("link.default").attr("href",$(this).attr('rel'));
				$.cookie("css",$(this).attr('rel'), {expires: 365, path: '/'});
				return false;
			});
			
			//image cycle
			$('.header_image').cycle({
				fx: 'fade' // choose your transition type
			});
			
			//Publications Trigger	
			$('li.publications').click(function() {	
				$('li.publications ul').slideDown('fast');
				$(this).addClass('current')
			});
		
		 
			//Accordian Content	
			$("li.publications ul").hide();
			$("li.publications ul.show").show();
			
			
			//Change Cursor
			$('li.publications').hover(function() {
				$(this).css('cursor','pointer');
				}, function() {
				$(this).css('cursor','auto');
			});
			
                   
	
			
		});
