/* 	Copyright:	ARTwareSOFTWARE 
	Project:	Roeder
	File: 		RDR_js.js 
	Version: 	0.0 
	Description:	Javascript support file
*/

retDir =  ""
gallery ='MARGARETE ROEDER GALLERY'
cgi     ='/cgi-bin/RDRinv.pl?arti='

function loadPic(d) {
    if (document.images) {
	homeOff = new Image
	homeOn  = new Image
	homeOff.src = d +  'graphics/homeOff.gif'
	homeOn.src  = d +  'graphics/homeOn.gif'
	artistsOff = new Image
	artistsOn  = new Image
	artistsOff.src = d +  'graphics/artistsOff.gif'
	artistsOn.src  = d +  'graphics/artistsOn.gif'
	exhibitOff = new Image
	exhibitOn  = new Image
	exhibitOff.src = d +  'graphics/exhibitOff.gif'
	exhibitOn.src  = d +  'graphics/exhibitOn.gif'
	invOff = new Image
	invOn  = new Image
	invOff.src = d +  'graphics/invOff.gif'
	invOn.src  = d +  'graphics/invOn.gif'
	contactOff = new Image
	contactOn  = new Image
	contactOff.src = d +  'graphics/contactOff.gif'
	contactOn.src  = d +  'graphics/contactOn.gif'
    }
    else {	
	homeOff = ""
	homeOn = ""
	document.home = ""
	artistsOff = ""
	artistsOn = ""
	document.artists = ""
	exhibitOff = ""
	exhibitOn = ""
	document.exhibit = ""
	invOff = ""
	invOn = ""
	document.inv = ""
	contactOff = ""
	contactOn = ""
	document.contact = ""
    }
}
	
function mailLink() {
      document.write("<a href='mailto:info@roedergallery.com'><FONT color=#CC0000 face='geneva, arial, sans serif' onmouseout='this.style.color=\"#CC0000\"' onmouseover='this.style.color=\"#FFCC00\"'><B>Margarete Roeder</B></FONT></FONT></a>")
    }

function PageChanger(page) {
 	document.location= cgi + page + "\&rp=Work";
 	document.NavForm.PullDown.options[0].selected=true;
 }
 function PageChanger2(page) {
 	document.location= page;
 	document.NavForm2.PullDown.options[0].selected=true;
 }

function mainHead(d) {
	hd = "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=985>"
	hd += "<tr><TD VALIGN=top COLSPAN=7 width=985 HEIGHT=16>"
	hd += "<IMG SRC='" + d + "graphics/red_back2.gif' WIDTH=985 HEIGHT=16 BORDER=0 ALIGN=bottom></td>"
	hd += "<td align=right><font face='HELVETICA,ARIAL' size=1></TR>"
	hd += "<TR><TD VALIGN=top WIDTH=330 HEIGHT=30>\n"
	hd += "<P><IMG SRC='" + d + "graphics/roeder.gif' ALT='" + gallery + "' WIDTH=330 HEIGHT=30 ALIGN=bottom></P>\n"
	hd += "</TD><TD VALIGN=top WIDTH=55 HEIGHT=30><p><a HREF='" + d + "index.htm'"
	hd += "onmouseover='document.home.src=homeOn.src' onmouseout='document.home.src=homeOff.src'>"
	hd += "<IMG SRC='" + d + "graphics/homeOff.gif' ALT='HOME' WIDTH=55 HEIGHT=30 BORDER=0 ALIGN=bottom name=home></A></P> \n"
	hd += "</TD><TD VALIGN=top WIDTH=65 HEIGHT=30> \n"
	hd += "<p><a HREF='" + d + "artists.htm' onmouseover='document.artists.src=artistsOn.src'  \n"
	hd += "onmouseout='document.artists.src=artistsOff.src'> \n"
	hd += "<IMG SRC='" + d + "graphics/artistsOff.gif' ALT='ARTISTS' WIDTH=72 HEIGHT=30 BORDER=0 ALIGN=bottom name=artists></A></P> \n"
	hd += "</TD><TD VALIGN=top WIDTH=80 HEIGHT=30> \n"
	hd += "<p><a HREF='" + d + "exhibitions.htm' onmouseover='document.exhibit.src=exhibitOn.src'  \n"
	hd += "onmouseout='document.exhibit.src=exhibitOff.src'> \n"
	hd += "<IMG SRC='" + d + "graphics/exhibitOff.gif' ALT='EXHIBITIONS' WIDTH=82 HEIGHT=30 BORDER=0 ALIGN=bottom name=exhibit></A></P> \n"
	hd += "</TD><TD VALIGN=top WIDTH=85 HEIGHT=30> \n"
	hd += "<p><a HREF='" + d + "inv.htm' onmouseover='document.inv.src=invOn.src'  \n"
	hd += "onmouseout='document.inv.src=invOff.src'> \n"
	hd += "<IMG SRC='" + d + "graphics/invOff.gif' ALT='INVENTORY' WIDTH=79 HEIGHT=30 BORDER=0 ALIGN=bottom name=inv></A></P> \n"
	hd += "</TD><TD VALIGN=top WIDTH=70 HEIGHT=30> \n"
	hd += "<p><a HREF='" + d + "contact.htm' onmouseover='document.contact.src=contactOn.src'\n"
	hd += "onmouseout='document.contact.src=contactOff.src'>\n"
	hd += "<IMG SRC='" + d + "graphics/contactOff.gif' ALT='CONTACT' WIDTH=83 HEIGHT=30 BORDER=0 ALIGN=bottom name=contact></A></P>\n"
	hd += "</TD><TD VALIGN=top HEIGHT=30>\n"
	hd += "<P><IMG SRC='" + d + "graphics/white_spacer.gif' WIDTH=300 HEIGHT=30 BORDER=0 ALIGN=top></P> \n"
	hd += "</TD><TD HEIGHT=30><P></P></TD></TR></TABLE> \n"
	document.write(hd)
}

  imgjpg = new Array("wall_toeng","wall_decrig","wall_gritsch","wall_baroff","wall_gast")
  function selImg() {
      	var sel =  Math.floor( (Math.random()* 5) )
      	var img = "<img src=graphics/" +  imgjpg[sel] + ".jpg border=0>"
	document.write("<a HREF=index.htm>" + img + " </a>")
  }

function selArtist() {
	 ad  = "<P><FONT SIZE=-1 FACE='geneva, arial, sans serif'><FORM ACTION='' METHOD=POST name=NavForm> \n"
	 ad += "<P><SELECT NAME=PullDown onchange='PageChanger(this.options[this.selectedIndex].value)'> \n"
	 ad += "   <OPTION> Search by Artist\n"
	 ad += "   <OPTION VALUE='All'>All Artists\n"
	 ad += "   <OPTION VALUE='ACCONCI'>Vito Acconci \n"
	 ad += "   <OPTION VALUE='BALDESSARI'>John Baldessari \n"
	 ad += "   <OPTION VALUE='BASELITZ'>Georg Baselitz \n"
	 ad += "   <OPTION VALUE='BEUYS'>Joseph Beuys \n"
	 ad += "   <OPTION VALUE='DEACON'>Richard Deacon \n"
	 ad += "   <OPTION VALUE='DIEBENKORN'>Richard Diebenkorn \n"
	 ad += "   <OPTION VALUE='DILL'>Lesley Dill \n"
	 ad += "   <OPTION VALUE='FLAVIN'>Dan Flavin \n"
	 ad += "   <OPTION VALUE='FÖRG'>Günther Förg \n"
	 ad += "   <OPTION VALUE='GRAHAM'>Dan Graham \n"
	 ad += "   <OPTION VALUE='IMMENDORFF'>Jürg Immendorff \n"
	 ad += "   <OPTION VALUE='JACQUETTE'>Julia Jacquette \n"
	 ad += "   <OPTION VALUE='JENSEN'>Alfred Jensen \n"
	 ad += "   <OPTION VALUE='JUDD'>Donald Judd \n"
	 ad += "   <OPTION VALUE='KIRKEBY'>Per Kirkeby \n"
	 ad += "   <OPTION VALUE='KNOEBEL'>Imi Knoebel \n"
	 ad += "   <OPTION VALUE='LEMIEUX'>Annette Lemieux \n"
	 ad += "   <OPTION VALUE='LEVINE'>Sherrie Levine \n"
	 ad += "   <OPTION VALUE='WITT'>Sol Le Witt \n"
	 ad += "   <OPTION VALUE='LOZANO'>Lee Lozano \n"
	 ad += "   <OPTION VALUE='MANGOLD'>Robert Mangold \n"
	 ad += "   <OPTION VALUE='MARIONI'>Tom Marioni \n"
	 ad += "   <OPTION VALUE='MULLICAN'>Matt Mullican \n"
	 ad += "   <OPTION VALUE='NAUMAN'>Bruce Nauman \n"
	 ad += "   <OPTION VALUE='NITSCH'>Hermann Nitsch \n"
	 ad += "   <OPTION VALUE='HARA'>Frank O'Hara \n"
	 ad += "   <OPTION VALUE='KOONING'>Willem de Kooning \n"
	 ad += "   <OPTION VALUE='PAIK'>Nam June Paik \n"
	 ad += "   <OPTION VALUE='RAUSCHENBERG'>Robert Rauschenberg \n"
	 ad += "   <OPTION VALUE='RICHTER'>Gerhard Richter \n"
	 ad += "   <OPTION VALUE='RUSCHA'>Ed Ruscha \n"
	 ad += "   <OPTION VALUE='RYMAN'>Robert Ryman \n"
	 ad += "   <OPTION VALUE='SANDBACK'>Fred Sandback \n"
	 ad += "   <OPTION VALUE='SCHUTTE'>Thomas Sch&uuml;tte \n"
	 ad += "   <OPTION VALUE='SERRA'>Richard Serra \n"
	 ad += "   <OPTION VALUE='SIMMONS'>Laurie Simmons \n"
	 ad += "   <OPTION VALUE='TROCKEL'>Rosemarie Trockel \n"
	 ad += "   <OPTION VALUE='TUTTLE'>Richard Tuttle \n"
	 ad += "   <OPTION VALUE='CUTTS'>Simon Cutts \n"
	 ad += "   <OPTION VALUE='TWOMBLY'>Cy Twombly \n"
	 ad += "   <OPTION VALUE='WARHOL'>Andy Warhol \n"
	 ad += "   <OPTION VALUE='WEINER'>Lawrence Weiner \n"
	 ad += "   <OPTION VALUE='ZENIUK'>Jerry Zeniuk \n"
	 ad += "   <OPTION VALUE='ZODERER'>Beat Zoderer \n"
	 ad += "</SELECT></FORM><BR></FONT></P>\n"
	document.write(ad)
}

function mainFoot() {
	fd = "<table><tr><td><font face='geneva, arial, sans serif' size=1 color=gray>\n"
	fd += "<br> ©2010 MARGARETE ROEDER GALLERY "
	fd += "545 BROADWAY FOURTH FLOOR NEW YORK CITY \n"
	fd += "<br><br></font></td></tr></table>\n"
	document.write(fd)
}

function setFont(typ) {
	var platform = navigator.platform.substr(0,3);
	var fnt = "<FONT  face=\"geneva, arial, sans serif\" SIZE=1 >"
	if (platform == "Mac"){ fnt = "<FONT face=\"geneva, arial, sans serif\" SIZE=2 >" }
	if(typ == 'roll') {
	    fnt += "<FONT color=#CC0000 "
	    fnt += " onmouseout=\"this.style.color='#CC0000'\" "
	    fnt += " onmouseover=\"this.style.color='#FFCC00'\" >"
	}
	if(typ == 'black') { fnt += "<FONT face=\"geneva, arial, sans serif\" color='#000000' >" }
	document.write(fnt)
}

var gal_artist = new Array(
"|GEORG BASELITZ",
"|JAMES BISHOP",
"cage_main|JOHN CAGE",
"cunningham_main|MERCE CUNNINGHAM",
"deacon_main|RICHARD DEACON",
"decrignis_main|RUDOLF DE CRIGNIS",
"forg_main|GÜNTHER FÖRG",
"gasteiger_main|JAKOB GASTEIGER ",
"|STEFAN GRITSCH",
"|EVA HESSE",
"immendorff_main|JÜRG IMMENDORFF",
"|DONALD JUDD",
"|ELLSWORTH KELLY",
"kirkeby_main|PER KIRKEBY",
"|GARY KUEHN",
"landies_main|DOUGLAS LANDIES",
"lozano_main|LEE LOZANO",
"|MARKUS LÜPERTZ",
"marioni_main|TOM MARIONI",
"muller_main|BARBARA MÜLLER",
"paik_main|NAM JUNE PAIK",
"|JEFF PRICE",
"|RICHARD PRINCE",
"puffer_main|YVONNE PUFFER",
"|ROBERT RYMAN",
"|FRED SANDBACK",
"schlegel_main|EVA SCHLEGEL",
"|RICHARD TUTTLE",
"weggenmann_main|MARKUS WEGGENMANN")


