	// <![CDATA[
		// Automagically load Lightbox on Page Load - by Bramus! (http://www.bram.us/)
		// Code modded from http://www.huddletogether.com/forum/comments.php?DiscussionID=1269&page=1#Item_0
		function autoFireLightbox() {
			//Check if location.hash matches a lightbox-anchor. If so, trigger popup of image.
			setTimeout(function() {
				if(document.location.hash && $(document.location.hash.substr(1)).rel.indexOf('lightbox')!=-1) {
					myLightbox.start($(document.location.hash.substr(1)));
				}},
				250
			);
		}
		Event.observe(window, 'load', autoFireLightbox, false);
	// ]]>
function LoadImage()
		{
		document.getElementById('angebot').click();
		}
function LoadImage2()
		{
		document.getElementById('angebot2').click();
		}

if (document.createEvent )
{
HTMLElement.prototype.click = function()
{
var evt = this.ownerDocument.createEvent('MouseEvents');
evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
this.dispatchEvent(evt);
}
}
// das coookie zum nur einmal anzeigen
num_days = 60;
function ged(noDays){
    var today = new Date();
    var expr = new Date(today.getTime() + noDays*24*60*60*1000);
    return  expr.toGMTString();
}

function readCookie(cookieName){
    var start = document.cookie.indexOf(cookieName);
    if (start == -1){ 
        document.cookie = "seenit2=yes; expires=" + ged(num_days);
		DivStr=("<body onload=\'LoadImage();\'>");
    } else {
        DivStr=("<body>");
    }
}
readCookie("seenit2");


