/*----------------------------------------------
	File:		hamlet.js
	Author:		Sebastian Becker
	Date:		12/2010
----------------------------------------------*/

// Slider
$(window).load(function() { // use this instead of $().ready() to work around safari issue
$("#slider1").slider(); // see jquery.slider.js for documentation

// $('#submit').css('opacity', 1);
// $('#submit').hover( function() { $(this).css('opacity', '.7'); }, function() { $(this).css('opacity', '1'); } );

// hide iPhone statusbar
if(navigator.userAgent.indexOf('iPhone')!=-1) setTimeout(function() { window.scrollTo(0, 1) }, 100);

// attach script
// var element = document.createElement("script");
// element.src = "deferredfunctions.js";
// document.body.appendChild(element);
});


$().ready(function()
{
// alert("I was run at startup !");
}); 


// Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20295032-1']);
_gaq.push(['_gat._anonymizeIp']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
