var _LiteBoxElements = new Array();

$(document).ready(function() {
	
	for (var i in document.getElementsByTagName("a")) {
		if (document.getElementsByTagName("a")[i].rel == "lightbox") {
			document.getElementsByTagName("a")[i].rel = "lightbox" + i;
		}
	}
	
	var spektrum = $("a[class='spektrum']").colorbox({width:"1010px", height:"720px", scrollbars:"none", iframe:true});
	var ltb = $("a[class='ltb']").colorbox({transition:"fade", slideshow:true});
/*
	$().bind('cbox_load', function() {
		$('embed').hide();
		$('object').hide();		
	});
	$().bind('cbox_closed', function() {
		$('embed').show();
		$('object').show();
	});
	
	$().bind('cbox_cleanup', function() {
	if ($.fn.colorbox.element().length) {
		var q_element = $.fn.colorbox.element()[0].toString();
		if(q_element.lastIndexOf(".php") != -1 || q_element.lastIndexOf(".html") != -1){
			var ant = confirm('Möchten Sie das Fenster schliessen?');
			$.fn.colorbox.close_flag=false;
			if (!ant) {
				$.fn.colorbox.close_flag=true;
			}
		}
	 }
	});
		
	$("#click").click(function(){
		$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
	*/
	
});
