
var outColor="#333333"var overColor="white"var keepon=0;
var nMax=13;var ArrayComments = new Array();ArrayComments[0]= new comment("print1","1","");ArrayComments[1]= new comment("print1","2","");ArrayComments[2]= new comment("print1","3","");ArrayComments[3]= new comment("animation1","1",Link('play','animations/alberto.htm'));ArrayComments[4]= new comment("animation2","1",Link('play','animations/julio.htm'));ArrayComments[5]= new comment("animation3","1",Link('play','animations/x'));ArrayComments[6]= new comment("animation4","1",Link('play','animations/nicolas.htm'));ArrayComments[7]= new comment("animation5","1",Link('play','animations/funhoney.htm'));ArrayComments[8]= new comment("animation6","1",Link('play','animations/thomas.htm'));ArrayComments[9]= new comment("web1","1",Link('www.julioosorio.com','http://www.julioosorio.com/'));ArrayComments[10]= new comment("web1","2",Link('www.julioosorio.com','http://www.julioosorio.com/'));ArrayComments[11]= new comment("web1","3",Link('www.julioosorio.com','http://www.julioosorio.com/'));ArrayComments[12]= new comment("web2","1",Link('www.surpress.com','http://www.surpress.com/'));ArrayComments[13]= new comment("web2","2",Link('www.surpress.com','http://www.surpress.com/'));ArrayComments[14]= new comment("web2","3",Link('www.surpress.com','http://www.surpress.com/'));ArrayComments[15]= new comment("web2","4",Link('www.surpress.com','http://www.surpress.com/'));ArrayComments[16]= new comment("web2","5",Link('www.surpress.com','http://www.surpress.com/'));ArrayComments[17]= new comment("web2","6",Link('www.surpress.com','http://www.surpress.com/'));ArrayComments[18]= new comment("web3","1",Link('www.factoryone.co.uk','http://www.factoryone.co.uk/'));ArrayComments[19]= new comment("web3","2",Link('www.factoryone.co.uk','http://www.factoryone.co.uk/'));ArrayComments[20]= new comment("web4","1",Link('www.sandblast-arts.org','http://www.sandblast-arts.org/'));ArrayComments[21]= new comment("web4","2",Link('www.sandblast-arts.org','http://www.sandblast-arts.org/'));ArrayComments[22]= new comment("web4","3",Link('www.sandblast-arts.org','http://www.sandblast-arts.org/'));ArrayComments[23]= new comment("web4","4",Link('www.sandblast-arts.org','http://www.sandblast-arts.org/'));ArrayComments[24]= new comment("web4","5",Link('www.sandblast-arts.org','http://www.sandblast-arts.org/'));ArrayComments[25]= new comment("web5","1",Link('www.thomasodulate.com','http://www.teresalopez.co.uk/webThomas/'));ArrayComments[26]= new comment("web5","2",Link('www.thomasodulate.com','http://www.teresalopez.co.uk/webThomas/'));ArrayComments[27]= new comment("web5","3",Link('www.thomasodulate.com','http://www.teresalopez.co.uk/webThomas/'));ArrayComments[28]= new comment("web5","4",Link('www.thomasodulate.com','http://www.teresalopez.co.uk/webThomas/'));ArrayComments[29]= new comment("web5","5",Link('www.thomasodulate.com','http://www.teresalopez.co.uk/webThomas/'));ArrayComments[30]= new comment("web5","6",Link('www.thomasodulate.com','http://www.teresalopez.co.uk/webThomas/'));ArrayComments[31]= new comment("web6","1",Link('www.dreams-exhibition.co.uk','http://www.dreams-exhibition.co.uk/'));ArrayComments[32]= new comment("web6","2",Link('www.dreams-exhibition.co.uk','http://www.dreams-exhibition.co.uk/'));ArrayComments[33]= new comment("web6","3",Link('www.dreams-exhibition.co.uk','http://www.dreams-exhibition.co.uk/'));ArrayComments[34]= new comment("web6","4",Link('www.dreams-exhibition.co.uk','http://www.dreams-exhibition.co.uk/'));ArrayComments[35]= new comment("web6","5",Link('www.dreams-exhibition.co.uk','http://www.dreams-exhibition.co.uk/'));ArrayComments[36]= new comment("web6","6",Link('www.dreams-exhibition.co.uk','http://www.dreams-exhibition.co.uk/'));function Link(text,href) {    sLink="<div class='animationLink' onclick=OpenAnimation('" + href + "'," +450 +"," + 250 + ")>&nbsp;" + text + "</div>";    return sLink;}function comment(project,picture,text) {    this.project=project;    this.picture=picture;    this.id=project + "_p" + picture;    this.text=text;}function Display(id) {    try {    var oObject=document.getElementById(id);    oObject.style.display="block";    } catch(err) {    }}function Hide(id) {    try {    var oObject=document.getElementById(id);    oObject.style.display="none";    } catch(err) {    }}

function MouseOver(Id) {    obj = document.getElementById(Id);	obj.style.color=overColor;} function MouseOut(Id) {    //if (keepon!=Id) {        obj = document.getElementById(Id);	    obj.style.color=outColor;	//}} 

function start(){
    Display("photoDisplay")
    Display("leftMenu");
    Display("Comments");
    Display("contact");

}

function MouseClick(Id,sectionID,nTotal) {
    
    Display("photoDisplay")
    Display("leftMenu")
    Display("Comments")
    Display("contact")
    
    keepon="menuItem" + Id
    for (x=1;x<6;x++) {
        MouseOut("menuItem" + x)
        Hide("menuItemIndex" + x)
    }
    
    for (x=1;x<nMax;x++) {
         try {
            var oObject=document.getElementById(sectionID +x);
	        oObject.src="projects/" + sectionID + x + "/" + sectionID + x + "_left.jpg";
	     } catch (err) {}
    }    
    var oMenu0=document.getElementById("menuItem0");
    var oMenuSelected=document.getElementById(keepon);
    oMenu0.innerHTML=""
    oMenu0.innerHTML=oMenuSelected.innerHTML;
    
    MouseOver("menuItem" + Id)
    Display("menuItemIndex" + Id)
    HideProject();
  
}
function HideProject() {    var projectDisplay;
    projectDisplay=document.getElementById("music")
   
    try {      projectDisplay.hide()    } catch(err) {}}function LoadProject(sproject,nnumber) {    var projectDisplay;
    projectDisplay=document.getElementById("music")
    
    try {      projectDisplay.send(sproject,nnumber)    } catch(err) {}}function setPhotoComment(project,picture)
{
 	objComments = document.getElementById("Comments");    objComments.innerHTML = ""
    objComments.innerHTML = getComments(project+picture);
}

function getComments (id) {
       for (x in ArrayComments) {        if (ArrayComments[x].id== id) {            return ArrayComments[x].text        }     }     var blank;     blank="";     return blank}function OpenAnimation(page,width,height) {
   try {
    	oWin.close();
   } catch(exception) {
   }
   oWin=window.open(page,"","top=10, left=10,scrollbars=yes,resizable=yes, height=" + height +",width=" + width);
   oWin.moveTo(0,0);
   
}