			$(function(){
				$("#name")
					.focus(function()
						{
						if(this.value == 'Your name')
							this.value = '';
						})
					.blur(function()
						{
						if(this.value == '')
							this.value = 'Your name';
						});
				$("#mail")
					.focus(function()
						{
						if(this.value == 'Your e-mail')
							this.value = '';
						})
					.blur(function()
						{
						if(this.value == '')
							this.value = 'Your e-mail';
						});
				$("#message")
					.focus(function(e)
						{
						if(this.innerHTML == 'Your message')
							this.innerHTML = '';
						})
//					.blur(function(e)
//						{
//						if(this.innerHTML == '')
//							this.innerHTML = 'Your message';
//						});

				// var originalSizes = new Array();
				$('#projects').jScrollHorizontalPane();
				
				$('.details').hide();
				
				$('#projects ul li').mouseenter(function(){
					$('.details', this).fadeIn('fast');
				});
				
				$('#projects ul li').mouseleave(function(){
					$('.details', this).fadeOut('fast');
				});
				
				$('.popup').remove();
				
				$('.trigger').mouseenter(function(){
					$('.popup').fadeIn('fast');
				}).mouseleave(function(){
					$('.popup').fadeOut('fast');
				});
				
				$('input').focus(function(){
					$(this).css({
						"background-color": "#111"
					});
				}).blur(function(){
					$(this).css({
						"background-color": "#000"
					});
				});
				
				$('textarea').focus(function(){
					$(this).css({
						"background-color": "#111"
					});
				}).blur(function(){
					$(this).css({
						"background-color": "#000"
					});
				});

			});

/* google analytics scripts */
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try { var pageTracker = _gat._getTracker("UA-10027524-6"); pageTracker._trackPageview(); } catch(err) {}
