// Pfad zum Rootfolder der Site
// lokal
//var rootpath = '/workspace/klm/www.kurtius-looft.com/';

// 1und1 server
var rootpath = '/';


jQuery.noConflict();
jQuery(document).ready(function () {

    setBodyClass();

    jQuery(document).pngFix();
	jQuery('#leftcontent').fadeIn(2500);


	jQuery('.animation img').attr('class', 'showImages');

	//home
	slide('home2', -500, 0, 1, 1, 'linear', 20000, false);
	slide('home3', 500, 0, 1, 1, 'linear', 10000, false);

	//think
	slide('think2', 0, 0, 0.25, 0.05, 'linear', 4000, true);
	slide('think3', 0, 315, 1, 0, 'linear', 10000, false);

	//design
	slide('design2', 0, 0, 1, 1, 'linear', 6000, false);
	slide('design1', 0, 0, 0.15, 1, 'linear', 6000, true);

	//code
	slide('code2', 0, 0, 0, 1, 'linear', 6000, true);
	slide('code3', 0, 0, 0, 1, 'linear', 5000, true);

	//results
	slide('results2', 0, 0, 0.2, 1, 'linear', 4000, true);

	//imprint
	slide('imprint2', 0, 0, 0.3, 0, 'linear', 4000, true);

	//kontakt
	slide('kontakt2', 0, 0, 1, 0, 'linear', 3000, true);

	//imprint
	jQuery('.inner').touchScroll();


}); // ENDE Document ready




// Bei activem Javascript wird der <body> mit der Klasse "scriptsupport" erweitert
function setBodyClass(){
	if(!document.body.className){
		document.body.className = document.body.className + 'scriptsupport';
	} else{
		document.body.className = document.body.className + ' scriptsupport';
	}
}

function showRightContent(){
	jQuery('#rightcontent').fadeIn(2500);
};

function hideRightContent(){
	jQuery('#rightcontent').fadeOut(500);
};



  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28961582-1']);
  _gaq.push(['_setDomainName', 'kurtius-looft.com']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; 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);
  })();



