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




  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26195763-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() {
						   
//$('#content').css({height:'530px'});
$('#center').css({overflow:'hidden'});
						   
						   
// 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);

});






});

