
// ---------- movie -------------
var bildbereich;
var emb = document.createElement("embed");
var a = document.createElement("a");
//a.setAttribute("href", "img/illu/NikeCultureAustria1.png");

var bild = new Array();

emb[0] = new Image();
emb[0].source = "video/disposable_stream.mov";
emb[0].typ = "video/quicktime";
emb[0].wid = "330";
emb[0].hei = "265";
emb[0].autostart = "true";
emb[0].kioskmode = "true";
emb[0].pluginspage="http://www.apple.com/quicktime/download/";

emb[1] = new Image();
emb[1].source = "video/bellaciao_stream.mov";
emb[1].typ = "video/quicktime";
emb[1].wid = "330";
emb[1].hei = "265";
emb[1].autostart = "true";
emb[1].kioskmode = "true";
emb[1].pluginspage="http://www.apple.com/quicktime/download/";

emb[2] = new Image();
emb[2].source = "video/outoftime_stream.mov";
emb[2].typ = "video/quicktime";
emb[2].wid = "330";
emb[2].hei = "265";
emb[2].autostart = "true";
emb[2].kioskmode = "true";
emb[2].pluginspage="http://www.apple.com/quicktime/download/";

emb[3] = new Image();
emb[3].source = "video/borderline_stream.mov";
emb[3].typ = "video/quicktime";
emb[3].wid = "330";
emb[3].hei = "265";
emb[3].autostart = "true";
emb[3].kioskmode = "true";
emb[3].pluginspage="http://www.apple.com/quicktime/download/";

emb[4] = new Image();
emb[4].source = "video/MikeAtORF_stream.mov";
emb[4].typ = "video/quicktime";
emb[4].wid = "330";
emb[4].hei = "265";
emb[4].autostart = "true";
emb[4].kioskmode = "false";
emb[4].pluginspage="http://www.apple.com/quicktime/download/";

emb[5] = new Image();
emb[5].source = "video/MikeAtORF.mov";
emb[5].typ = "video/quicktime";
emb[5].wid = "330";
emb[5].hei = "265";
emb[5].autostart = "true";
emb[5].kioskmode = "false";
emb[5].pluginspage="http://www.apple.com/quicktime/download/";



// ---------- title --------------
var titlebereich;
var titleH4 = document.createElement("h4");
var br = document.createElement("br");
var titleH = new Array();
var titleH4Text;

titleH[0] = "disposable";
titleH[1] = "bella ciao";
titleH[2] = "out of time";
titleH[3] = "borderline";
titleH[4] = "Mike@ORF";
titleH[5] = "Mike@ORF";


// --------- content -------------
var contentbereich;
var contentP = document.createElement("p");
var content = new Array();
var contentText;

content[0] = "work from the 3rd semester, my first movie cutted in adobe premiere";
content[1] = "stop motion animation from the 4th semester";
content[2] = "filmlet, shot with self made helmet cam and cutted with avid";
content[3] = "confrontation with the borderline syndrom";
content[4] = "quicktime progressive stream";
content[5] = "normal quicktime";

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 filmlader(x)
{
   bildbereich = getElement("id", "bigbild");
   contentbereich = getElement("id", "description");
   titlebereich = getElement("id", "title");

   if (DOM && document.createElement && bildbereich.appendChild)
   {
        emb.setAttribute("src", emb[x].source);
		emb.setAttribute("type", emb[x].typ);
		emb.setAttribute("width", emb[x].wid);
		emb.setAttribute("height", emb[x].hei);
		emb.setAttribute("autostart", emb[x].autostart);
		
		bildbereich.appendChild(emb);
		bildbereich.innerHTML = '<embed type="' + emb[x].typ + '"autostart="' + emb[x].autostart + '" src="' + emb[x].source + 
							'"width="' + emb[x].wid + '"height="'+ emb[x].hei + '"kioskmode="' + emb[x].kioskmode + '"pluginspage="' + emb[0].pluginspage + '"></embed><br>';
		/*bildbereich.innerHTML = '<embed type="' + emb[x].typ + '"autostart="' + emb[x].autostart + '" src="' + emb[x].source + 
								'"width="' + emb[x].wid + '"height="'+ emb[x].hei + '"pluginspage="' + emb[0].pluginspage + '"></embed><br>';*/
								
		//alert('<embed type="' + emb[x].type + '"autostart="' + emb[x].autostart + '" src="' + emb[x].src + 
			//					'"width="' + emb[x].wid + '"height="'+ emb[x].hei + '"></embed><br>');
		
		//bildbereich.innerHTML = '<embed type="video/x-sgi-movie" autostart="true" src="flash/disposable.mov" width="330" height="265"></embed><br>';
		//document.embeds[1].play();
		//var test = getElement("id", "emb");
		//bildbereich.appendChild(img);
        setPicContent(x);
        set=x;
   }
   else if (MSIE4)
   {
        bildbereich.innerHTML = '<a href="' + bild[x].href + '><img src="' + emb[x].src + '">';
		setPicContent(x);
   }
   else if (NS4)
   {
        setContent("id", "bigbild", null,
        '<img src="' + bild[x].src + '">');
   }
}
// JavaScript Document