/*  marc wright
 *  File:       marcwright.js
 *  Abstract:   javascript for http://marcwright.de/
 *  Version:    1.0
 *  (c):        Marc Wright | Team Tejat Hamburg 2011
*/



/* console log */
jQuery(function($){
    try
    {
        console;
    }
    catch(err)
    {
        console =
        {
            log: function(){},
            dir: function(){}
        }
    }
});



function censor(VAR){
		
		if(VAR == true){
			$("body #wrap div#content").each(function() {
			  $(this).html($(this).html().replace(/([^a href])/g,"█"));
			});
		}
}

$(document).ready(function(){
		
		$('a span#censorship').click(function(){
			censor(true);
			return false
		})
		
		$('a[rel=tipsy]').tipsy({gravity: 'e', fade: true, html: true, delayIn: 50, delayOut: 20});
		
		$('.proj', this).mouseenter(function(){
			$('.manualTipsy', this).show();
					}).mouseleave(function(){
				$('.manualTipsy', this).hide();
		});

		
		$('#archive_chrono').mouseover(function(event){
		//event.preventDefault();
		//return false;
		})



		//stick the footer at the bottom of the page if we're on an iPad/iPhone due to viewport/page bugs in mobile webkit
		if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod'){
		$('#footer').css({ display: "none"})
		}
})


function lovisEnDetail(popup2) {
  OpenWin = this.open(popup2, "CtrlWindow2", "toolbar=no,menubar=no,location=no,scrollbars=no,resize=yes, status=yes, width=1000,height=760");
}


