// JavaScript Document
function awSoftReflect (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=='awSoftReflect'){
				var Knoten = document.getElementsByTagName("img")[i];
				
				
				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; 
					bildHoehe = Knoten.style.height;
					bildHoehe = bildHoehe.replace('px','');
					bildHoehe=parseInt(bildHoehe);
				}
				var Textknoten = document.createElement("div");
				var REFIMG='';
			
				for(h=0;h<(bildHoehe);h++){
					REFIMG+='<div id="'+Knoten.id+'Refl'+h+'" style="position:relative;margin:0px;padding:0px;opacity:'+(os-(h/(bildHoehe)))+';width:'+bildBreite+'px;height:1px;overflow:hidden"><img id="'+Knoten.id+'IMG'+h+'" src="'+Knoten.src+'" style=";position:relative;clear:both;top:-'+(bildHoehe-h)+'px;width:100%"></div>';
				}
	
				Textknoten.innerHTML='<div id="'+Knoten.id+'SIZE" style="position:relative;float:left;margin:5px;width:'+bildBreite+';display:block"><img id="'+Knoten.id+'BILD"  src="'+Knoten.src+'"   style="filter:alpha(opacity=100);opacity:1;width:100%;display:block;margin:0px;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.id=Knoten.id;
				Knoten.parentNode.replaceChild(Textknoten, Knoten);
				 //document.getElementsByTagName("img")[i].removeAttributeNode(document.getElementsByTagName("img")[i].getAttributeNode("src"));
				 //document.getElementsByTagName("img")[i].replaceChild(Textknoten, Knoten);
				}
			i++;
		}
	}else{
		os=os*100;
		i=0;
		while(document.getElementsByTagName("img")[i]){
			
			if(document.getElementsByTagName("img")[i].className=='awSoftReflect'){
				var Knoten = document.getElementsByTagName("img")[i];
				
				
				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; 
					bildHoehe = Knoten.style.height;
					bildHoehe = bildHoehe.replace('px','');
					bildHoehe=parseInt(bildHoehe);
				}
				var Textknoten = document.createElement("div");
				var REFIMG='';
				h=bildHoehe;
				//for(h=0;h<(bildHoehe);h++){
				REFIMG+='<div id="'+Knoten.id+'Refl'+h+'" style="filter:FlipH();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=0, finishx=0, finishy=70);position:relative;clear:both;top:-'+(bildHoehe-h)+'px;width:100%"></div>';
				//}
	
				Textknoten.innerHTML='<div id="'+Knoten.id+'SIZE" style="position:relative;float:left;margin:5px;width:'+bildBreite+';display:block"><img id="'+Knoten.id+'BILD"  src="'+Knoten.src+'"   style="filter:alpha(opacity=100);opacity:1;width:100%;display:block;margin:0px;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.id=Knoten.id;
				Knoten.parentNode.replaceChild(Textknoten, Knoten);
				 //document.getElementsByTagName("img")[i].removeAttributeNode(document.getElementsByTagName("img")[i].getAttributeNode("src"));
				 //document.getElementsByTagName("img")[i].replaceChild(Textknoten, Knoten);
				}
			i++;
		}		

	}
}
