function dom_init() {

	// COLORBOX
	$("a[rel='colorbox']").colorbox({transition:'elastic'});
	$("a[rel='colorbox_iFrame']").colorbox({ iframe : true, width:'90%', height:'95%', transition:'none' });
	
	// MAILTO
	$('a.mailer').each(function() {
		e = this.rel.replace('/','@');
		this.href = 'mailto:' + e;
		$(this).text(e);
		$(this).attr("title", "E-Mail schreiben");
	});
	// <a class="mailer" rel="mail/domain.tld" href="#"></a>, <noscript></noscript>	
	
	$('a[href^="http://"]').not('a[href*="vince-ebert.de/docs/"]').each(function(){
		$(this).attr("target", "_blank");
		//if (   ($(this).css('background-image')).indexOf('arrow') != -1   )
		if (  $(this).hasClass("arrow")  )
		{
			$(this).css({ 'background' : 'url(/img/all/arrow_extern.gif) 1px 1px no-repeat' });
		}
	});
	
	// LINK TARGET & TITLE/TOOLTIP
	$('a[href*=".pdf"]').attr("target", "_blank");
	$('a[href*=".pdf"]').attr("title", "öffnet PDF in einem neuen Fenster");
	$('a[href^="http://"]').not('a[href*="vince-ebert.de/docs/"]').attr("title", "öffnet externen Link in einem neuen Fenster");	

	
	// TOOLTIP
	$('img[title], a[title]').tooltip({
		delay:100,
		track:true,
		showURL:false,
		top:10,
		left:10,
		fade: 250,
		bodyHandler: function() {
			return this.tooltipText;
		}
		// showBody: " - "; //extraClass: "fancy"
	});
	
	// WINDOW.SCROLL
	// $(document).ready(function() {
	$('a[href*=#top]').bind("click", function(event) {
		event.preventDefault();
		var ziel = $(this).attr("href");
	
				if ($.browser.opera) {
					var target = 'html';
				}else{
					var target = 'html,body';
				}
	
		$(target).animate({
			scrollTop: $(ziel).offset().top
		}, 400 , function (){location.hash = ziel;});
	});
	// return false;
	// });
	
	// Kontakt Slider
	$('.contact').mouseenter(function(){
			$(this).stop().animate({bottom:0},250,'swing');
			$('.col2_shadowTop').css({'background':'url(../../img/shadow_top.png) left top'});
	}).mouseleave(function(){
			$(this).stop().animate({bottom:-66}, {duration:250, easing:'swing', complete:function(){
			$('.col2_shadowTop').css({'background':'none'});
		}});
	});

//	// fixed FOOTER	
//	$('.fixed_bottom').mouseover(function(){
//		$(this).stop().animate({bottom:0},'fast','swing');
//	}).mouseout(function(){
//		$(this).stop().animate({bottom:-25},'fast','swing');
//	});

	
}
