// JavaScript Document
var M =3;

function awReflect (os) {
	if(os){
	

	}else{
	os=1;
	}
	if(navigator.appName!='Microsoft Internet Explorer'){
		i=0;
		while(document.getElementsByTagName("img")[i]){
		
			if(document.getElementsByTagName("img")[i].className=='awReflect'){
				var Knoten = document.getElementsByTagName("img")[i];
				if(Knoten.getAttribute('onClick')!=null){
				var CLICK='onClick="'+Knoten.getAttribute('onClick')+'"';
				}else{
				var CLICK='';
				}
			
				if(Knoten.style.width==''){
				
						bild = new Image();
				   
					bild.src = Knoten.src;
					bildBreite = bild.width; 
					bildHoehe = bild.height;
				
				}else{
					bild = new Image();
				   
					bild.src = Knoten.src;
					bildBreite =Knoten.style.width; 
					bildBreite = bildBreite.replace('px','');
					bildBreite=parseInt(bildBreite);
					bildHoehe = Knoten.style.height;
					bildHoehe = bildHoehe.replace('px','');
					bildHoehe=parseInt(bildHoehe);
				}
				var Textknoten = document.createElement("div");
				var REFIMG='';
				G=2;
				for(h=0;h<(bildHoehe/4);h++){
					REFIMG+='<div id="'+Knoten.id+'Refl'+h+'" style="position:relative;margin:0px;padding:0px;opacity:'+(os-(G/(bildHoehe/1.5)))+';width:'+bildBreite+'px;height:2px;overflow:hidden"><img id="'+Knoten.id+'IMG'+h+'" src="'+Knoten.src+'" style=";position:relative;clear:both;top:-'+(bildHoehe-G)+'px;width:100%"></div>'
					G+=2;
				}
			
				Textknoten.innerHTML='<div class="RefBox" id="'+Knoten.id+'SIZE" style="position:relative;float:left;margin:5px;width:'+Knoten.style.width+';display:block"><img id="'+Knoten.id+'BILD"  src="'+Knoten.src+'" '+CLICK+' onMouseOver="remAt(\''+Knoten.id+'\','+(bildBreite+50)+')"  onMouseOut="remAtOut(\''+Knoten.id+'\','+(bildBreite)+')"  style="cursor:pointer;margin-top:20px;margin-left:0px;margin-right:0px;filter:alpha(opacity=100);opacity:1;width:100%;display:block;padding:0px;"><div id="'+Knoten.id+'REF" style="margin-top:5px;">'+REFIMG+'</div></div>';
				Textknoten.style.display='block';
				Textknoten.style.float='left';
				Textknoten.style.position='static';
				Textknoten.style.opacity=0.7;
				Textknoten.id=Knoten.id;
				
				Knoten.parentNode.replaceChild(Textknoten, Knoten);
			}
			i++;
		}
	}else{
		os=os*100;
		i=0;
		while(document.getElementsByTagName("img")[i]){
		
			if(document.getElementsByTagName("img")[i].className=='awReflect'){
				var Knoten = document.getElementsByTagName("img")[i];
			if(Knoten.getAttribute('onClick')!=null){
			
				var CLICK='onClick="'+Knoten.getAttribute('onClick')+'"';
				}else{
				var CLICK='';
				}
				CLICK=CLICK.replace('function anonymous','');
CLICK=CLICK.replace('{','');
CLICK=CLICK.replace('()','');
		CLICK=CLICK.replace('}','');
				
				if(Knoten.style.width==''){
				
						bild = new Image();
				   
					bild.src = Knoten.src;
					bildBreite = bild.width; 
					bildHoehe = bild.height;
				
				}else{
					bild = new Image();
				   
					bild.src = Knoten.src;
					bildBreite =Knoten.style.width; 
					bildBreite = bildBreite.replace('px','');
					bildBreite=parseInt(bildBreite);
						
					bildHoehe = Knoten.style.height;
					bildHoehe = bildHoehe.replace('px','');
					bildHoehe=parseInt(bildHoehe);
				}
				var Textknoten = document.createElement("div");
				var REFIMG='';
				G=2;
				h=bildHoehe;
				REFIMG+='<div id="'+Knoten.id+'Refl" style="position:relative;margin:0px;padding:0px;opacity:'+(0.8-(h/(bildHoehe)))+';width:'+bildBreite+'px;height:'+bildHoehe+'px;overflow:hidden"><img id="'+Knoten.id+'IMG'+h+'" src="'+Knoten.src+'" style=";filter:Alpha(opacity='+os+', finishopacity=0, style=1,startx=0, starty=100, finishx=0, finishy=30);position:relative;clear:both;top:-'+(bildHoehe-h)+'px;width:100%"></div>';
				
			
			
				Textknoten.innerHTML='<div class="RefBox" id="'+Knoten.id+'SIZE" style="position:relative;float:left;margin:5px;width:'+Knoten.style.width+';display:block"><img id="'+Knoten.id+'BILD"  src="'+Knoten.src+'" '+CLICK+' onMouseOver="remAt(\''+Knoten.id+'\','+(bildBreite+50)+')"  onMouseOut="remAtOut(\''+Knoten.id+'\','+(bildBreite)+')"  style="cursor:pointer;margin-top:20px;margin-left:0px;margin-right:0px;filter:alpha(opacity=100);opacity:1;width:100%;display:block;padding:0px;"><div id="'+Knoten.id+'REF" style="margin-top:5px;">'+REFIMG+'</div></div>';
				Textknoten.style.display='block';
				Textknoten.style.float='left';
				Textknoten.style.position='static';
				Textknoten.style.opacity=0.7;
				Textknoten.id=Knoten.id;
				
				Knoten.parentNode.replaceChild(Textknoten, Knoten);
				document.getElementById(Knoten.id+'IMG'+h).style.filter=document.getElementById(Knoten.id+'IMG'+h).style.filter+' FlipV';
			}
			i++;
		}
	}
}
