$(document).ready(function() {
	
	$("a[rel*='external']").attr("target", "_blank");

    $.zoomableType();
       
    $('#eemmll').spemail('||,::','mailbase');

    $('.jq_portfolio').click(function()
	{
		$.scrollTo('#h2_portfolio', {duration: 750} );
		return false;
    });

    $('.jq_faq').click(function() {
        $.scrollTo('#h2_faq', { duration: 750 });
        return false;
    });

	$('.jq_contact').click(function()
	{
		$.scrollTo('#h2_kontakt', {duration: 750});
		return false;
	});
	    
    $(".tipTip").tipTip({maxWidth: "240px"});
    
    $('#slider').nivoSlider({
		effect:'sliceDown',
		animSpeed:800,
		pauseTime:8000,
		directionNav:false});
		
	
	$('#address').click(function()
	{
		$.modal("<div id='map_canvas'></div>", {
            containerCss: { height: '500px', width: '800px' },
            onShow: function (d) {
            
            	var latlng = new google.maps.LatLng(53.63955, 9.93808);
				
				var myOptions = {
			      zoom: 13,
			      center: latlng,
			      navigationControl: true,
				  mapTypeControl: true,
				  scaleControl: true,
				  navigationControlOptions: {
			      	style: google.maps.NavigationControlStyle.ZOOM_PAN
			  	  },
			      mapTypeId: google.maps.MapTypeId.ROADMAP,
			      backgroundColor: '#FFFFFF'
			    };
			    
			    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
			    
			    var staticMarker = new google.maps.Marker({
			      position: latlng,
			      map: map,
			      icon: 'images/marker.png'
				});
				
            }
        });
    });
		
});
