
// ---------- image -------------
var bildbereich;
var img = document.createElement("img");
var a = document.createElement("a");
//a.setAttribute("href", "img/illu/NikeCultureAustria1.png");

var bild = new Array();

bild[0] = new Image();
bild[0].src = "img/illu/NikeCultureAustria1.png";
bild[0].ref = "img/illu/NikeCultureAustria.png";
bild[0].wid = "330";
bild[0].hei = "168";

bild[1] = new Image();
bild[1].src = "img/illu/NikeCultureBrasil1.png";
bild[1].ref = "img/illu/NikeCultureBrazil.png";
bild[1].wid = "330";
bild[1].hei = "168";

bild[2] = new Image();
bild[2].src = "img/illu/Lukas1.png";
bild[2].ref = "img/illu/Lukas.png";
bild[2].wid = "272";
bild[2].hei = "508";

bild[3] = new Image();
bild[3].src = "img/illu/Oklahoma1.png";
bild[3].ref = "img/illu/Oklahoma.png";
bild[3].wid = "330";
bild[3].hei = "232";

bild[4] = new Image();
bild[4].src = "img/prog/result.png";
bild[4].ref = "";
bild[4].wid = "330";
bild[4].hei = "246";

bild[5] = new Image();
bild[5].src = "img/illu/Oklahoma1.png";
bild[5].ref = "http://www.elkesoklahoma.de";
bild[5].wid = "330";
bild[5].hei = "232";

bild[6] = new Image();
bild[6].src = "img/illu/Logo1.png";
bild[6].ref = "img/illu/Logo.png";
bild[6].wid = "";
bild[6].hei = "";

bild[7] = new Image();
bild[7].src = "img/photo/stone0101.jpg";
bild[7].ref = "img/photo/stone01.jpg";
bild[7].wid = "330";
bild[7].hei = "247";

bild[8] = new Image();
bild[8].src = "img/photo/stone0202.jpg";
bild[8].ref = "img/photo/stone02.jpg";
bild[8].wid = "330";
bild[8].hei = "247";

bild[9] = new Image();
bild[9].src = "img/photo/stone0303.jpg";
bild[9].ref = "img/photo/stone03.jpg";
bild[9].wid = "330";
bild[9].hei = "247";

bild[10] = new Image();
bild[10].src = "img/3d/DuellUeberDenWolken01.jpg";
bild[10].ref = "img/3d/DuellUeberDenWolken.jpg";
bild[10].wid = "330";
bild[10].hei = "264";

bild[11] = new Image();
bild[11].src = "img/3d/Floschndrah01.jpg";
bild[11].ref = "img/3d/Floschndrah.jpg";
bild[11].wid = "330";
bild[11].hei = "264";

bild[12] = new Image();
bild[12].src = "img/3d/MarmorAssinger01.jpg";
bild[12].ref = "img/3d/MarmorAssinger.jpg";
bild[12].wid = "330";
bild[12].hei = "264";

bild[13] = new Image();
bild[13].src = "img/photo/brutkastn01.jpg";
bild[13].ref = "img/photo/brutkastn.jpg";
bild[13].wid = "330";
bild[13].hei = "247";

bild[14] = new Image();
bild[14].src = "img/photo/engel01.jpg";
bild[14].ref = "img/photo/engel.jpg";
bild[14].wid = "330";
bild[14].hei = "247";

bild[15] = new Image();
bild[15].src = "img/photo/kinderzimmer01.jpg";
bild[15].ref = "img/photo/kinderzimmer.jpg";
bild[15].wid = "330";
bild[15].hei = "247";

bild[16] = new Image();
bild[16].src = "img/photo/klo01.jpg";
bild[16].ref = "img/photo/klo.jpg";
bild[16].wid = "330";
bild[16].hei = "247";

bild[17] = new Image();
bild[17].src = "img/photo/marionette01.jpg";
bild[17].ref = "img/photo/marionette.jpg";
bild[17].wid = "330";
bild[17].hei = "247";

bild[18] = new Image();
bild[18].src = "img/photo/spiegel01.jpg";
bild[18].ref = "img/photo/spiegel.jpg";
bild[18].wid = "330";
bild[18].hei = "247";

bild[19] = new Image();
bild[19].src = "img/photo/stochoedroht01.jpg";
bild[19].ref = "img/photo/stochoedroht.jpg";
bild[19].wid = "330";
bild[19].hei = "247";

bild[20] = new Image();
bild[20].src = "img/photo/stoezn01.jpg";
bild[20].ref = "img/photo/stoezn.jpg";
bild[20].wid = "330";
bild[20].hei = "247";

bild[21] = new Image();
bild[21].src = "img/photo/zwongsjacke01.jpg";
bild[21].ref = "img/photo/zwongsjacke.jpg";
bild[21].wid = "330";
bild[21].hei = "247";

// ---------- title --------------
var titlebereich;
var titleH4 = document.createElement("h4");
var br = document.createElement("br");
var titleH = new Array();
var titleH4Text;

titleH[0] = "nike culture austria";
titleH[1] = "nike culture brazil";
titleH[2] = "lukas";
titleH[3] = "oklahoma";
titleH[4] = "card trick";
titleH[5] = "oklahoma western bar";
titleH[6] = "logo";
titleH[7] = "stones";
titleH[8] = "stones";
titleH[9] = "stones";
titleH[10] = "above the clouds";
titleH[11] = "spinning bottles";
titleH[12] = "marmor assinger";
titleH[13] = "caught";
titleH[14] = "angel";
titleH[15] = "childhood";
titleH[16] = "its all inside";
titleH[17] = "master of the puppets";
titleH[18] = "mirror";
titleH[19] = "family";
titleH[20] = "";
titleH[21] = "";

// --------- content -------------
var contentbereich;
var contentP = document.createElement("p");
var content = new Array();
var contentText;

content[0] = "this illustration was built for an anticipated copy strategie at the 2nd semester. i created a nike sport shoe which is available in all national colors. this one is the nike culture austria";
content[1] = "this illustration was built for an anticipated copy strategie at the 2nd semester. i created a nike sport shoe which is available in all national colors. this one is the nike culture brazil";
content[2] = "this one is an illustration of my son lukas";
content[3] = "this illustration is the basis for an interactive flash homepage. see more under the web area";
content[4] = "card trick";
content[5] = "web project realized with flash mx based on an illustration built with macromedia freehand mx. the whole concept of the website is based on an illustration which was created via a photography of the chill out zone inside the oklahoma western bar. the environment is used for navigation. click on the picture below and get an imagination about the site.";
content[6] = "in the first semester we had to create a logo of our initials, so this is what i was thinking about s and k";
content[7] = "work from the first semester, where we had to take some pictures from arbitrary stones.";
content[8] = "work from the first semester, where we had to take some pictures from arbitrary stones.";
content[9] = "work from the first semester, where we had to take some pictures from arbitrary stones.";
content[10] = "work from the 3rd semester, model of an aeroplane combat sbove the clouds realized in maya";
content[11] = "work from the 3rd semester, model of some bottles realized in maya";
content[12] = "work from the 3rd semester, abstract model of our local hero armin assinger realized in maya";
content[13] = "borderline - caught";
content[14] = "borderline - free";
content[15] = "borderline - childhood";
content[16] = "borderline - its all inside";
content[17] = "borderline - master of the puppets";
content[18] = "borderline - mirror";
content[19] = "borderline - family";
content[20] = "borderline - ";
content[21] = "borderline - ";

var set=null;
function setPicContent(y)
{
       
	   /*bildbereich = getElement("id", "bigbild");
   	   contentbereich = getElement("id", "description");
	   titlebereich = getElement("id", "title");*/
	   
	   contentText = document.createTextNode(content[y]);
	   titleH4Text = document.createTextNode(titleH[y]);
	   	   
       if(set==null)
       {
              titleH4.appendChild(titleH4Text);
			  titlebereich.appendChild(titleH4);
			  contentP.appendChild(contentText);
              contentbereich.appendChild(contentP);
       }
       else
       {
              contentbereich = getElement("id", "description");
			  titlebereich = getElement("id", "title");
			  bildbereich = getElement("id", "bigbild");
              /*contentbereich.removeChild(contentbereich.lastChild);
              contentP.removeChild(contentP.lastChild);
              contentP.appendChild(contentText);
              contentbereich.appendChild(contentP);  */
              contentP.replaceChild(contentText,contentP.lastChild);
              contentbereich.replaceChild(contentP,contentbereich.lastChild);
			  titleH4.replaceChild(titleH4Text,titleH4.lastChild);
              titlebereich.replaceChild(titleH4,titlebereich.lastChild);
			  
       }
}

function bildlader(x)
{
   bildbereich = getElement("id", "bigbild");
   contentbereich = getElement("id", "description");
   titlebereich = getElement("id", "title");

   if (DOM && document.createElement && bildbereich.appendChild)
   {
        img.setAttribute("src", bild[x].src);
		img.setAttribute("border", 0);
		img.setAttribute("width", bild[x].wid);
		img.setAttribute("height", bild[x].hei);
		a.setAttribute("href", bild[x].ref);
		
		a.appendChild(img);
		bildbereich.appendChild(a);
		//bildbereich.appendChild(img);
        setPicContent(x);
        set=x;
   }
   else if (MSIE4)
   {
        bildbereich.innerHTML = '<a href="' + bild[x].href + '><img src="' + bild[x].src + '">';
		setPicContent(x);
   }
   else if (NS4)
   {
        setContent("id", "bigbild", null,
        '<img src="' + bild[x].src + '">');
   }
}
