13
preloads = new Array();
preloads[0] = new Image(); preloads[0].src = "images/roller.gif";
preloads[1] = new Image(); preloads[1].src = "images/enter.jpg";
preloads[2] = new Image(); preloads[2].src = "images/forest.jpg";
preloads[3] = new Image(); preloads[3].src = "images/sky.jpg";

var initDone = false;

inst_img_src = new Array();inst_img_src[0] = "images/2011";inst_img_src[1] = "images/inshadow2011";inst_img_src[2] = "images/2010";inst_img_src[3] = "images/colorpens";inst_img_src[4] = "images/inshadow2010";inst_img_src[5] = "images/black-hole";inst_img_src[6] = "images/squaring";inst_img_src[7] = "images/K_Novemu_dvoru_89";inst_img_src[8] = "images/balls";inst_img_src[9] = "images/squareinsquare";inst_img_src[10] = "images/mandarin";inst_img_src[11] = "images/blue00";inst_img_src[12] = "images/plug01";inst_img_src[13] = "images/l00";inst_img_src[14] = "images/pillar06";
inst_img_src[15] = "images/2009";inst_img_src[16] = "images/stickandx";inst_img_src[17] = "images/squareinsky";
inst_img_src[18] = "images/h01";
inst_img_src[19] = "images/pen01";inst_img_src[20] = "images/yellow";
inst_img_src[21] = "images/japan";
inst_img_src[22] = "images/spotlight";
inst_img_src[23] = "images/mystudio";
inst_img_src[24] = "images/skysky";
inst_img_src[25] = "images/marbleandbrick";inst_img_src[26] = "images/gold-and-yellow";inst_img_src[27] = "images/centralmaster";inst_img_src[28] = "images/exit";
inst_img_src[29] = "images/2008";inst_img_src[30] = "images/earth";
inst_img_src[31] = "images/standingoriginal";
inst_img_src[32] = "images/lookingdetail01";
inst_img_src[33] = "images/shadowwhole";
inst_img_src[34] = "images/book000";
inst_img_src[35] = "images/square01";
inst_img_src[36] = "images/flashlightoriginallight";
inst_img_src[37] = "images/triangle01";
inst_img_src[38] = "images/bluesquea";
inst_img_src[39] = "images/reversedbox01";
inst_img_src[40] = "images/2007";
inst_img_src[41] = "images/inshadow";
inst_img_src[42] = "images/halfpast4";
inst_img_src[43] = "images/tennisball";
inst_img_src[44] = "images/2006";
inst_img_src[45] = "images/crack01";
inst_img_src[46] = "images/shuttle01";
inst_img_src[47] = "images/gate";
inst_img_src[48] = "images/2005";inst_img_src[49] = "images/ball";
inst_img_src[50] = "images/wool01";
inst_img_src[51] = "images/wallwall";
inst_img_src[52] = "images/2004";
inst_img_src[53] = "images/unlighting-in the room";
inst_img_src[54] = "images/sun";
inst_img_src[55] = "images/cranes";inst_img_src[56] = "images/2003";inst_img_src[57] = "images/escalator";inst_img_info = new Array();inst_img_info[0] = "works 2011 -";inst_img_info[1] = "<i>- in shadow 2011-</i> <br> 2011 <br>graphite, lamp, wall corner, shadow";inst_img_info[2] = "works 2010 -";inst_img_info[3] = "<i>-red pen, yellow pen, blue pen-</i><br>2010<br> drawings, 21x15cm x3, pencil on paper";inst_img_info[4] = "<i>- in shadow 2010-</i> <br> 2010 <br>graphite, lamp, wall corner, shadow";inst_img_info[5] = "<i>-black hole-</i><br>2010<br> 90x63cm, photo, inkjet print";inst_img_info[6] = "<i>-squaring the circle-</i><br>2010<br> video, 1min.58sec.";inst_img_info[7] = "<i>-K Novemu dvoru 89, Prague-</i><br>2010<br> 62x50cm, photo, inkjet print";inst_img_info[8] = "<i>- balls -</i> <br> 2010<br>paper, window, nylon thread, ping-pong ball, golf ball, tennis ball, base ball, volley ball, foot ball, baseball, exercise ball";inst_img_info[9] = "<i>- square in square -</i> <br> 2010<br>120x83.5cm, photo, inkjet print";inst_img_info[10] = "<i>- madarin -</i> <br> 2010<br>78x50cm, photo, inkjet print<br>and<br>installation<br>mandarin, tape, sign(mandarin)";inst_img_info[11] = "<i>- 4km. of blue -</i> <br> 2010<br>4km.plastic string ";inst_img_info[12] = "<i>- plug -</i> <br> 2010<br>wall socket, title plate";inst_img_info[13] = "<i>- L -</i> <br> 2010<br>145x110cm, photo, inkjet print ";inst_img_info[14] = "<i>- space between pillars -</i> <br> 2010 <br>pillars, lamps, shadow, trypod, title plate";
inst_img_info[15] = "works 2009 -";inst_img_info[16] = "<i>- stick and x -</i> <br> 2009<br>2min.15sec.";inst_img_info[17] = "<i>- square in sky -</i> <br> 2009<br>video, 1hr.4min.47sec.loop ";
inst_img_info[18] = "<i>- H -</i> <br> 2009<br>tram stop sign H, hole and sign(H) on the blocked window, metal pipe(30cm),";
inst_img_info[19] = "<i>- pen -</i> <br> 2009<br>pen, cap, flash light, shadow";inst_img_info[20] = "<i>- space between<br> yellow and blue -</i> <br> 2009<br>video installation, 2min.46sec.";
inst_img_info[21] = "<i>- exercise ball -</i><br>2009<br>70x105cm, photo, inkjet print on cloth";
inst_img_info[22] = "<i>- spotlight -</i> <br> 2009 <br>135x91cm, light box photo, inkjet print";
inst_img_info[23] = "<i>- ceiling in my studio -</i><br>2009<br> 130x130cm, photo, inkjet print";
inst_img_info[24] = "<i>- sky -</i> <br> 2009 <br>70x105cm, photo, inkjet print";
inst_img_info[25] = "<i>- marble and brick -</i> <br> 2009 <br>135x96cm, photo, inkjet print";inst_img_info[26] = "<i>- gold and yellow -</i> <br> 2009 <br>95x70cm, photo, inkjet print";inst_img_info[27] = "<i>- centre court -</i> <br> 2009 <br>50x50cm, photo, inkjet print";inst_img_info[28] = "<i>- exit in my studio -</i> <br> 2009<br>video, 1min.30sec.";
inst_img_info[29] = "works 2008 -";inst_img_info[30] = "<i>- earthquake Magnitude 7.0 -</i> <br> 2008<br>video installation, 2min.33sec.";
inst_img_info[31] = "<i>- standing position <br> in my studio -</i> <br> 2008 <br> glass 30x50x0.3cm, window, sign on the floor, tennis ball behind window";
inst_img_info[32] = "<i>- looking through <br>Edith's office -</i> <br> 2008 <br> door scope, metal pipe, mirror (90x60cm) behind of window in the office";
inst_img_info[33] = "<i>- in shadow 2008-</i> <br> 2008 <br>graphite, lamp, door, shadow";
inst_img_info[34] = "<i>- space between <br>black and white -<i><br> 2008 <br> 15x9x7.5cm <br> flip book, inkjet print";
inst_img_info[35] = "<i>- square -<i><br> 2008 <br> 20x14.5cm <br><i>- circle -<i><br> 2008 <br> 20x14.5cm <br> inkjet print";
inst_img_info[36] = "<i>- flash light -</i><br> 2008 <br> flash light";
inst_img_info[37] = "<i>- a triangle -</i><br> 2008 <br> photo(100mmx100mm) <br>photo installation <br> polaroid film";
inst_img_info[38] = "<i>- blue square -</i><br> 2008 <br> tripod <br>mirror(5x5cm)";
inst_img_info[39] = "<i>- the Basketball  in the center of the space -</i><br>2008 <br>7.5x8x5cm <br> basketball, inkjet print photo";
inst_img_info[40] = "works 2007 -";
inst_img_info[41] = "<i>- in shadow 2007- </i> <br> 2007 <br>  graphite, lamp, pillar, shadow";
inst_img_info[42] = "<i>- half past 4 -</i> <br> 2007<br> silver sticker<br>collaboration with<br> Susanne Bruynzeel";
inst_img_info[43] = "<i>- tennisball -</i><br> 2007 <br> photo(10cmx7.5cm) <br> tennisball";
inst_img_info[44] = "works 2006 -";
inst_img_info[45] = "<i>- one line of them -</i> <br> 2006 <br> toothpick";
inst_img_info[46] = "<i>- shuttle -</i> <br> 2006 <br> shuttle";
inst_img_info[47] = "<i>- gate -</i> <br> 2006 <br> transparent tape";
inst_img_info[48] = "works 2005 -";inst_img_info[49] = "<i>- ball -</i> <br> 2005<br>video installation, 23min.46sec.loop";
inst_img_info[50] = "<i>- one piece of wool -</i> <br> 2005 <br> wool";
inst_img_info[51] = "<i>- wall -</i> <br> 2005 <br> white paper";
inst_img_info[52] = "works 2004 -";
inst_img_info[53] = "<i>- unlighting -</i><br>2004<br>5 digital print";
inst_img_info[54] = "<i>- black points -</i> <br> 2004 <br> 8.5x1cm <br> 10 instant films";
inst_img_info[55] = "<i>- one thousand paper cranes -</i> <br> 2004 <br> 7x7x7cm <br> ash, water, acrylic";inst_img_info[56] = "works 2003 -";
inst_img_info[57] = "<i>- escalator -</i> <br> 2003<br>video, 5min.57sec.";
inst_img = new Array();
inst_img_b = new Array();

for (i_ind = 0; i_ind < inst_img_src.length; ++i_ind) {
    inst_img[i_ind] = new Image();
    inst_img[i_ind].src = inst_img_src[i_ind] + '.jpg';
    inst_img_b[i_ind] = new Image();
    inst_img_b[i_ind].src = inst_img_src[i_ind] + '_b.jpg';
}

window.resizeTo(1024, 768);
window.onbeforeunload = function(event) { return("Please use the links provided by the Rumiko site in order navigate on it."); };
setTimeout("initFadeIn();", 13000);


function opacity(id, opacStart, opacEnd, millisec) {
    // speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    // determine the direction for the blending, 
    // if start and end are the same nothing happens
    if (opacStart > opacEnd) {
        for (i = opacStart; i >= opacEnd; i-=2) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } 
    else {
        for (i = opacStart; i <= opacEnd; i+=2) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}


// change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
} 

function switchScreen(from, to) {
    var durat = 1000;
    opacity(from, 100, 0, durat);
    changeOpac(0, to);
    setTimeout("document.getElementById('"+from+"').style.display='none'", durat);
    setTimeout("document.getElementById('"+to+"').style.display=''", durat);
    setTimeout("opacity('"+to+"', 0, 100, "+durat+")", durat);
}


function initFadeIn() {
    if (!initDone) {
        changeOpac(0, 'roller'); 
        opacity('enterimage', 0, 100, 2000);
    }
    initDone = true;
}


function createInstallations() {
    var img_i;
    for (img_i = 0; img_i < inst_img_src.length; ++img_i) {
       cell = $('inst_images').insertCell(-1); 
       cell.innerHTML = ' <img src="' + inst_img_src[img_i] + '.jpg" onclick="changeImage('+ img_i +');" onmouseover="this.style.cursor=\'pointer\'"> '; 
    }
}


function changeImage(ind) {
    var durat = 1000;
    opacity('inst_img', 100, 0, durat);
    setTimeout('$("inst_info").innerHTML = "";', 10); 
    setTimeout('$("inst_img").src = inst_img_src['+ind+'] + "_b.jpg";', durat); 
    setTimeout('opacity("inst_img", 0, 100, '+durat+');', durat+500); 
    setTimeout('$("inst_info").innerHTML = inst_img_info['+ind+'];', 2*durat+200); 
    $("inst_img").onclick = function onclick(event) { switchScreen('installations', inst_img_src[ind]); };
}







