if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}

//-------------------------------------------------------------------------------------------------------------------
//POPUP TEXT ARRAY						
var descarray = new Array();
var artarray = new Array();
//A -last names starting with A
//------------------------------------------------------------------------------------------------------------------
descarray[0] = "Tomma Abts";
	artarray[40] = "<i>Nomde</i>, 2004, acrylic and oil on canvas; Private collection; courtesy of the artist; greengrassi, London; and Galerie Daniel Buchholz, Cologne";
	artarray[41] = "Installation view";

descarray[1] = "Pawel Althamer";
	artarray[42] = "Installation view, <i>Real Time Movie</i> trailer";
	artarray[43] = "Performance still";
	
descarray[2] = "Francis Al&#255;s";
	artarray[0] = "Installation view, from the series <i>The Prophet and the Fly</i>, Courtesy of the artist; Lisson Gallery, London; and Galerie Peter Kilchmann, Zurich";
	artarray[1] = "Installation view, from the series <i>The Prophet and the Fly</i>, Courtesy of the artist; Lisson Gallery, London; and Galerie Peter Kilchmann, Zurich";

descarray[3] = "Mamma Andersson	 <br>Photo: Magnus Bergstr&#246;m";
	artarray[2] = "<i>Traveling in the Family</i>, 2003, oil on panel; Collection of Christian Larsen, Stockholm; courtesy of Galleri Magnus Karlsson, Stockholm; Stephen Friedman Gallery, London; and David Zwirner, New York";
	artarray[3] = "Installation view";

descarray[4] = "Chiho Aoshima <br> Photo: Patrick Demarchelier for Harper's Bazaar<br> Copyright Notice: &#169;2004 " +
				"Chiho Aoshima/Kaikai Kiki Co., Ltd. All Rights Reserved.";
	artarray[4] = "<i>Magma Spirit Explodes</i>. <i>Tsunami is Dreadful</i>. (detail), 2004, digital wall mural; Courtesy of the artist, Kaikai Kiki Co., Ltd., and Blum & Poe, Los Angeles";
	artarray[5] = "Installation view, <i>Magma Spirit Explodes</i>. <i>Tsunami is Dreadful</i>., 2004, digital wall mural; Courtesy of the artist, Kaikai Kiki Co., Ltd., and Blum & Poe, Los Angeles";

descarray[5] = "Kaoru Arima";
	artarray[44] = "Detail of <i>Untitled (June 14, 2003)</i>, 2003, graphite, colored pencil, acrylic, and ink on newspaper; Collection of Hisanao Minoura, Aichi; courtesy of the artist and Cellar Gallery, Nagoya";
	artarray[45] = "Detail of <i>Untitled (June 12, 2003)</i>, 2003, graphite, colored pencil, acrylic, and ink on newspaper; Collection of Yukinari Shimono, Tokyo; courtesy of the artist and Cellar Gallery, Nagoya";
	
descarray[6] = "Kutlug Ataman";
	artarray[6] = "Still from <i>Kuba</i>, 2004, 40-channel video installation with tables and chairs; color, sound; Commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh; Lehmann Maupin Gallery, New York; Thyssen-Bornemisza Art Contemporary (T-B A21), Vienna, and Theater der Welt, Stuttgart";
	artarray[7] = "Installation view, <i>Kuba</i>, 2004, 40-channel video installation with tables and chairs; color, sound; Commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh; Lehmann Maupin Gallery, New York; Thyssen-Bornemisza Art Contemporary (T-B A21), Vienna, and Theater der Welt, Stuttgart";

//B -last names starting with B
//------------------------------------------------------------------------------------------------------------------
descarray[7] = "Mangelos <br>Photo: Toso Dabac, Zagreb, 1968";
	artarray[34] = "Installation view";
	artarray[35] = "Installation view";
	
descarray[8] = "John Bock";
	artarray[8] = "Installation view, <i>Meechfieber</i>, 2004, single-channel video; color, sound; approx. 30 min. Courtesy of Klosterfelde, Berlin, and Anton Kern Gallery, New York; co-commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh and Fondazione Nicola Trussardi, Milan";
	artarray[9] = "Installation view, <i>Meechfieber</i>, 2004, single-channel video; color, sound; approx. 30 min. Courtesy of Klosterfelde, Berlin, and Anton Kern Gallery, New York; co-commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh and Fondazione Nicola Trussardi, Milan";

descarray[9] = "Lee Bontecou <br> Photo: Will Brown, 2002";
descarray[8] = "John Bock";
	artarray[10] = "Untitled, ca. 1980&#150;2001, welded steel, porcelain, wire mesh, silk, and wire; Collection of the artist; courtesy of Knoedler & Co., New York; copyright Lee Bontecou/courtesy of Knoedler & Co., New York";
	artarray[11] = "Untitled, 1962, welded steel, wood, and canvas construction; Abrams Family Collection, New York";

descarray[10] = "Robert Breer";
	artarray[12] = "Grouped stills from <i>What Goes Up?</i>, 2003, 16mm film; color, sound; 4:37 min.; Courtesy of the artist and &: gb agency, Paris";
	artarray[13] = "Installation view, <i>ATOZ</i>, 2000, 16mm film; color, sound; 5:45 min.; Courtesy of the artist and &: gb agency, Paris";

descarray[11] = "Fernando Bryce ";
	artarray[14] = "Selection from <i>Revolución</i>, from the series <i>Inter-American Affairs</i>, 2004, ink on paper; 230 drawings; courtesy of the artist and Galerie Barbara Thumm, Berlin";
	artarray[15] = "Installation view, <i>Revolución</i>, from the series <i>Inter-American Affairs</i>, 2004, ink on paper; 230 drawings; courtesy of the artist and Galerie Barbara Thumm, Berlin";

descarray[12] = "Kathy Butterly";
	artarray[16] = "<i>Mask</i>, 2003, porcelain, earthenware, and glaze; Courtesy of the artist and Tibor de Nagy Gallery, New York";
	artarray[17] = "Installation view";

//C -last names starting with C
//------------------------------------------------------------------------------------------------------------------
descarray[13] = "Maurizio Cattelan <br>Photo: Riccardi Rinetti, Milan";
	artarray[46] = "Installation view";
	artarray[47] = "Installation view";
	
descarray[14] = "Paul Chan";
	artarray[18] = "Installation view, <i>Happiness (finally) after 35,000 Years of Civilization&#151;after Henry Darger and Charles Fourier</i>, 2000&#150;2003, digital animation and screen; color, sound; 17:20 min.; Courtesy of the artist and Greene Naftali Gallery, New York";
	artarray[19] = "Still from <i>Now Let Us Praise American Leftists</i>, 2000, single-channel video; black and white, sound; 3:30 min.; Courtesy of the artist and Greene Naftali Gallery, New York";

descarray[15] = "Anne Chu";
	artarray[48] = "Installation view";
	artarray[49] = "Installation view";
	
descarray[16] = "Robert Crumb";
	artarray[20] = "Untitled (<i>Carnegie International</i> poster), 2004, ink and mixed media on paper; Collection of the artist; commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh";
	artarray[21] = "Installation view";

//D -last names starting with D
//------------------------------------------------------------------------------------------------------------------
descarray[17] = "Jeremy Deller";
	artarray[22] = "Installation view, <i>Breaking News (Dedicated to Peter Watkins)</i>, 2004, site-specific 3-channel video installation, color; Courtesy of the artist; Gavin Brown’s enterprise, New York; and The Modern Institute, Glasgow; commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh";
	artarray[23] = "Installation view, <i>Breaking News (Dedicated to Peter Watkins)</i>, 2004, site-specific 3-channel video installation, color; Courtesy of the artist; Gavin Brown’s enterprise, New York; and The Modern Institute, Glasgow; commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh";
	
descarray[18] = "Philip-Lorca diCorcia <br>Courtesy of the Artist";
	artarray[24] = "<i>Lynn</i>, 2004, chromogenic color print; Courtesy of the artist and Pace MacGill, New York";
	artarray[25] = "Installation view";
	
descarray[19] = "Peter Doig <br>Photo: Luis Romero";
	artarray[50] = "<i>Pelican (Stag)</i>, 2003, oil on canvas; Courtesy of Michael Werner Gallery, Cologne/New York";
	artarray[51] = "Installation view";

descarray[20] = "Trisha Donnelly";
	artarray[52] = "Installation view";
	artarray[53] = "Still from <i>Night Is Coming</i>, 2002, single-channel video installation, projected; color; 2 min., looped; Courtesy of the artist; Casey Kaplan, New York; and Air de Paris, Paris";

//F -last names starting with F
//------------------------------------------------------------------------------------------------------------------
descarray[21] = "Harun Farocki";
	artarray[26] = "Stills from <i>Eye Machine III</i>, 2003, 2-channel video installation; color, sound; 18 min.; Courtesy of the artist and Greene Naftali Gallery, New York";
	artarray[27] = "Installation view";
	
descarray[22] = "Saul Fletcher";
	artarray[28] = "<i>Untitled #136</i>, 2000, chromogenic color print; Courtesy of the artist and Anton Kern Gallery, New York";
	artarray[29] = "<i>Untitled #155</i>, 2004, chromogenic color print; Courtesy of the artist and Anton Kern Gallery, New York";
	
descarray[23] = "Yang Fudong";
	artarray[72] = "Still from <i>Seven Intellectuals in Bamboo Forest</i>, Part 1, 2003, 35mm film transferred to DVD; black and white, sound; 29 min.; Courtesy of the artist and Shangart Gallery, Shanghai";
	artarray[73] = "Installation view, still from <i>Seven Intellectuals in Bamboo Forest</i>, 2003, 35mm film transferred to DVD; black and white, sound; 29 min.; Courtesy of the artist and Shangart Gallery, Shanghai";

//G -last names starting with G
//------------------------------------------------------------------------------------------------------------------
descarray[24] = "Isa Genzken <br>Photo: Wolfgang Tillmans, 2002";
	artarray[30] = "From <i>Empire/Vampire III</i>, 2004, metal, glass, lacquer, paint, plastic, seeds, stones, paper, wood, and various materials; Courtesy of Galerie Daniel Buchholz, Cologne; neugerriemschneider, Berlin; and David Zwirner, New York";
	artarray[31] = "Installation view";
	
descarray[25] = "Mark Grotjahn";
	artarray[54] = "<i>Untitled (Green Butterfly Red Mark Grotjahn 04)</i>, 2004, oil on linen; Courtesy of the artist; Blum & Poe, Los Angeles; and Anton Kern Gallery, New York";
	artarray[55] = "Installation view";

//H -last names starting with H
//------------------------------------------------------------------------------------------------------------------
descarray[26] = "Rachel Harrison";
	artarray[56] = "Installation view";
	artarray[57] = "Installation view";
	
descarray[27] = "Carsten H&#246;ller";
	artarray[32] = "Installation view, <i>Solandra Greenhouse</i>, 2004, <i>Solandra maxima</i> [golden chalice vine], aluminum, acrylic, grow lights, strobe lights, and steel wire; Courtesy of the artist; Casey Kaplan, New York; and Schipper & Krome, Berlin; commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh";
	artarray[33] = "Installation view, <i>Solandra maxima</i> [golden chalice vine]";
	
//K -last names starting with K
//------------------------------------------------------------------------------------------------------------------
descarray[28] = "Katarzyna Kozyra";
	artarray[58] = "Installation view";
	artarray[59] = "Performance still";

//L -last names starting with L
//------------------------------------------------------------------------------------------------------------------
descarray[29] = "Jim Lambie";
	artarray[60] = "Installation view";
	artarray[61] = "<i>Bleached Highlights</i>, 2002, mirrors, shoes, and enamel paint; Private collection, New York";
	
//------------------------------------------------------------------------------------------------------------------
//M -last names starting with M
//------------------------------------------------------------------------------------------------------------------
descarray[30] = "Julie Mehretu";
	artarray[62] = "Installation view";
	artarray[63] = "Installation view";
	
//------------------------------------------------------------------------------------------------------------------
//N -last names starting with N
//------------------------------------------------------------------------------------------------------------------
descarray[31] = "Senga Nengudi";
	artarray[36] = "Installation view";
	artarray[37] = "Installation view, <i>From One Source Many Rivers</i>, 2004, sand, pigment, fossils, and tape; Courtesy of the artist and Thomas Erben Gallery, New York; commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh";
	
//------------------------------------------------------------------------------------------------------------------
//R -last names starting with R
//------------------------------------------------------------------------------------------------------------------
descarray[32] = "Araya Rasdjarmrearnsook";
	artarray[66] = "Installation view, still from <i>Reading Inaow for Female Corpse</i>, 2001, single-channel video; color, sound; 5:54 min.; Courtesy of the artist";
	artarray[67] = "Installation view, still from <i>Reading Inaow for Female Corpse</i>, 2001, single-channel video; color, sound; 5:54 min.; Courtesy of the artist";
	
descarray[33] = "Oliver Payne (right) <br>&amp; Nick Relph (left)";
	artarray[64] = "Installation view, still from <i>Comma, Pregnant Pause</i>, 2004, single-channel video; color, sound; 27 min.; Courtesy of the artists and Gavin Brown's enterprise, New York; commissioned by 2004&#150;5 <i>Carnegie International</i>, Carnegie Museum of Art, Pittsburgh";
	artarray[65] = "Installation view, still from <i>Driftwood</i>, 1999, single-channel video; color, sound; 25 min.; Courtesy of the artists and Gavin Brown's enterprise, New York";
	
descarray[34] = "Neo Rauch";
	artarray[38] = "<i>Sekte</i>, 2004, oil on canvas; Courtesy of Galerie EIGEN + ART, Leipzig/Berlin, and David Zwirner, New York";
	artarray[39] = "<i>Grotte</i>, 2004, oil on canvas; Courtesy of Galerie EIGEN + ART, Leipzig/Berlin, and David Zwirner, New York";
	
descarray[35] = "Ugo Rondinone";
	artarray[68] = "Installation view, stills from <i>Roundelay</i>, 2003, 6-channel video installation projected on six walls that form a hexagon; color, sound; 8:54 min., looped; Courtesy of the artist; Eva Presenhuber, Zurich; Matthew Marks Gallery, New York; and Galerie Almine Rech, Paris";
	artarray[69] = "Still from <i>Roundelay</i>, 2003, 6-channel video installation projected on six walls that form a hexagon; color, sound; 8:54 min., looped; Courtesy of the artist; Eva Presenhuber, Zurich; Matthew Marks Gallery, New York; and Galerie Almine Rech, Paris ";
	
descarray[36] = "Eva Rothschild";
	artarray[70] = "<i>Disappearer</i>, 2001&#150;4, incense sticks; Courtesy of the artist; The Modern Institute, Glasgow, and Modern Art, London";
	artarray[71] = "Installation view";

//------------------------------------------------------------------------------------------------------------------
var overdiv="0";

//-------------------------------------------------------------------------------------------------------------------

function popLayer(a)
{
	if(!descarray[a])
	{
		descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";
	}
	if (navigator.family == "gecko") 
	{
		pad="1"; 
		bord="0";
	}
	else 
	{
		pad="1";
		bord="0";
	}
	
	var desc = "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=FF3485> <tr><td>\n"
			 + "<table cellspacing=0 cellpadding=3 border=0 width=175px><tr><td bgcolor=FF3485>\n"
			 + "<span class='bio_pop'>" + descarray[a] + "</span>"
			 + "\n</td></tr></table>\n"
			 + "</td></tr></table>";
			 
	if(navigator.family =="nn4") 
	{
		document.object1.document.write(desc);
		document.object1.document.close();
		document.object1.left=x-45;
		document.object1.top=y+20;
	}
	else if(navigator.family =="ie4")
	{
		object1.innerHTML=desc;
		object1.style.pixelLeft=x-45;
		object1.style.pixelTop=y+20;
	}
	else if(navigator.family =="gecko")
	{
		document.getElementById("object1").innerHTML=desc;
		document.getElementById("object1").style.left=x-45;
		document.getElementById("object1").style.top=y+20;
	}
}

//-------------------------------------------------------------------------------------------------------------------

function popArtLayer(b)
{
	if(!artarray[b])
	{
		artarray[b]="<font color=red>This popup (#"+b+") isn't setup correctly - needs description</font>";
	}
	if (navigator.family == "gecko") 
	{
		pad="1"; 
		bord="0";
	}
	else 
	{
		pad="1";
		bord="0";
	}
	
	var art = "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=FF3485> <tr><td>\n"
			 + "<table cellspacing=0 cellpadding=3 border=0 width=175px><tr><td bgcolor=FF3485>\n"
			 + "<span class='bio_pop'>" + artarray[b] + "</span>"
			 + "\n</td></tr></table>\n"
			 + "</td></tr></table>";
	
	if(navigator.family =="nn4") 
	{
	//alert('nn4');
		document.object1.document.write(art);
		document.object1.document.close();
		document.object1.left=x-45;
		document.object1.top=y+20;
	}
	else if(navigator.family =="ie4")
	{
	//alert('ie4');
		object1.innerHTML=art;
		object1.style.pixelLeft=x-45;
		object1.style.pixelTop=y+40;
	}
	else
	{
	//alert('other');
		document.getElementById("object1").innerHTML=art;
		document.getElementById("object1").style.left=x-45;
		document.getElementById("object1").style.top=y+20;
	}
}

//-------------------------------------------------------------------------------------------------------------------

function hideLayer()
{
	//if (overdiv == "0") 
	//{
		if(navigator.family =="nn4") {eval(document.object1.top="-500");}
		else if(navigator.family =="ie4"){object1.style.pixelTop=-500;}
		else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
	//}
}

//-------------------------------------------------------------------------------------------------------------------

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e)
{
	x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
	y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}

if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;

//-------------------------------------------------------------------------------------------------------------------

//  ########  Pop art image up in sized window
function popImage(imgName){
var starter="../images/popups/";
var ender="p.jpg";
	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=300');
	w.document.write( "<html><head><title>Carnegie International</title>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+12,document.images[0].height+31+8)\n");
	//w.document.write( "	else if(NN6) self.sizeToContent()\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width+28,document.images[0].height+56)\n");						
	w.document.write( "	self.focus()\n");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<table cellpadding=0 cellspacing=0 border=0><tr><td><img id=grab src='"+starter+imgName+ender+"' border=0 alt='"+imgName+"'></td></tr>" );
	w.document.write( "</table></body></html>" );
	w.document.close();
}
