
var randO = 1;  //Rand oben
var randI = 6;  //Rand Bildlaufleiste innen


function getObj(name)
{
  if (document.getElementById){
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }  else if (document.all){
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }else if (document.layers){
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}


function getLPosition(e){
	if (!e) var e = window.event;
	var x,y;

	if (self.innerHeight){
		x = self.innerWidth;
		y = self.innerHeight;
	}else if (document.documentElement && document.documentElement.clientHeight){
		// Explorer 6 Strict Mode
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}else if (document.body){
	       // other Explorers
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}

	 var id_slide    =  new getObj('imageSlideshowHolder');
	 var id_footer   =  new getObj('id_footer');
	 
	 id_slide.style.top    = (y-517)/2         + 'px';
	 id_slide.style.left   = (x-992)/2        + 'px';
	 id_footer.style.top   = ((y-517)/2)+417   + 'px';
	 id_footer.style.left  = (x-992)/2        + 'px';
	 
}

function getLPositionC(e){
	if (!e) var e = window.event;
	var x,y;

	if (self.innerHeight){
		x = self.innerWidth;
		y = self.innerHeight;
	}else if (document.documentElement && document.documentElement.clientHeight){
		// Explorer 6 Strict Mode
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}else if (document.body){
	       // other Explorers
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}

	 var div_content    =  new getObj('div_content');
	 var id_footer   =  new getObj('id_footer');
	 
	 id_footer.style.top    = (y-517)/2         + 'px';
	 id_footer.style.left   = (x-990)/2        + 'px';
	 div_content.style.top   = ((y-517)/2)+112   + 'px';
	 div_content.style.left  = (x-990)/2        + 'px';
	 
}

