/* js by eZoulou */

function launchPage() {

  	var zelt = document.getElementById('visual');
  	zelt.style.display='none';
  	new Effect.Appear(zelt,{duration:5});

	if (document.getElementById('submenu')) {
		var zelt = document.getElementById('submenu');
		zelt.style.display='none';
		new Effect.Appear(zelt,{duration:3});
	}

 	  var zelt = document.getElementById('content');
  	zelt.style.display='none';
  	new Effect.Appear(zelt,{duration:3});


	if (document.getElementsByTagName('body')[0].className!='home') {
		var zeContent = document.getElementById('content');
		var zeImages = zeContent.getElementsByTagName('img');
		for(var i=0; i<zeImages.length; i++) { 
			var zeimg = zeImages[i];
			zeimg.style.cursor = 'pointer';
			addEvent(zeimg, 'click', enlarge);
		}
	}
}

function enlarge() {
 	if (this.style.width=='') {
		this.style.width = '594px';
		this.style.height = 'auto';

	} else {
		this.style.width = '';
		this.style.height = '';
	}
}
/*
AddEvent Manager (c) 2005-2006 Angus Turnbull http://www.twinhelix.com
Free usage permitted as long as this credit notice remains intact.
*/

if (typeof addEvent != 'function')
{
 var addEvent = function(o, t, f, l)
 {
  var d = 'addEventListener', n = 'on' + t, rO = o, rT = t, rF = f, rL = l;
  if (o[d] && !l) return o[d](t, f, false);
  if (!o._evts) o._evts = {};
  if (!o._evts[t])
  {
   o._evts[t] = o[n] ? { b: o[n] } : {};
   o[n] = new Function('e',
    'var r = true, o = this, a = o._evts["' + t + '"], i; for (i in a) {' +
     'o._f = a[i]; r = o._f(e||window.event) != false && r; o._f = null;' +
     '} return r');
   if (t != 'unload') addEvent(window, 'unload', function() {
    removeEvent(rO, rT, rF, rL);
   });
  }
  if (!f._i) f._i = addEvent._i++;
  o._evts[t][f._i] = f;
 };
 addEvent._i = 1;
 var removeEvent = function(o, t, f, l)
 {
  var d = 'removeEventListener';
  if (o[d] && !l) return o[d](t, f, false);
  if (o._evts && o._evts[t] && f._i) delete o._evts[t][f._i];
 };
}
function cancelEvent(e, c)
{
 e.returnValue = false;
 if (e.preventDefault) e.preventDefault();
 if (c)
 {
  e.cancelBubble = true;
  if (e.stopPropagation) e.stopPropagation();
 }
};
