
var MilestoneExhibition = Class.create();

MilestoneExhibition.prototype = {
	initialize: function (lItem,lType)
	{
		this.linkItem = lItem;
		this.type = lType;
		this.linkItem.observe("click", function(e){this.openIt(); Event.stop(e);}.bindAsEventListener(this));
	},
	openIt: function()
	{
		myLightWindow.activateWindow({href: String(this.linkItem.href), type: this.type, top: 450, left: 600, width: 468, height: 480 });
		return false;
	}
}

function initMilestoneExhibition(){
	var myLinks = $$('a[href*=pool/ausstellungen/unternehmensausstellung_milestones/flash/de/]');
	
	for (var index = 0, len = myLinks.length; index < len; ++index)
	{
		var item = myLinks[index];
	
		new MilestoneExhibition(item,"external");
	}
}



//var CHECK_HASH_REGEX_LWE = /^.*#show-external-content-([^#]+).*$/;
//var CHECK_HASH_REGEX_LWI = /^.*#show-inline-content-([^#]+).*$/;
//var CHECK_HASH_REGEX_LWVIDEO = /^.*#show-video-([^#]+).*$/;
//var lightBoxIdE = document.location.href.replace(CHECK_HASH_REGEX_LWE, "$1");
//var lightBoxIdI = document.location.href.replace(CHECK_HASH_REGEX_LWI, "$1");
//
//function initUrlWindow()
//{
//	var myLinks = $$('a[rel^=#show-external-content-]');
//
//	for (var index = 0, len = myLinks.length; index < len; ++index)
//	{
//		var item = myLinks[index];
//
//		new ExternalLink(item,"external");
//
//		//Event.observe($(item),"click",handler.bindAsEventListener());
//		if(lightBoxIdE == item.rel.replace(CHECK_HASH_REGEX_LWE, "$1"))
//		{
//			openIt(item, "external");
//		}
//	}
//
//
//	var myVideoLinks = $$('a[href^=#show-video-]');
//	myVideoLinks.each(function(item)
//   {
//		new VideoLink(item,"internal");
//   });
//
//
//	if(lightBoxIdI != document.location.href)
//	{
//		openIt("#show-inline-content-"+lightBoxIdI, "inline");
//	}
//}
//
//var ExternalLink = Class.create();
//
//ExternalLink.prototype = {
//	initialize: function (lItem,lType)
//	{
//		this.linkItem = lItem;
//		this.type = lType;
//		this.linkItem.observe("click", function(e){this.openIt(); Event.stop(e);}.bindAsEventListener(this));
//	},
//	openIt: function()
//	{
//		myLightWindow.activateWindow({href: String(this.linkItem.href), type: this.type, top: 400, left: 600, width: 600, height: 400 });
//		return false;
//	}
//}
//
//var VideoLink = Class.create();
//
//VideoLink.prototype = {
//	initialize: function (lItem,lType)
//	{
//		this.linkItem = lItem;
//		this.type = lType;
//		this.linkItem.observe("click", function(e){this.openIt(); Event.stop(e);}.bindAsEventListener(this));
//	},
//	openIt: function()
//	{
//		var video = this.linkItem.href.replace(CHECK_HASH_REGEX_LWVIDEO, "$1");
//
//		myLightWindow.activateWindow({href: String('../../pool/videos/player.htm#'+video), type: 'external', top: 400, left: 600, width: 641, height: 365 });
//		return false;
//	}
//}
//
//
//function openIt(link,type)
//{
//	myLightWindow.activateWindow({href: String(link), type: type, top: 400, left: 800, width: 600, height: 400 });
//}
//
