function dom_init() {
	$(document).ready(function(){
					screenshotPreview();
				});
	
	
	//$('a.lightbox').lightBox(); 
				$("a.single").colorbox({width:"60%", height:"60%"}, function(){
					//alert('Howdy, this is an example callback.');
				});
				$("a.single2").colorbox({height:"90%"});
				
				$(".iframe").colorbox({width:"395px", height:"280px", iframe:true});
				$(".iframe2").colorbox({width:"800px", height:"800px", iframe:true});
				
				$(".iframe_yt").colorbox({width:"800px", height:"520px", iframe:true});
				$(".iframe_cb_popup").colorbox({width:"800px", height:"520px", iframe:true});
				

	
	$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
	$('.scroll-pane').jScrollPane({showArrows:true, scrollbarWidth:13 });
	$('.scroll-pane img').fadeTo(0, 0.6);
	$('.scroll-pane img').hover(
		function(){	$(this).fadeTo(350, 1) }, 
		function(){ $(this).fadeTo(350, 0.6) }
	);
	
	$('.empty-combo').sexyCombo({changeCallback: function() {
	   
	}}); //{emptyText:'bitte wählen...'}
	

//$('#toggle1').slideToggle(250, 'swing');
	$('#go1').click(function(){
		$('#toggle1').animate({ 'height': 'toggle', 'opacity': 'toggle' }, 350);
		$('#toggle1 .holderWrap').animate({ 'opacity': 'toggle' }, 350);													 												
	});
	
	$('#go2').click(function(){
		$('#toggle2').animate({ 'height': 'toggle', 'opacity': 'toggle' }, 350);
		$('#toggle2 .holderWrap').animate({	'opacity': 'toggle' }, 350);													 												
	});

	$('.suchbutton').hover(
		function(){ $(this).css({ 'backgroundPosition' : 'bottom' })	},
		function(){ $(this).css({ 'backgroundPosition' : 'top' }) }
	);	
	
	// mailadresse
	if (!document.getElementsByTagName) 
	{
		return;
	}
	else
	{
		var aLinks = document.getElementsByTagName("a");
		for (var i = 0; i < aLinks.length; i++) 
		{
			var mclass = aLinks[i].className;
			if (mclass.indexOf("mailer") > -1) 
			{
					var a = aLinks[i].getAttribute("title").replace(" %20 ",".");
					a = a.replace(" ","@");
					
					var t = document.createTextNode(a);
					aLinks[i].appendChild(t);
					
					var b = a;
					if(a.indexOf("mailto:") < 0)a="mailto:"+a;
					if(b.indexOf("mailto:") >= 0)b = b.substr(7);
					aLinks[i].setAttribute("href",a);
					//aLinks[i].setAttribute("title","Mailen Sie an: "+b);
					aLinks[i].setAttribute("title","");
			}
			
		}
	
	}
	
	// Link Elemente, die ueber RTE eingeügt wurde die richtige Klasse zusweisen:
	// $('.textblock a').addClass('textlink');
	
	$('#gewinnspielTeaser').click(function()
	{
		//
		var url = $(this).attr('href');
		window.open(url, 'gewinnspiel', 'width=700, height=750');
		return false;
	});
	
}
