// JavaScript Document
// Navigation Copyright Huber Mediendesign
// sebastian@huber-mediendesign.ch


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25413846-1']);
  _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);
  })();$(document).ready(function() {
						   
	
						   
						   
// Center

var winw = $(window).width() / 2
var winh = $(window).height()


$('.box, .hg').css({left:winw - '325'});
$('#footer').css({top:winh  - 120});
$('#projbox').css({left:winw - '275'});

$(window).resize(function(){
								  
var winh = $(window).height()
var winw = $(window).width() / 2
			  
						  
$('.box, .hg').css({left:winw - '325'});
$('#projbox').css({left:winw - '275'});
$('#footer').css({top:winh - 120});
});	


// footer





// Box

$('.close').live('click', function(){
						  
$('#projbox').fadeOut(300);

});

// Partnerinfo

/*$('#footer .logo a img').mouseover(function() {
												
	var url = $(this).attr('alt');	
	
	$('#partnerinfo').load(url, function() {
	//Img url
	$('#partnerinfo').fadeIn(300);	
	});
	
	$('#footer .logo img').mouseout(function() {
	$('#partnerinfo').fadeOut(300);	
		});
});*/






// Diashow


	
$('.diashow').load('dia.html', function() {
	//Img url
	
$('.diashow img').hide();
$('.diashow img:first').show();

});


});

function slideSwitch() {
	
	
    $('.diashow img:visible').fadeOut(300).next().fadeIn(300);
	

}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

