﻿      
/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
/*fadeimages[0]=["images/main1.jpg", "proj1.html", ""] //image with link syntax
fadeimages[1]=["images/main2.jpg", "proj2.html", ""] //image with link syntax
fadeimages[2]=["images/main3.jpg", "proj2.html", ""] //image with link syntax*/
fadeimages[0]=["images/projects/wha welingergasse/weli1.jpg", "javascript: displayP('proj_1')", ""] //image with link syntax
var proj1=new Array()
proj1[0]=["images/projects/wha welingergasse/weli1.jpg", "", ""] //image with link syntax
proj1[1]=["images/projects/wha welingergasse/weli2.jpg", "", ""] //image with link syntax
proj1[2]=["images/projects/wha welingergasse/weli3.jpg", "", ""] //image with link syntax
proj1[3]=["images/projects/wha welingergasse/weli4.jpg", "", ""] //image with link syntax
proj1[4]=["images/projects/wha welingergasse/weli5.jpg", "", ""] //image with link syntax
proj1[5]=["images/projects/wha welingergasse/weli6.jpg", "", ""] //image with link syntax
proj1[6]=["images/projects/wha welingergasse/weli7.jpg", "", ""] //image with link syntax

var proj2=new Array()
proj2[0]=["images/projects/karree st.marx/karree1.jpg", "", ""] //image with link syntax
proj2[1]=["images/projects/karree st.marx/karree2.jpg", "", ""] //image with link syntax
proj2[2]=["images/projects/karree st.marx/karree3.jpg", "", ""] //image with link syntax
proj2[3]=["images/projects/karree st.marx/karree4.jpg", "", ""] //image with link syntax
proj2[4]=["images/projects/karree st.marx/karree5.jpg", "", ""] //image with link syntax
proj2[5]=["images/projects/karree st.marx/karree6.jpg", "", ""] //image with link syntax
 
var proj3=new Array()
proj3[0]=["images/projects/villa m/m1.jpg"] //image with link syntax
proj3[1]=["images/projects/villa m/m2.jpg"] //image with link syntax
/*proj3[2]=["images/projects/borgo grimani/borgo3.jpg", "proj2.html", ""] //image with link syntax */

var proj4=new Array()
proj4[0]=["images/projects/hotel alga 810/810alga1.jpg", "", ""] //image with link syntax
proj4[1]=["images/projects/hotel alga 810/810alga2.jpg", "", ""] //image with link syntax
proj4[2]=["images/projects/hotel alga 810/810alga3.jpg", "", ""] //image with link syntax
 
var proj5=new Array()
proj5[0]=["images/projects/mariazeller akademie/maria1.jpg", "", ""] //image with link syntax
proj5[1]=["images/projects/mariazeller akademie/maria2.jpg", "", ""] //image with link syntax
proj5[2]=["images/projects/mariazeller akademie/maria3.jpg", "", ""] //image with link syntax

var proj6=new Array()
proj6[0]=["images/projects/hotel apollogasse/apollo1.jpg", "", ""] //image with link syntax
proj6[1]=["images/projects/hotel apollogasse/apollo2.jpg", "", ""] //image with link syntax
proj6[2]=["images/projects/hotel apollogasse/apollo3.jpg", "", ""] //image with link syntax
proj6[3]=["images/projects/hotel apollogasse/apollo4.jpg", "", ""] //image with link syntax
proj6[4]=["images/projects/hotel apollogasse/apollo5.jpg", "", ""] //image with link syntax

var proj7=new Array()
proj7[0]=["images/projects/ars electronica/ars1.jpg", "", ""] //image with link syntax
proj7[1]=["images/projects/ars electronica/ars2.jpg", "", ""] //image with link syntax
proj7[2]=["images/projects/ars electronica/ars3.jpg", "", ""] //image with link syntax
proj7[3]=["images/projects/ars electronica/ars4.jpg", "", ""] //image with link syntax

var proj8=new Array()
proj8[0]=["images/projects/klosterneuburg/klo1.jpg", "", ""] //image with link syntax
proj8[1]=["images/projects/klosterneuburg/klo2.jpg", "", ""] //image with link syntax
proj8[2]=["images/projects/klosterneuburg/klo3.jpg", "", ""] //image with link syntax
 
var proj9=new Array()
proj9[0]=["images/projects/koloman-wallisch platz/kolo1.jpg", "", ""] //image with link syntax
proj9[1]=["images/projects/koloman-wallisch platz/kolo2.jpg", "", ""] //image with link syntax
proj9[2]=["images/projects/koloman-wallisch platz/kolo3.jpg", "", ""] //image with link syntax

var proj10=new Array()
proj10[0]=["images/projects/haus der architektur/hda1.jpg", "", ""] //image with link syntax
proj10[1]=["images/projects/haus der architektur/hda2.jpg", "", ""] //image with link syntax

 
 
 
 var proj11=new Array()
proj11[0]=["images/projects/archdiploma/arch1.jpg", "", ""] //image with link syntax
proj11[1]=["images/projects/archdiploma/arch2.jpg", "", ""] //image with link syntax
proj11[2]=["images/projects/archdiploma/arch3.jpg", "", ""] //image with link syntax

var proj12=new Array()
proj12[0]=["images/projects/concert hall/ch1.jpg", "", ""] //image with link syntax
proj12[1]=["images/projects/concert hall/ch2.jpg", "", ""] //image with link syntax
 
var proj13=new Array()
proj13[0]=["images/projects/cumberlandstrasse/cs1.jpg", "", ""] //image with link syntax
proj13[1]=["images/projects/cumberlandstrasse/cs2.jpg", "", ""] //image with link syntax
proj13[2]=["images/projects/cumberlandstrasse/cs3.jpg", "", ""] //image with link syntax */

var proj14=new Array()
proj14[0]=["images/projects/go east/ea1.jpg", "", ""] //image with link syntax
proj14[1]=["images/projects/go east/ea2.jpg", "", ""] //image with link syntax
proj14[2]=["images/projects/go east/ea3.jpg", "", ""] //image with link syntax
proj14[3]=["images/projects/go east/ea4.jpg", "", ""] //image with link syntax

var proj15=new Array()
proj15[0]=["images/projects/met/met1.jpg", "", ""] //image with link syntax
proj15[1]=["images/projects/met/met2.jpg", "", ""] //image with link syntax
proj15[2]=["images/projects/met/met3.jpg", "", ""] //image with link syntax
proj15[3]=["images/projects/met/met4.jpg", "", ""] //image with link syntax

var proj16=new Array()
proj16[0]=["images/projects/grand egyptian museum/gem1.jpg", "", ""] //image with link syntax
proj16[1]=["images/projects/grand egyptian museum/gem2.jpg", "", ""] //image with link syntax
proj16[2]=["images/projects/grand egyptian museum/gem3.jpg", "", ""] //image with link syntax
proj16[3]=["images/projects/grand egyptian museum/gem4.jpg", "", ""] //image with link syntax
proj16[4]=["images/projects/grand egyptian museum/gem5.jpg", "", ""] //image with link syntax
proj16[5]=["images/projects/grand egyptian museum/gem5.jpg", "", ""] //image with link syntax

var proj17=new Array()
proj17[0]=["images/projects/graphisoft/graph1.jpg", "", ""] //image with link syntax
proj17[1]=["images/projects/graphisoft/graph2.jpg", "", ""] //image with link syntax
proj17[2]=["images/projects/graphisoft/graph3.jpg", "", ""] //image with link syntax
proj17[3]=["images/projects/graphisoft/graph4.jpg", "", ""] //image with link syntax

var proj18=new Array()
proj18[0]=["images/projects/hannover/han1.jpg", "", ""] //image with link syntax
proj18[1]=["images/projects/hannover/han2.jpg", "", ""] //image with link syntax
proj18[2]=["images/projects/hannover/han3.jpg", "", ""] //image with link syntax
 
var proj19=new Array()
proj19[0]=["images/projects/helsinki/hel1.jpg", "", ""] //image with link syntax
proj19[1]=["images/projects/helsinki/hel2.jpg", "", ""] //image with link syntax
proj19[2]=["images/projects/helsinki/hel3.jpg", "", ""] //image with link syntax

var proj20=new Array()
proj20[0]=["images/projects/hotel in istrien/istr1.jpg", "", ""] //image with link syntax
proj20[1]=["images/projects/hotel in istrien/istr2.jpg", "", ""] //image with link syntax
proj20[2]=["images/projects/hotel in istrien/istr3.jpg", "", ""] //image with link syntax




 var proj21=new Array()
proj21[0]=["images/projects/kunsthaus graz/khaus1.jpg", "", ""] //image with link syntax
proj21[1]=["images/projects/kunsthaus graz/khaus2.jpg", "", ""] //image with link syntax
proj21[2]=["images/projects/kunsthaus graz/khaus3.jpg", "", ""] //image with link syntax

var proj22=new Array()
proj22[0]=["images/projects/mega/mega1.jpg", "", ""] //image with link syntax
proj22[1]=["images/projects/mega/mega4.jpg", "", ""] //image with link syntax
proj22[1]=["images/projects/mega/mega4.jpg", "", ""] //image with link syntax
 
var proj23=new Array()
proj23[0]=["images/projects/borgo grimani/borgo1.jpg", "", ""] //image with link syntax
proj23[1]=["images/projects/borgo grimani/borgo2.jpg", "", ""] //image with link syntax
proj23[0]=["images/projects/borgo grimani/borgo3.jpg", "", ""] //image with link syntax
proj23[1]=["images/projects/borgo grimani/borgo4.jpg", "", ""] //image with link syntax
proj23[1]=["images/projects/borgo grimani/borgo5.jpg", "", ""] //image with link syntax


var proj24=new Array()
proj24[0]=["images/projects/moma salzburg/moma1.jpg", "", ""] //image with link syntax
proj24[1]=["images/projects/moma salzburg/moma2.jpg", "", ""] //image with link syntax
proj24[2]=["images/projects/moma salzburg/moma3.jpg", "", ""] //image with link syntax

var proj25=new Array()
proj25[0]=["images/projects/mons klint/mk1.jpg", "", ""] //image with link syntax
proj25[1]=["images/projects/mons klint/mk2.jpg", "", ""] //image with link syntax
proj25[2]=["images/projects/mons klint/mk3.jpg", "", ""] //image with link syntax

var proj26=new Array()
proj26[0]=["images/projects/otes/otes1.jpg", "", ""] //image with link syntax
proj26[1]=["images/projects/otes/otes2.jpg", "", ""] //image with link syntax


var proj27=new Array()
proj27[0]=["images/projects/sa pavillion/pav1.jpg", "", ""] //image with link syntax
proj27[1]=["images/projects/sa pavillion/pav2.jpg", "", ""] //image with link syntax

var proj28=new Array()
proj28[0]=["images/projects/sarajevo crossing/sa1.jpg", "", ""] //image with link syntax
proj28[1]=["images/projects/sarajevo crossing/sa2.jpg", "", ""] //image with link syntax
 
var proj29=new Array()
proj29[0]=["images/projects/teschnergasse/tesch1.jpg", "", ""] //image with link syntax
proj29[1]=["images/projects/teschnergasse/tesch2.jpg", "", ""] //image with link syntax
proj29[2]=["images/projects/teschnergasse/tesch3.jpg", "", ""] //image with link syntax
proj29[3]=["images/projects/teschnergasse/tesch4.jpg", "", ""] //image with link syntax
proj29[4]=["images/projects/teschnergasse/tesch5.jpg", "", ""] //image with link syntax
proj29[5]=["images/projects/teschnergasse/tesch6.jpg", "", ""] //image with link syntax

var proj30=new Array()
proj30[0]=["images/projects/playhouse/play1.jpg", "", ""] //image with link syntax
proj30[1]=["images/projects/playhouse/play2.jpg", "", ""] //image with link syntax
proj30[2]=["images/projects/playhouse/play3.jpg", "", ""] //image with link syntax



var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=5
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
