agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0,7) == "Mozilla")
    {
    if (parseInt(agent.substring(8,9)) >= 3) {browserVer = 1;}
    }
if (browserVer == 1)
        {

          twofourtwo_4_lemons_with_cherubs = new Image;
          twofourtwo_4_lemons_with_cherubs.src = "images/242/4_lemons_with_cherubs_242.jpg";
          twofourtwo_6_carrots = new Image;
          twofourtwo_6_carrots.src = "images/242/6_carrots_242.jpg";
          twofourtwo_adam__eve = new Image;
          twofourtwo_adam__eve.src = "images/242/adam__eve_242.jpg";
          twofourtwo_arrest = new Image;
          twofourtwo_arrest.src = "images/242/arrest_242.jpg";
          twofourtwo_assassination = new Image;
          twofourtwo_assassination.src = "images/242/assassination_242.jpg";
          twofourtwo_audubon = new Image;
          twofourtwo_audubon.src = "images/242/audubon_242.jpg";
          twofourtwo_barbara__fred = new Image;
          twofourtwo_barbara__fred.src = "images/242/barbara__fred_242.jpg";
          twofourtwo_cantaloupe_and_crabapple = new Image;
          twofourtwo_cantaloupe_and_crabapple.src = "images/242/cantaloupe_and_crabapple_242.jpg";
          twofourtwo_dan_black_hat = new Image;
          twofourtwo_dan_black_hat.src = "images/242/dan_black_hat_242.jpg";
          twofourtwo_dan_blue_sweatshirt = new Image;
          twofourtwo_dan_blue_sweatshirt.src = "images/242/dan_blue_sweatshirt_242.jpg";
          twofourtwo_dan_cigarette_i = new Image;
          twofourtwo_dan_cigarette_i.src = "images/242/dan_cigarette_i_242.jpg";
          twofourtwo_dan_cigarette_ii = new Image;
          twofourtwo_dan_cigarette_ii.src = "images/242/dan_cigarette_ii_242.jpg";
          twofourtwo_dan_cigarette_v = new Image;
          twofourtwo_dan_cigarette_v.src = "images/242/dan_cigarette_v_242.jpg";
          twofourtwo_dan_cigarette_vi = new Image;
          twofourtwo_dan_cigarette_vi.src = "images/242/dan_cigarette_vi_242.jpg";
          twofourtwo_dan_leather_jacket_i = new Image;
          twofourtwo_dan_leather_jacket_i.src = "images/242/dan_leather_jacket_i_242.jpg";
          twofourtwo_dan_leather_jacket_ii = new Image;
          twofourtwo_dan_leather_jacket_ii.src = "images/242/dan_leather_jacket_ii_242.jpg";
          twofourtwo_dan_leather_jacket_iii = new Image;
          twofourtwo_dan_leather_jacket_iii.src = "images/242/dan_leather_jacket_iii_242.jpg";
          twofourtwo_dan_lime_green = new Image;
          twofourtwo_dan_lime_green.src = "images/242/dan_lime_green_242.jpg";
          twofourtwo_dan_straw_hat = new Image;
          twofourtwo_dan_straw_hat.src = "images/242/dan_straw_hat_242.jpg";
          twofourtwo_death_squad = new Image;
          twofourtwo_death_squad.src = "images/242/death_squad_242.jpg";
          twofourtwo_disappeared__ = new Image;
          twofourtwo_disappeared__.src = "images/242/disappeared___242.jpg";
          twofourtwo_disappeared_ = new Image;
          twofourtwo_disappeared_.src = "images/242/disappeared__242.jpg";
          twofourtwo_disappeared = new Image;
          twofourtwo_disappeared.src = "images/242/disappeared_242.jpg";
          twofourtwo_doll_looking_back_i = new Image;
          twofourtwo_doll_looking_back_i.src = "images/242/doll_looking_back_i_242.jpg";
          twofourtwo_doll_looking_back_ii = new Image;
          twofourtwo_doll_looking_back_ii.src = "images/242/doll_looking_back_ii_242.jpg";
          twofourtwo_doll_lying_on_back_i = new Image;
          twofourtwo_doll_lying_on_back_i.src = "images/242/doll_lying_on_back_i_242.jpg";
          twofourtwo_doll_lying_on_back_ii = new Image;
          twofourtwo_doll_lying_on_back_ii.src = "images/242/doll_lying_on_back_ii_242.jpg";
          twofourtwo_doll_red_dress = new Image;
          twofourtwo_doll_red_dress.src = "images/242/doll_red_dress_242.jpg";
          twofourtwo_doll_with_bow_i = new Image;
          twofourtwo_doll_with_bow_i.src = "images/242/doll_with_bow_i_242.jpg";
          twofourtwo_doll_with_bow_ii = new Image;
          twofourtwo_doll_with_bow_ii.src = "images/242/doll_with_bow_ii_242.jpg";
          twofourtwo_doll_with_red_hair_i = new Image;
          twofourtwo_doll_with_red_hair_i.src = "images/242/doll_with_red_hair_i_242.jpg";
          twofourtwo_doll_with_red_hair_ii = new Image;
          twofourtwo_doll_with_red_hair_ii.src = "images/242/doll_with_red_hair_ii_242.jpg";
          twofourtwo_doll_wrapped_plastic = new Image;
          twofourtwo_doll_wrapped_plastic.src = "images/242/doll_wrapped_plastic_242.jpg";
          twofourtwo_ethnic_cleansing = new Image;
          twofourtwo_ethnic_cleansing.src = "images/242/ethnic_cleansing_242.jpg";
          twofourtwo_eyewitness = new Image;
          twofourtwo_eyewitness.src = "images/242/eyewitness_242.jpg";
          twofourtwo_falling_iv = new Image;
          twofourtwo_falling_iv.src = "images/242/falling_iv_242.jpg";
          twofourtwo_feasting = new Image;
          twofourtwo_feasting.src = "images/242/feasting_242.jpg";
          twofourtwo_flora_i = new Image;
          twofourtwo_flora_i.src = "images/242/flora_i_242.jpg";
          twofourtwo_guerrilla = new Image;
          twofourtwo_guerrilla.src = "images/242/guerrilla_242.jpg";
          twofourtwo_insect_courtship = new Image;
          twofourtwo_insect_courtship.src = "images/242/insect_courtship_242.jpg";
          twofourtwo_interrogation = new Image;
          twofourtwo_interrogation.src = "images/242/interrogation_242.jpg";
          twofourtwo_melvin_in_white_shirt = new Image;
          twofourtwo_melvin_in_white_shirt.src = "images/242/melvin_in_white_shirt_242.jpg";
          twofourtwo_melvin_study_in_garden = new Image;
          twofourtwo_melvin_study_in_garden.src = "images/242/melvin_study_in_garden_242.jpg";
          twofourtwo_melvin_white_tshirt = new Image;
          twofourtwo_melvin_white_tshirt.src = "images/242/melvin_white_tshirt_242.jpg";
          twofourtwo_melvin_yellow_tshirt_grateful_dead = new Image;
          twofourtwo_melvin_yellow_tshirt_grateful_dead.src = "images/242/melvin_yellow_tshirt_grateful_dead_242.jpg";
          twofourtwo_metaphysical_landscape = new Image;
          twofourtwo_metaphysical_landscape.src = "images/242/metaphysical_landscape_242.jpg";
          twofourtwo_on_the_rocks = new Image;
          twofourtwo_on_the_rocks.src = "images/242/on_the_rocks_242.jpg";
          twofourtwo_revenge = new Image;
          twofourtwo_revenge.src = "images/242/revenge_242.jpg";
          twofourtwo_starting_over = new Image;
          twofourtwo_starting_over.src = "images/242/starting_over_242.jpg";
          twofourtwo_still_life = new Image;
          twofourtwo_still_life.src = "images/242/still_life_242.jpg";
          twofourtwo_the_car = new Image;
          twofourtwo_the_car.src = "images/242/the_car_242.jpg";
          twofourtwo_the_fight = new Image;
          twofourtwo_the_fight.src = "images/242/the_fight_242.jpg";
          twofourtwo_the_light = new Image;
          twofourtwo_the_light.src = "images/242/the_light_242.jpg";
          twofourtwo_time = new Image;
          twofourtwo_time.src = "images/242/time_242.jpg";
          twofourtwo_untitled = new Image;
          twofourtwo_untitled.src = "images/242/untitled_242.jpg";
          twofourtwo_venus = new Image;
          twofourtwo_venus.src = "images/242/venus_242.jpg";
          twofourtwo_waves_5 = new Image;
          twofourtwo_waves_5.src = "images/242/waves_5_242.jpg";
        }

function img_act(imgName,txtSrce,ptgDim,ptgDt,ptgTitle)
        {
        if (browserVer == 1) {
          imgOn = eval(imgName + "_" + txtSrce + ".src");
          document [imgName].src = imgOn;
		  document.getElementById('dimensions').innerHTML = ptgDim;
		  document.getElementById('date').innerHTML = ptgDt;
		  document.getElementById('title').innerHTML = ptgTitle;
          document.links[7].href = ('javascript:createWindow\(\'' + txtSrce + '\',\'820\',\'689\',\'' + ptgDim +'\',\'' + ptgTitle +'\',\'' + ptgDt + '\'\)');
          document.links[8].href = ('javascript:createWindow\(\'' + txtSrce + '\',\'820\',\'689\',\'' + ptgDim +'\',\'' + ptgTitle +'\',\'' + ptgDt + '\'\)');
          }
		}

function img_act_alt(imgName,txtSrce,ptgDim,ptgDt,ptgTitle)
        {
        if (browserVer == 1) {
          imgOn = eval(imgName + "_" + txtSrce + ".src");
          document [imgName].src = imgOn;
		  document.getElementById('dimensions').innerHTML = ptgDim;
		  document.getElementById('date').innerHTML = ptgDt;
		  document.getElementById('title').innerHTML = ptgTitle;
          document.links[8].href = ('javascript:createWindow\(\'' + txtSrce + '\',\'820\',\'689\',\'' + ptgDim +'\',\'' + ptgTitle +'\',\'' + ptgDt + '\'\)');
          document.links[9].href = ('javascript:createWindow\(\'' + txtSrce + '\',\'820\',\'689\',\'' + ptgDim +'\',\'' + ptgTitle +'\',\'' + ptgDt + '\'\)');
          }
		}

function createWindow(imgName0,winWide,winHi,ptgDim0,ptgTitle0,ptgDt0) {
	loadPic = imgName0;
	loadDim = ptgDim0;
	loadTitle = ptgTitle0;
	loadDate = ptgDt0;
    mywindow = window.open('about:blank','large','width=' + winWide + ',height=' + winHi + ',resizable');
    setTimeout('createFrameset(loadPic,loadDim,loadTitle,loadDate)',10);
}

function createFrameset(imgName1,ptgDim1,ptgTitle1,ptgDt1) {
    var output = '<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN>' +
				 '' +
				 '<html>' +
				 '<head>' +
				 '<title>Marci Gintis: Fine Art</title>' +
				 '<LINK HREF=style.css REL=stylesheet TYPE=text/css>' +
				 '</head>' +
				 '' +
				 '<body LEFTMARGIN=9 TOPMARGIN=7 MARGINWIDTH=9 MARGINHEIGHT=7>' +
				 '		<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>' +
				 '			<TR>' +
				 '				<TD COLSPAN=5 BGCOLOR=#6A6A6A><IMG SRC=images/cleardot.gif HEIGHT=1></TD>' +
				 '			</TR>' +
				 '			<TR>' +
				 '				<TD BGCOLOR=#6A6A6A><IMG SRC=images/cleardot.gif WIDTH=1 HEIGHT=1></TD>' +
				 '				<TD COLSPAN=3><IMG SRC=images/800/' + imgName1 + '_800.jpg NAME=eightzerozero ID=painting BORDER=0></TD>' +
				 '				<TD BGCOLOR=#6A6A6A><IMG SRC=images/cleardot.gif WIDTH=1 HEIGHT=1></TD>' +
				 '			</TR>' +
				 '			<TR>' +
				 '				<TD COLSPAN="5" BGCOLOR="#6A6A6A"><IMG SRC="images/cleardot.gif" HEIGHT="1"></TD>' +
				 '			</TR>' +
				 '			<TR>' +
				 '				<TD BGCOLOR="#6A6A6A"><IMG SRC="images/cleardot.gif" WIDTH="1" HEIGHT="2"></TD>' +
				 '				<TD><IMG SRC="images/cleardot.gif" HEIGHT="2"></TD>' +
				 '				<TD><IMG SRC="images/cleardot.gif" HEIGHT="2"></TD>' +
				 '				<TD><IMG SRC="images/cleardot.gif" HEIGHT="2"></TD>' +
				 '				<TD BGCOLOR="#6A6A6A"><IMG SRC="images/cleardot.gif" WIDTH="1" HEIGHT="2"></TD>' +
				 '			</TR>' +
				 '			<TR>' +
				 '				<TD BGCOLOR=#6A6A6A><IMG SRC=images/cleardot.gif WIDTH=1 HEIGHT=1></TD>' +
				 '				<TD ALIGN="left" VALIGN="top"><A HREF="javascript:window.close\(\)"><IMG SRC=images/close_txt.gif ALT=close window WIDTH=88 HEIGHT=14 HSPACE=2 BORDER=0></A></TD>' +
				 '				<TD VALIGN=top CLASS=title><span id=title><B>' + ptgTitle1 + '</B></span></TD>' +
				 '				<TD VALIGN=top NOWRAP CLASS=caption><span id=dimensions>' + ptgDim1 + '</span>&nbsp;&nbsp;&nbsp;&nbsp;\'<span id=date>' + ptgDt1 + '</span></TD>' +
				 '				<TD BGCOLOR=#6A6A6A><IMG SRC=images/cleardot.gif WIDTH=1 HEIGHT=1></TD>' +
				 '			</TR>' +
				 '			<TR>' +
				 '				<TD BGCOLOR="#6A6A6A"><IMG SRC="images/cleardot.gif" WIDTH="1" HEIGHT="2"></TD>' +
				 '				<TD><IMG SRC="images/cleardot.gif" HEIGHT="2"></TD>' +
				 '				<TD><IMG SRC="images/cleardot.gif" HEIGHT="2"></TD>' +
				 '				<TD><IMG SRC="images/cleardot.gif" HEIGHT="2"></TD>' +
				 '				<TD BGCOLOR="#6A6A6A"><IMG SRC="images/cleardot.gif" WIDTH="1" HEIGHT="2"></TD>' +
				 '			</TR>' +
				 '			<TR>' +
				 '				<TD COLSPAN=5 BGCOLOR=#6A6A6A><IMG SRC=images/cleardot.gif HEIGHT=1></TD>' +
				 '			</TR>' +
				 '		</TABLE>' +
				 '		</TABLE>' +
				 '' +
				 '' +
				 '</body>' +
				 '</html>';
    mywindow.document.write(output);
}

function pagejump(to_url)
		{
		if (to_url != "")
			{
			window.location=to_url
			}
		}
