////NO need to edit beyond here/////////////




var preloadedimages100=new Array()

for (p=0;p<fadeimages100.length;p++){
	preloadedimages100[p]=new Image()
	preloadedimages100[p].src=fadeimages100[p]
}



var ie4100=document.all
var dom=document.getElementById
if (ie4100||dom)
	document.write('<div style="width:'+slideshow_width100+';height:'+slideshow_height100+';overflow:hidden"><div id="can100vas0" style="position:absolute;width:'+slideshow_width100+';height:'+slideshow_height100+';bottom:0;right:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="can100vas1" style="position:absolute;width:'+slideshow_width100+';height:'+slideshow_height100+';bottom:0;right:0;filter:alpha(opacity=10);-moz-opacity:10;visibility: hidden"></div></div>')
else
	document.write('<img name="default100slide" src="'+fadeimages100[0]+'">')


var cur100pos=10
var de100gree=10
var curcan100vas100="can100vas0"
var curimageindex100=0
var next100imageindex=1

function fade100pic(){
	if (cur100pos<100){
		cur100pos+=10
		if (temp100obj.filters)
			temp100obj.filters.alpha.opacity=cur100pos
			else if (temp100obj.style.MozOpacity)
			temp100obj.style.MozOpacity=cur100pos/101
		}
		else{
			clearInterval(drop100slide)
			nextcan100vas=(curcan100vas100=="can100vas0")? "can100vas0" : "can100vas1"
			temp100obj=ie4100? eval("document.all."+nextcan100vas) : document.getElementById(nextcan100vas)
			temp100obj.innerHTML='<img src="'+fadeimages100[next100imageindex]+'">'
			next100imageindex=(next100imageindex<fadeimages100.length-1)? next100imageindex+1 : 0
			var temp100obj2=ie4100? eval("document.all."+nextcan100vas) : document.getElementById(nextcan100vas)
			temp100obj2.style.visibility="hidden"
			setTimeout("rotate100image()",pause100)
		}
	}

function rotate100image(){
	if (ie4100||dom){
		resetit100(curcan100vas100)
		var crossobj100=temp100obj=ie4100? eval("document.all."+curcan100vas100) : document.getElementById(curcan100vas100)
		crossobj100.style.zIndex++
		temp100obj.style.visibility="visible"
		var temp100='setInterval("fade100pic()",50)'
		drop100slide=eval(temp100)
		curcan100vas100=(curcan100vas100=="can100vas0")? "can100vas1" : "can100vas0"
	}
	else
		document.images.default100slide.src=fadeimages100[curimageindex100]
		curimageindex100=(curimageindex100<fadeimages100.length-1)? curimageindex100+1 : 0
	}

function resetit100(what){
	cur100pos=10
	var crossobj100=ie4100? eval("document.all."+what) : document.getElementById(what)
	if (crossobj100.filters)
		crossobj100.filters.alpha.opacity=cur100pos
	else if (crossobj100.style.MozOpacity)
		crossobj100.style.MozOpacity=cur100pos/101
	}

function start100it(){
	var crossobj100=ie4100? eval("document.all."+curcan100vas100) : document.getElementById(curcan100vas100)
	crossobj100.innerHTML='<img alt="Ansicht" src="'+fadeimages100[curimageindex100]+'">'
	rotate100image()
}


if (ie4100||dom) {
	start100it();
} else {
	setInterval("rotate100image()",pause100);
}




$(document).ready(function() {
	$('.popup').popupWindow({
		height:680,
		width:720,
		scrollbars: 1
	});
});
