
var agt=navigator.userAgent.toLowerCase();
var is_ie  = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));


function replaceImages(){
tinyScrolling.init();
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if (is_ie) {
if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
{



var png11=document.getElementById? document.getElementById("png10x31") : document.all.png10x31;
var png12=document.getElementById? document.getElementById("png10x32") : document.all.png10x32;
var png13=document.getElementById? document.getElementById("png10x33") : document.all.png10x33;
var png14=document.getElementById? document.getElementById("png10x34") : document.all.png10x34;
var png15=document.getElementById? document.getElementById("png10x35") : document.all.png10x35;
var png16=document.getElementById? document.getElementById("png10x36") : document.all.png10x36;
var png2=document.getElementById? document.getElementById("contactpng") : document.all.contactpng;
var png3=document.getElementById? document.getElementById("expospng") : document.all.expospng;
var png4=document.getElementById? document.getElementById("galeriepng") : document.all.galeriepng;
var png5=document.getElementById? document.getElementById("logorestopng") : document.all.logorestopng;
var png6=document.getElementById? document.getElementById("menuspng") : document.all.menuspng;
var png7=document.getElementById? document.getElementById("restaurantpng") : document.all.restaurantpng;

replacePNG(png11,png11.src);
replacePNG(png12,png12.src);
replacePNG(png13,png13.src);
replacePNG(png14,png14.src);
replacePNG(png15,png15.src);
replacePNG(png16,png16.src);
replacePNG(png2,png2.src);
replacePNG(png3,png3.src);
replacePNG(png4,png4.src);
replacePNG(png5,png5.src);
replacePNG(png6,png6.src);
replacePNG(png7,png7.src);

}
}
}

function replacePNG(dotImage,srcName){
if (dotImage.runtimeStyle){
dotImage.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + srcName + "', sizingMethod='image')";
dotImage.runtimeStyle.width="1px"
dotImage.runtimeStyle.height="1px"
dotImage.runtimeStyle.visibility="visible"
} else {
dotImage.src = srcName;
}
}

window.onload = replaceImages;

