/*
* BerlinerEnergietage
* standard.js
*
* Author: Holger M. Stangl
* Company: Limeflavour | http://www.limeflavour.com
* Date: Feb 2009
*/


window.onload = new Function("blurLinks();"); //setHeight();setContrastLink();

$().bind('cbox_complete', function(){
	var titleheight = $('#cboxTitle').height();
	if (titleheight < 25){ 
		titleheight = 25;
	}
	titleheight = titleheight + 12;
	$('#colorbox').height($('#colorbox').height() + titleheight);
	$('#cboxWrapper').height($('#cboxWrapper').height() + titleheight);
	$('#cboxMiddleLeft').height($('#cboxMiddleLeft').height() + titleheight);
	$('#cboxMiddleRight').height($('#cboxMiddleRight').height() + titleheight);
	$('#cboxContent').height($('#cboxContent').height() + titleheight);
	$('#cboxLoadedContent').height($('#cboxLoadedContent').height() + titleheight);
});

/*
$(document).ready(function(){
	$("a[rel='colorbox']").colorbox(
		{
		transition: "elastic",
		speed: 350,
		initialWidth: "400",
		initialHeight: "400",
		maxWidth: "800",
		maxHeight: "500",		
		opacity: 0.9,
		current: "Bild {current} von {total}",
		previous: "vorheriges",
		next: "nächstes",
		close: "schließen",
		}
		
	);	
});
*/
 
function blurLinks() {
	var aTags = document.getElementsByTagName('a');
	var i;
	for ( i=0; i < aTags.length; i++ )
	{
		var Fokus = document.createAttribute("onfocus");
		Fokus.nodeValue = "if(this.blur)this.blur()";
		document.getElementsByTagName("a")[i].setAttributeNode(Fokus);
	}
}
