//CONFIGURATION//////////////////////////////////////////////////////////////////////////////////////////////
var last_updated = "03-JUN-2010";

//Values that dictate the configuration of the image grid:
var maxNumInRow = 5;
var maxNumOfRows = 4;
var paging = 'TRUE';

var images = new Array();
//IMAGES
//
//NOTES:
//	1) NEVER use commas in fields unless you preseed it by a "\".
//	2) Multiple words in the 'Name' field need to be "_" delimited.
//	3) Numerical fields should not be put in quotes.
//	4) '~' in the array field will be replaced with '/' when displaying the value.
//	5) '@' in the array field will be replaced with ''' when displaying the value.
//	6) '^' in the array field will be replaced with ',' when displaying the value.
//KEY:
//  images[images.length] = new Array("Name", "Type [painting/other]", "Description", Height, Width, Year);


//Show Detains:
    var show_flag        = "0";
    var show_date        = "";
    var show_title       = "Last chance to view <i>The Drawing Room</i> <a href='http://cclarkgallery.us1.list-manage.com/track/click?u=b92a03bd1cb20bb97772cdb30&id=f7d86bf890&e=QKBbPtN6ga'>[LINK]</a>";
    var show_description = "The inaugural exhibition at 14th Street Studio\, NY.<br>Works on paper by Ray Beldner\, Adam Chapman\, Anthony Discenza\, Kara Maria\, Jonathan Solo\, Josephine Taylor\, Masami Teraoka.<br>Sculptural projects by Ray Beldner and Walter Robinson.";
    var show_details     = "Sunday\, April 25\, 11am–2pm<br>Join us for Champagne and Bagels<br>The next 14th Street Studio exhibtion is Anthony Discenza\, May 13–15\, 2010<br><br>";
    var show_host        = "14th Street Studio";
    var show_host_URL    = "http:\/\/www.cclarkgallery.com/"
    var show_address     = "313 W 14th Street 2F\, New York\, NY 10014";
    var show_email       = "cc@cclarkgallery.com";
    var show_phone       = "415-519-1439 or 415-399-1439";
    var show_image       = "images/Butt_Portion_Ham.jpg";


//Paintings:
    images[images.length] = new Array("Lush_Life", "painting", "Acrylic on canvas.", 51, 39, 2002, "");
    images[images.length] = new Array("Friendly_Fire", "painting", "Acrylic on canvas (diptych).", 60, 94, 2001, "");
    images[images.length] = new Array("Buddy_System", "painting", "Acrylic on canvas.", 51, 39, 2002, "");
    images[images.length] = new Array("Blue_Streak", "painting", "Acrylic on canvas.", 51, 39, 2003, "");
    images[images.length] = new Array("Back_On_Top", "painting", "Acrylic on canvas.", 51, 39, 2002, "");
    images[images.length] = new Array("On_Pure_Sudden_Days_Like_Innocence", "painting", "Acrylic on canvas (triptych).", 51, 121, 2004, "");
    images[images.length] = new Array("The_Wild_Birds_of_Heaven", "painting", "Acrylic on canvas.", 26, 20, 2003, "");
    images[images.length] = new Array("Perfect_California_Day", "painting", "Acrylic on canvas.", 26, 20, 2003, "");
    images[images.length] = new Array("Good_Bye_Ultra_Violet", "painting", "Acrylic on canvas.", 26, 20, 2003, "");
    images[images.length] = new Array("Flowers_for_a_Crow", "painting", "Acrylic on canvas.", 26, 20, 2003, "");
    images[images.length] = new Array("Almost_Paradise", "painting", "Acrylic on canvas.", 51, 39, 2003, "");
    images[images.length] = new Array("A_Need_for_Gardens", "painting", "Acrylic on canvas.", 26, 20, 2003, "");
    images[images.length] = new Array("A_Long_Time_Ago_People_Decided_to_Live_in_America", "painting", "Acrylic on canvas.", 26, 20, 2003, "");
    images[images.length] = new Array("Kiss_Me_Goodbye", "painting", "Acrylic on wood.", 24, 24, 2004, "");
    images[images.length] = new Array("Snake_in_the_Grass", "painting", "Acrylic on wood.", 24, 24, 2004, "");
    images[images.length] = new Array("Between_the_Devil_and_the_Deep_Blue_Sea", "painting", "Acrylic on wood.", 24, 24, 2004, "");
    images[images.length] = new Array("Say_Uncle", "painting", "Acrylic on wood.", 24, 24, 2004, "");
    images[images.length] = new Array("Are_You_Going_To_Betray_Me?", "painting", "Acrylic on canvas.", 18, 24, 2004, "");
    images[images.length] = new Array("Zigzag", "painting", "Acrylic on canvas.", 40, 30, 2005, "");
    images[images.length] = new Array("Counterpassant", "painting", "Acrylic on canvas.", 40, 30, 2005, "");
    images[images.length] = new Array("Dead_Ducks", "painting", "Acrylic on canvas.", 40, 30, 2005, "");
    images[images.length] = new Array("Extraordinary_Rendition", "painting", "Acrylic on canvas.", 40, 30, 2005, "");
    images[images.length] = new Array("Pattern_is_the_Mother_of_Memory", "painting", "Acrylic on canvas.", 60, 80, 2005, "");
    images[images.length] = new Array("Fight_Or_Flight", "painting", "Acrylic on canvas.", 60, 80, 2006, "");
    images[images.length] = new Array("The_Way_In_Is_The_Way_Out", "painting", "Acrylic on canvas.", 40, 30, 2006, "");
    images[images.length] = new Array("Predator\~Prey", "painting", "Acrylic on canvas.", 40, 30, 2006, "");
    images[images.length] = new Array("An_Exercise_of_Freedom", "painting", "Acrylic on canvas.", 56, 46, 2006, "");
    images[images.length] = new Array("Homeland_1", "painting", "Acrylic on canvas.", 24, 108, 2003, "");
    images[images.length] = new Array("Homeland_2", "painting", "Acrylic on canvas.", 24, 108, 2003, "");
    images[images.length] = new Array("Homeland_3", "painting", "Acrylic on canvas.", 24, 108, 2003, "");
    images[images.length] = new Array("Homeland_4", "painting", "Acrylic on canvas.", 24, 108, 2003, "");
    images[images.length] = new Array("Mighty_Hot_(diptych)", "painting", "Acrylic on canvas.", 51, 80, 2002, "");
    images[images.length] = new Array("Carnivoracity", "painting", "Acrylic on canvas.", 26, 26, 2006, "");
    images[images.length] = new Array("The_Ruin_is_Built_into_the_Creation", "painting", "Acrylic on canvas (diptych).", 51, 80, 2001, "");
    images[images.length] = new Array("The_Revelation_of_the_Being_of_What_Is", "painting", "Acrylic on canvas (diptych).", 51, 80, 2001, "");
    images[images.length] = new Array("It@s_possible_that_this_whole_thing_is_about_orgasm^_but_I_don@t_think_so._(red)", "painting", "Acrylic on wood.", 24, 24, 2001, "");
    images[images.length] = new Array("It@s_possible_that_this_whole_thing_is_about_orgasm^_but_I_don@t_think_so._(green)", "painting", "Acrylic on wood.", 24, 24, 2001, "");
    images[images.length] = new Array("It@s_possible_that_this_whole_thing_is_about_orgasm^_but_I_don@t_think_so._(orange)", "painting", "Acrylic on wood.", 24, 24, 2001, "");
    images[images.length] = new Array("It@s_possible_that_this_whole_thing_is_about_orgasm^_but_I_don@t_think_so._(blue)", "painting", "Acrylic on wood.", 24, 24, 2001, "");
    images[images.length] = new Array("It@s_possible_that_this_whole_thing_is_about_orgasm^_but_I_don@t_think_so._(yellow)", "painting", "Acrylic on wood.", 24, 24, 2001, "");
    images[images.length] = new Array("It@s_possible_that_this_whole_thing_is_about_orgasm^_but_I_don@t_think_so._(purple)", "painting", "Acrylic on wood.", 24, 24, 2001, "");
    images[images.length] = new Array("An_Initial_Exploration_of_Oraficial_Relatedness_(diptych)", "painting", "Acrylic on canvas.", 51, 80, 2001, "");
    images[images.length] = new Array("Let_Slip_the_Frogs_of_War", "painting", "Acrylic on canvas.", 51, 39, 2002, "");
    images[images.length] = new Array("Stars_and_Stripes_(triptych)", "painting", "Acrylic on canvas.", 51, 117, 2000, "");
    images[images.length] = new Array("Stops_at_Nothing_(triptych)", "painting", "Acrylic on canvas.", 51, 117, 2000, "");
    images[images.length] = new Array("Les_Nuages", "painting", "Acrylic on canvas.", 39, 51, 2000, "");
    images[images.length] = new Array("L@Eclair", "painting", "Acrylic on canvas.", 39, 51, 2000, "");
    images[images.length] = new Array("La_Lumiere", "painting", "Acrylic on canvas.", 39, 51, 1999, "");
    images[images.length] = new Array("Un_Jeu", "painting", "Acrylic on canvas.", 39, 51, 1999, "");
    images[images.length] = new Array("Orange~Yellow~Green", "painting", "Acrylic on canvas.", 68, 68, 1999, "");
    images[images.length] = new Array("Boom", "painting", "Acrylic on canvas.", 68, 68, 1999, "");
    images[images.length] = new Array("The_Constipating_Ambivalence_of_Being_Socially_Constipated", "painting", "Acrylic on canvas.", 9, 12, 2001, "");
    images[images.length] = new Array("Disruptive_Repetition_of_Sublime_Porking", "painting", "Acrylic on canvas.", 9, 12, 2001, "");
    images[images.length] = new Array("A_Crisis_in_the_Referentiality_of_Virginity", "painting", "Acrylic on canvas.", 9, 12, 2001, "");
    images[images.length] = new Array("Huge_But_Not_Really_Totalizing", "painting", "Acrylic on canvas.", 9, 12, 2001, "");
    images[images.length] = new Array("Material_and_Semiotic_Resources_for_the_Metaphoric_Function_of_the_Flatulent", "painting", "Acrylic on canvas.", 9, 12, 2001, "");
    images[images.length] = new Array("The_Acquisition_of_Being_through_the_Citing_of_Incontinence", "painting", "Acrylic on canvas.", 9, 12, 2001, "");
    images[images.length] = new Array("Enabling_an_Erotic_Contestation", "painting", "Acrylic on canvas.", 11, 14, 2001, "");
    images[images.length] = new Array("Emphasis_on_the_Confusing_Nature_of_Bodily_Fluids", "painting", "Acrylic on canvas.", 11, 14, 2001, "");
    images[images.length] = new Array("Contemporary_Tributaries_of_Intersecting_Ejaculation", "painting", "Acrylic on canvas.", 11, 14, 2001, "");
    images[images.length] = new Array("The_Penis_as_Its_Own_Founding_Repudiation", "painting", "Acrylic on canvas.", 11, 14, 2001, "");
    images[images.length] = new Array("The_Governing_Phallus_of_the_Phallic_Order", "painting", "Acrylic on canvas.", 11, 14, 2001, "");
    images[images.length] = new Array("Desire_by_which_the_Content_is_Actualized_in_the_Bacterial", "painting", "Acrylic on canvas.", 11, 14, 2001, "");
    images[images.length] = new Array("Plume", "painting", "Acrylic on canvas.", 48, 36, 2000, "");
    images[images.length] = new Array("Airborne_Event", "painting", "Acrylic on canvas.", 48, 36, 2000, "");
    images[images.length] = new Array("Cover_the_Earth", "painting", "Acrylic on canvas.", 72, 84, 1999, "");
    images[images.length] = new Array("Deployment_in_Wonderland", "painting", "Acrylic on canvas.", 60, 80, 2007, "");
    images[images.length] = new Array("Paradise_Lost", "painting", "Acrylic on canvas.", 60, 80, 2007, "");
    images[images.length] = new Array("The_Magic_Garden", "painting", "Acrylic on canvas.", 56, 46, 2007, "");
//    images[images.length] = new Array("Vortex", "painting", "Acrylic on canvas.", 56, 46, 2007, "");
    images[images.length] = new Array("The_Babylon_Lottery", "painting", "Acrylic on canvas.", 56, 46, 2007, "");
    images[images.length] = new Array("Hot_and_Bothered", "painting", "Acrylic on canvas.", 26, 26, 2007, "");
    images[images.length] = new Array("The_Thrill_of_Fear", "painting", "Acrylic on canvas.", 26, 26, 2007, "");
    images[images.length] = new Array("Dystopia", "painting", "Acrylic on canvas.", 60, 80, 2008, "");
    images[images.length] = new Array("The_Muddiness_of_Right_and_Wrong", "painting", "Acrylic on canvas.", 56, 46, 2008, "");
    images[images.length] = new Array("The_Perils_of_Togetherness", "painting", "Acrylic on canvas.", 56, 46, 2008, "");
    images[images.length] = new Array("It@s_Tough_to_Live_in_Limbo", "painting", "Acrylic on canvas.", 26, 26, 2008, "");
    images[images.length] = new Array("How_to_Go_Global", "painting", "Acrylic on canvas.", 26, 26, 2008, "");
    images[images.length] = new Array("A_History_of_Lost_Opportunities", "painting", "Acrylic on canvas.", 26, 26, 2008, "");
    images[images.length] = new Array("Tropic_of_Cancer", "painting", "Acrylic on canvas.", 26, 26, 2008, "");
    images[images.length] = new Array("Ever_Hopeful", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Departs_Like_Smoke", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Promises^_Promises", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Inviting_the_Storm", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("One_Small_Step", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Return_of_the_Rivers", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("The_Curve_of_Forgotten_Things", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("All_Fall_Down", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Slip_Sliding_Away", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("After_the_Fall", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Airborne", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Hop^_Skip^_Jump", "painting", "Acrylic on canvas.", 12, 12, 2008, "");
    images[images.length] = new Array("Rejection_1_(George_W_Bush)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_2_(Rob_Blagojevich)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_3_(John_Kerry)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_4_(Sarah_Palin)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_5_(Hillary_Clinton)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_6_(Eliot_Spitzer)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_7_(John_McCain)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_8_(Condoleezza_Rice)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_9_(Barack_Obama)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Rejection_10_(Bill_Clinton)", "painting", "Acrylic on canvas.", 6, 6, 2009, "");
    images[images.length] = new Array("Vortex", "painting", "Acrylic on canvas.", 56, 46, 2009, "");
    images[images.length] = new Array("Fold", "painting", "Acrylic on canvas.", 18, 18, 2009, "");
    images[images.length] = new Array("Stretch", "painting", "Acrylic on canvas.", 18, 18, 2009, "");
    images[images.length] = new Array("Split", "painting", "Acrylic on canvas.", 46, 56, 2009, "");
    images[images.length] = new Array("Cannon_Ball", "painting", "Acrylic on canvas.", 18, 18, 2010, "");
    images[images.length] = new Array("Safari", "painting", "Acrylic on canvas.", 18, 18, 2010, "");
    images[images.length] = new Array("Smithereens", "painting", "Acrylic on canvas.", 18, 18, 2010, "");
    images[images.length] = new Array("Bazooka", "painting", "Acrylic on canvas.", 12, 12, 2010, "");
    images[images.length] = new Array("Bunny_Hop", "painting", "Acrylic on canvas.", 6, 6, 2010, "");

//Works on Paper:
    images[images.length] = new Array("Unspecified_Involvement_i", "other", "Acrylic on paper.", 12, 16, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_ii", "other", "Acrylic on paper.", 12, 16, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_iii", "other", "Acrylic on paper.", 15, 20, 2004, "");
    images[images.length] = new Array("Unspecified_Involvement_iv", "other", "Acrylic on paper.", 15, 20, 2004, "");
    images[images.length] = new Array("Unspecified_Involvement_v", "other", "Acrylic on paper.", 15, 20, 2004, "");
    images[images.length] = new Array("Unspecified_Involvement_vi", "other", "Acrylic on paper.", 15, 20, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_vii", "other", "Acrylic on paper.", 12, 16, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_viii", "other", "Acrylic on paper.", 12, 16, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_ix", "other", "Acrylic on paper.", 15, 20, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_x", "other", "Acrylic on paper.", 15, 20, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_xi", "other", "Acrylic on paper.", 15, 20, 2003, "");
    images[images.length] = new Array("Unspecified_Involvement_xii", "other", "Acrylic on paper.", 15, 20, 2003, "");
    images[images.length] = new Array("Snowflake_1", "other", "Acrylic on paper.", 15, 15, 2004, "");
    images[images.length] = new Array("Snowflake_2", "other", "Acrylic on paper.", 15, 15, 2004, "");
    images[images.length] = new Array("Snowflake_3", "other", "Acrylic on paper.", 15, 15, 2004, "");
    images[images.length] = new Array("Snowflake_4", "other", "Acrylic on paper.", 15, 15, 2004, "");
    images[images.length] = new Array("Snowflake_5", "other", "Acrylic on paper.", 15, 15, 2004, "");
    images[images.length] = new Array("Boneless_New_York_Strip", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("Veal_Loin_Steaks", "other", "Acrylic on canvas.", 5, 6, 2004, "");
    images[images.length] = new Array("Boneless_Skinless_Chicken_Breasts", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("Butt_Portion_Ham", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("Cornish_Game_Hens", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("King_Salmon", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("London_Broil", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("Pork_Shoulder_Picnic", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("Rack_of_Lamb", "other", "Acrylic on paper.", 5, 6, 2004, "");
    images[images.length] = new Array("Snowflake_6", "other", "Acrylic on paper.", 15, 15, 2004, "");
    images[images.length] = new Array("Peak", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Crowd", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Flood", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Bomber", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Traffic", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Hollywood", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Wrestlers", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Burnt", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Gas_Pump", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Oasis", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Airplane", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Fireworks", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Molecule", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Iceberg", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Stumps", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Power_Plant", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Eagle", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("City", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Camouflage", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Earth", "other", "Acrylic on paper.", 9, 12, 2006, "");
    images[images.length] = new Array("Untitled_(hawk)", "other", "Pencil on paper.", 14, 17, 2005, "");
    images[images.length] = new Array("Untitled_(fighter)", "other", "Pencil on paper.", 14, 17, 2005, "");
    images[images.length] = new Array("Untitled_I", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_II", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_III", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_IV", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_V", "other", "Acrylic and ball-point pen on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_VI", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_VII", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_VIII", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_IX", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_X", "other", "Acrylic on paper.", 12, 16, 2000, "");
    images[images.length] = new Array("Untitled_XI", "other", "Acrylic and graphite on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XII", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XIII", "other", "Acrylic and colored pencil on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XIV", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XV", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XVI", "other", "Acrylic on paper.", 9, 12, 2008, "");

    images[images.length] = new Array("Untitled_XVII", "other", "Acrylic and graphite on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XVIII", "other", "Acrylic\, graphite\, and colored pencil on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XIX", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XX", "other", "Acrylic and graphite on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXI", "other", "Acrylic and graphite on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXII", "other", "Acrylic and graphite on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXIII", "other", "Acrylic on paper.", 9, 12, 2008, "");

    images[images.length] = new Array("Untitled_XXIV", "other", "Acrylic\, graphite\, and colored on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXV", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXVI", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXVII", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXVIII", "other", "Acrylic on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXIX", "other", "Acrylic\, graphite\, and colored on paper.", 9, 12, 2008, "");
    images[images.length] = new Array("Untitled_XXX", "other", "Acrylic\, graphite\, and colored on paper.", 9, 12, 2008, "");

//Prints:
    images[images.length] = new Array("No_Heroes", "print", "Lithograph on paper.", 22, 30, 2004, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Divergence_1", "print", "Pigment print on Hahnemuhle 310g paper.", 46, 35, 2005, "Gallery 16\, San Francisco\, CA");
    images[images.length] = new Array("Divergence_2", "print", "Pigment print on Hahnemuhle 310g paper.", 35, 46, 2005, "Gallery 16\, San Francisco\, CA");
    images[images.length] = new Array("Flipping_The_Birds", "print", "Ten color hard ground etching printed from five plates.", 18, 28, 2005, "East Side Editions\, San Francisco\, CA");
    images[images.length] = new Array("Flutter_1", "print", "Monoprint on lanaquarelle.", 59.625, 20.5, 2004, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Flutter_2", "print", "Monoprint on lanaquarelle.", 59.625, 20.5, 2004, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Birds_of_Paradise_-_monochrome_version", "print", "Four plate direct gravure etching on handmade fukutora uda gami.", 19, 38, 2005, "HuiPress\, Makawao\, HI");
    images[images.length] = new Array("Birds_of_Paradise", "print", "Four plate direct gravure etching on handmade fukutora uda gami.", 19, 38, 2005, "HuiPress\, Makawao\, HI");
    images[images.length] = new Array("Pork_Chop", "print", "Acrylic on paper.", 12.5, 11.25, 2003, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("T-bone_Steak", "print", "Acrylic on paper.", 12.5, 11.25, 2003, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Sirloin_Steak", "print", "Copperplate viscosity etching.", 12.5, 11.25, 2003, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Veal_Chop", "print", "Copperplate viscosity etching.", 12.5, 11.25, 2003, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Lamb_Gigot_Chop", "print", "Copperplate viscosity etching.", 12.5, 11.25, 2003, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Wonderland_(blue)", "print", "Monoprint on Rives BFK.", 30, 44, 2003, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Wonderland_(yellow)", "print", "Monoprint on Lanaquarelle.", 40, 60, 2003, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("if_you_want_it_(green)", "print", "Monoprint on BFK Rives.", 22, 30, 2002, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("if_you_want_it_(yellow)", "print", "Monoprint on Magnani Pescia.", 22, 30, 2002, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("if_you_want_it_(yellow-orange)", "print", "Monoprint on Fabriano Uno.", 22, 30, 2002, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("if_you_want_it_(blue)", "print", "Monoprint on Magnani Pescia.", 22, 30, 2002, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Grenade", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Missiles", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Gun", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2001, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Gasmask", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2001, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Flutter_3", "print", "Monoprint on Okawara.", 60, 20, 2004, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Flutter_4", "print", "Monoprint on Okawara.", 60, 20, 2004, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Flutter_5", "print", "Monoprint on Kozo.", 38.5, 13, 2004, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Flutter_6", "print", "Monoprint on Kozo.", 38.5, 13, 2004, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Flutter_7", "print", "Monoprint on Kozo.", 38.5, 13, 2004, "Smith Andersen Editions\, Palo Alto\, CA");
    images[images.length] = new Array("Paradise_1", "print", "Monoprint with chine colle and acrylic paint on paper.", 33.75, 23.5, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Paradise_2", "print", "Monoprint with chine colle and acrylic paint on paper.", 33.75, 23.5, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Paradise_3", "print", "Monoprint with chine colle and acrylic paint on paper.", 33.75, 23.5, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Paradise_4", "print", "Monoprint with chine colle and acrylic paint on paper.", 33.75, 23.5, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Rocket_(Saturn_V)", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2001, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Electric_Outlet", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2001, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Tank", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Parachutes", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Nozzle", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Drill_Ship", "print", "Ink jet print on canvas with acrylic paint.", 24, 24, 2002, "Trillium Press\, Brisbane\, CA");
    images[images.length] = new Array("Incandescent_Summer", "print", "Monoprint edition variée on Magnani Pescia paper.", 22, 30, 2008, "Smith Andersen Editions\, Palo Alto\, CA");

    images[images.length] = new Array("Hawaiian_Punch_$2", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$3", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$4", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$5", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$8", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$9", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$10", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$11", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$12", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");
    images[images.length] = new Array("Hawaiian_Punch_$13", "print", "Monoprint on mulberry.", 22, 15, 2010, "Shark's Ink\, Lyons\, CO");


var links = new Array();
//LINKS
//
//KEY:
//  links[links.length] = new Array("Name", "URL", "Description");

//    links[links.length] = new Array("a little more red", "http://www.alittlemorered.com", "Scottsdale\, AZ");
//    links[links.length] = new Array("Art Bi Design", "http://www.artbidesign.com", "New York\, NY");
//    links[links.length] = new Array("ArtistsRegister.com", "http://www.artistsregister.com/artists/CA375", "Denver\, CO");
    links[links.length] = new Array("Art+Culture Editions", "http://aceditions.com/artists/kara-maria", "New York\, NY");
    links[links.length] = new Array("Artists Space", "http://afonline.artistsspace.org/view_artist.php?aid=3792", "New York\, NY");
    links[links.length] = new Array("Catharine Clark Gallery", "http://www.cclarkgallery.com/dynamic/artist.asp?ArtistID=21&Count=0", "San Francisco\, CA");
//    links[links.length] = new Array("Next Monet", "http://www.nextmonet.com", "San Francisco\, CA");
    links[links.length] = new Array("Smith Andersen Editions", "http://www.smithandersen.com/artistpages/recent_press_projects_p2.html", "Palo Alto\, CA");
    links[links.length] = new Array("Electric Works", "http://www.sfelectricworks.com/gal/gal.php", "San Francisco\, CA");
//    links[links.length] = new Array("Miller/Block Gallery", "http://www.millerblockgallery.com", "Boston\, MA");
//    links[links.length] = new Array("Nathan Larramendy Gallery", "http://www.larramendygallery.com/artists/maria.html", "Ojai\, CA");
    links[links.length] = new Array("Shark\'s Ink", "http://www.sharksink.com/artists.asp?artists=42", "Lyons\, CO");
    links[links.length] = new Array("White Columns", "http://registry.whitecolumns.org/view_artist.php?artist=329", "New York\, NY");
//    links[links.length] = new Array("Eastside Editions", "http://www.eastsideeditions.com/KaraMaria/KaraMaria.html", "San Francisco\, CA");
    links[links.length] = new Array("Artadia", "http://artistregistry.artadia.org/registry/view_artist.php?aid=106", "New York\, NY");
    links[links.length] = new Array("Gallery 16", "http://www.urbandigitalcolor.com/gallery16/galleryframe.html", "San Francisco\, CA");
//    links[links.length] = new Array("Mendenhall Sobieski Gallery", "http://www.msgart.com", "Pasadena\, CA");
//    links[links.length] = new Array("Hui Press", "http://www.huipress.com", "Makawao\, Maui\, HI");
//    links[links.length] = new Array("Saatchi Gallery", "http://www.saatchi-gallery.co.uk/yourgallery/artist/details.php?id=9908", "London\, England");
//    links[links.length] = new Array("Apostol Contemporary Art", "http://www.apostolcontemporaryart.com", "Los Angeles\, CA");
//    links[links.length] = new Array("Spanierman Modern", "http://www.spaniermanmodern.com/inventory/M/maria.htm", "New York\, NY");
//    links[links.length] = new Array("Agora Gallery", "http://www.Agora-Gallery.com", "New York\, NY");
//    links[links.length] = new Array("Charlie James Gallery", "http://www.cjamesgallery.com", "Los Angeles\, CA");
























//CODE///////////////////////////////////////////////////////////////////////////////////////////////////////

var homeURL = "http://www.karamaria.com/"

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function imageGrid(type, pageIndex) {
    sorter(images, 5, "r", 3, "r", 4, "r");
    var indexIndex = -1;
    var typeTicker = -1;
	for (a=0; a<images.length; a++){
		if (images[a][1] == type) typeTicker++;
		if (typeTicker == pageIndex) indexIndex = a--;	
	}
    var imageCounter = indexIndex;
    document.write("<table border=0 cellpadding=10 cellspacing=10 align='center'>");
    var loadedImages = new Array();
    for (a=0; a<maxNumOfRows; a++) {
	document.write("<tr>");
            for (b=0; b<maxNumInRow; b++) {
		    if (imageCounter < images.length) {
			if (type == images[imageCounter][1]) {
			    var noQuestion = removeQuestionMark(images[imageCounter][0]);
			    loadedImages[loadedImages.length] = new Array();
				loadedImages[loadedImages.length-1][0] = new Image();
				loadedImages[loadedImages.length-1][0].src = "images/" + noQuestion + "_thumb_off.jpg";
				loadedImages[loadedImages.length-1][1] = new Image();
				loadedImages[loadedImages.length-1][1].src = "images/" + noQuestion + "_thumb_on.jpg";
			    var altText = removeUnderscores(images[imageCounter][0]);	
			    document.write("<td align='center' valign='center'>");
			        document.write("<a href='" + homeURL + "images.html?" + images[imageCounter][images[imageCounter].length-1] + "' onMouseOver=\"changeImages(\'" + noQuestion + "\'\, \'" + loadedImages[loadedImages.length-1][1].src + "\'\)\; return true\;\"  onMouseOut=\"changeImages(\'" + noQuestion + "\'\, \'" + loadedImages[loadedImages.length-1][0].src + "\'\)\; return true\;\">"); 
				document.write("<img src='" + loadedImages[loadedImages.length-1][0].src + "' alt=\"" + altText + "\" name='" + noQuestion + "' border=3></a>");
			    document.write("</td>");
		        } else {
			    b--;
			}
                        imageCounter++;
		    }	
            }
	document.write("</tr>");
    }
    document.write("</table>");

    if (paging == 'TRUE') {
    document.write("<table border=0><tr><td class='textS'>Pages:&nbsp;</td>");
    	for (a=1; a<Math.ceil((typeTicker/(maxNumInRow * maxNumOfRows))+1); a++) {
		if (((a-1)*(maxNumInRow * maxNumOfRows)) == pageIndex) {
    			document.write("<td class='textM'><b>" + a + "</b></td>");		
    		}else{
    			document.write("<td class='textM'><a href='" + homeURL + "gallery.html?" + type + "&" + ((a-1)*(maxNumInRow * maxNumOfRows)) + "'>" + a + "</a></td>");		
    		}
    	}
    document.write("</tr></table>");
    }

}


function removeUnderscores(theString) {
    var theText = "";
    for (c=0; c<theString.length; c++) {
        if ((theString.charAt(c) != "_")&&(theString.charAt(c) != "~")&&(theString.charAt(c) != "@")&&(theString.charAt(c) != "^")&&(theString.charAt(c) != "$")) theText = theText + theString.charAt(c);
        if (theString.charAt(c) == "_") theText = theText + " ";
	if (theString.charAt(c) == "~") theText = theText + "/";
	if (theString.charAt(c) == "@") theText = theText + "'";
	if (theString.charAt(c) == "^") theText = theText + ",";
	if (theString.charAt(c) == "$") theText = theText + "#";
    }
    return theText;
}

function removeQuestionMark(theString) {
    var theText = "";
    for (c=0; c<theString.length; c++) {
        if (theString.charAt(c) != "?") theText = theText + theString.charAt(c);
    }
    return theText;
}

var theImages=new Array();
var theOvers=new Array();
function preloadimagesOLD(){
    for (i=0;i<images.length;i++){
	var noQuestion = removeQuestionMark(images[i][0]);
	theImages[i]=new Image();
	theImages[i].src="images/" + noQuestion + "_thumb_off.jsp";
	theOvers[i]=new Image();
	theOvers[i].src="images/" + noQuestion + "_thumb_on.jsp";
    }
}


function sorter(the_array, pri_index, p_sort, sec_index, s_sort, ter_index, t_sort) {
    for (a=0; a<the_array.length; a++) {
	the_array[a][the_array[a].length] = a;
    }
    var holder = new Array();
	for (i=1; i<the_array.length; i++) {
	    for (j=i; j>0; j--) {
   		if (((p_sort == "f") && (the_array[j][pri_index] < the_array[j-1][pri_index])) || ((p_sort == "r") && (the_array[j][pri_index] > the_array[j-1][pri_index]))) {
		    holder = the_array[j-1];
   		    the_array[j-1] = the_array[j];
   		    the_array[j] = holder;
   		} else {
   		    if ((the_array[j-1][pri_index] == the_array[j][pri_index]) && (((s_sort == "f") && (the_array[j][sec_index] < the_array[j-1][sec_index])) || ((s_sort == "r") && (the_array[j][sec_index] > the_array[j-1][sec_index])))) {
   			holder = the_array[j-1];
   			the_array[j-1] = the_array[j];
   			the_array[j] = holder;			  
   		    } else {
   			if ((the_array[j-1][pri_index] == the_array[j][pri_index]) && (the_array[j-1][sec_index] == the_array[j][sec_index]) && (((t_sort == "f") && (the_array[j][ter_index] < the_array[j-1][ter_index])) || ((t_sort == "r") && (the_array[j][ter_index] > the_array[j-1][ter_index])))) {
   			    holder = the_array[j-1];
   			    the_array[j-1] = the_array[j];
   			    the_array[j] = holder;		  	
   			}
   		    }
   		}
	     }
	 }
    return the_array;		 
}

function linkTable() {
    sorter(links, 0, "f", 2, "f", 1, "f");
    document.write("<table border=0 cellpadding=3 cellspacing=3>");
    for (a=0; a<links.length; a++) {
	document.write("<tr>");
            document.write("<td><a href='" + links[a][1] + "' class='linkTable'>" + links[a][0] + "</a></td>");
	    document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>");
            document.write("<td>" + links[a][2] + "</td>");
	document.write("</tr>");
    }
    document.write("</table>");
}

function header(page) {

    document.write("<table border=0 cellpadding=3 cellspacing=0 width='100%'>");

    document.write("<tr><table width='100%' border=0 cellpadding=0 cellspacing=0 background='/images/headerBack.jpg'><tr><td width='10%'><a href='" + homeURL + "'><img src='images/headerLeft.jpg' border=0></a></td><td align='left'><img src='images/headerRight.jpg' border=0></td></tr></table></tr>");



    document.write("<tr><td align='center'>");
	if (page != "gallery") {
	    document.write("<a href='gallery.html?painting&0'>GALLERY</a>&nbsp;||&nbsp;");
	} else {
	    document.write("<font class='nonLink'>GALLERY</font>&nbsp;||&nbsp;");
	}
	if (page != "resume") {
	    document.write("<a href='resume.html'>RESUME</a>&nbsp;||&nbsp;");
	} else {
	    document.write("<font class='nonLink'>RESUME</font>&nbsp;||&nbsp;");
	}
	if (page != "statement") {
	    document.write("<a href='statement.html'>STATEMENT</a>&nbsp;||&nbsp;");
	} else {
	    document.write("<font class='nonLink'>STATEMENT</font>&nbsp;||&nbsp;");
	}
	if (page != "links") {
	    document.write("<a href='links.html'>LINKS</a>&nbsp;||&nbsp;");
	} else {
	    document.write("<font class='nonLink'>LINKS</font>&nbsp;||&nbsp;");
	}
	    document.write("<a href='mailto:kara@karamaria.com'>CONTACT KARA</a>");
    document.write("</td></tr>");
    document.write("</table><br><br>");
}



function footer() {

    document.write("<br><br><hr><table border=0 cellpadding=3 cellspacing=0 width='100%'>");
    document.write("<tr><td><table width='100%' border=0 background='images/footer.jpg'><tr><td><font class='lastUpdated'>Last Updated&nbsp;" + last_updated + "</font><br></td><td align='right'>");
    document.write("<form method=post action=http://www.ymlp.com/subscribe.php?karamaria>");
    document.write("<table border=0><tr>");
    document.write("<td class='nonLink'>Fill out your e-mail address to receive Kara\'s newsletter!&nbsp;&nbsp;<a href=\"http://www.yourmailinglistprovider.com\" target=\"_new\">Hosting by YMLP.com</a></td></tr>");
    document.write("<td class='nonLink'><input type=\"text\" name=\"YMLP0\" size=\"20\"><input type=\"radio\" name=\"action\" value=\"subscribe\" checked>&nbsp;Subscribe&nbsp;<input type=\"radio\" name=\"action\" value=\"unsubscribe\">&nbsp;Unsubscribe&nbsp;&nbsp;<input type=\"submit\" value='Submit'></td>");
    document.write("</tr></table></form>");

    document.write("</td></tr></table>");
}

function randImage() {
   if (show_flag == "1") {
	document.write("<table border='0' cellpadding='3' cellspacing='0' align='center' width='80%'><tr><td>");
	document.write("<table border='0' cellpadding='3' cellspacing='0'>");
	document.write("<tr><td class='exHeader'>Current Exhibition:</td></tr>");
	document.write("<tr><td class='blueHeader'>" + show_title + "</td></tr>");
	document.write("<tr><td class='textM'>" + show_description + "</td></tr>");
	document.write("<tr><td class='textM'>" + show_date + "</td></tr>");
	document.write("<tr><td class='textM'>" + show_details + "</td></tr>");
	document.write("<tr><td class='blueSub'>" + show_host + "</td></tr>");
	document.write("<tr><td class='textM'>" + show_address + "</td></tr>");
	document.write("<tr><td class='textM'><a href='mailto:" + show_email + "'>" + show_email + "</a></td></tr>");
	document.write("<tr><td class='textM'>" + show_phone + "</td></tr>");
	document.write("<tr><td class='textM'><a href='" + show_host_URL + "'> " + show_host_URL + "</a></td></tr>");
	document.write("</table></td><td><img src='" + show_image + "' border='0' width='300' /></td></tr></table>");
   } else {
	imageIndex = Math.round(Math.random()*images.length);
	document.write("<center><a href='" + homeURL + "images.html?" + imageIndex + "' border=0><img height=275 src='/images/" + images[imageIndex][0] + ".jpg' border=0></a><br>");
    	var theText = removeUnderscores(images[imageIndex][0]);
//    	for (a=0; a<images[imageIndex][0].length; a++) {
//        	if (images[imageIndex][0].charAt(a) != "_") theText = theText + images[imageIndex][0].charAt(a);
//        	if (images[imageIndex][0].charAt(a) == "_") theText = theText + " ";
//    	}
    	document.write(theText);
	document.write("<br>");
	document.write(images[imageIndex][2] + "&nbsp;" + images[imageIndex][3] + "\"x" + images[imageIndex][4] + "\".&nbsp;" + images[imageIndex][5] + ".");
	document.write("<br><a href='/gallery.html?painting&0'>Click here for more images.</a></center>");
   }
}


//Alien Code///////////////////////////////////////////////////////////////////////////////////////////////////
<!-- Original:  Brian Gosselin (bgaudiodr@aol.com) -->
<!-- Web Site:  http://www.bgaudiodr.iwarp.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
var _all = '';
var _style = '';
var wwidth, wheight;
var ydir = '++';
var xdir = '++';
var id1, id2, id3;
var x = 1;
var y = 1;

var x1, y1;

if(!isNS) {
    _all='all.';
    _style='.style';
}

function getwindowsize() {
    clearTimeout(id1);
    clearTimeout(id2);
    clearTimeout(id3);
    if (isNS) {
	wwidth = window.innerWidth - 55;
	wheight = window.innerHeight - 50;
    } else {
	wwidth = document.body.clientWidth - 55;
	wheight = document.body.clientHeight - 50;
    }
    id3 = setTimeout('randomdir()', 20000);
    animate();
}

function randomdir() {
    if (Math.floor(Math.random()*2)) {
	if (Math.floor(Math.random()*2)) {
	    xdir='--';
	    horiVal = "left";
	} else {
	    xdir='++';
	    horiVal = "right";
	}
    } else {
	if (Math.floor(Math.random()*2)) {
	    ydir='--';
	    vertVal = "up";
	} else {
	    ydir='++';
            vertVal = "down";
	}
    }

    pic1.visibility = 'hidden';
    pic2.visibility = 'hidden';
    pic3.visibility = 'hidden';
    pic4.visibility = 'hidden';

    if ((vertVal == "up") && (horiVal == "right")) {
	if (isNS) {
		pic3.visibility = 'show';
	} else {
	        pic3.visibility = 'visible';
	}
    } else if ((vertVal == "up") && (horiVal == "left")) {
	if (isNS) {
		pic4.visibility = 'show';
	} else {
	        pic4.visibility = 'visible';
	}
    } else if ((vertVal == "down") && (horiVal == "right")) {
        	if (isNS) {
		pic1.visibility = 'show';
	} else {
	        pic1.visibility = 'visible';
	}
    } else if ((vertVal == "down") && (horiVal == "left")) {
	if (isNS) {
		pic2.visibility = 'show';
	} else {
	        pic2.visibility = 'visible';
	}
    }

    id2 = setTimeout('randomdir()', 20000);
}

var vertVal = "";
var horiVal = "";

function animate() {
    eval('x'+xdir);
    eval('y'+ydir);

    if (isNS) {
        pic1.moveTo((x+pageXOffset),(y+pageYOffset))
        pic2.moveTo((x+pageXOffset),(y+pageYOffset))
        pic3.moveTo((x+pageXOffset),(y+pageYOffset))
	pic4.moveTo((x+pageXOffset),(y+pageYOffset))
    } else {
	pic1.pixelLeft = x+document.body.scrollLeft;
	pic1.pixelTop = y+document.body.scrollTop;
	pic2.pixelLeft = x+document.body.scrollLeft;
	pic2.pixelTop = y+document.body.scrollTop;
	pic3.pixelLeft = x+document.body.scrollLeft;
	pic3.pixelTop = y+document.body.scrollTop;
	pic4.pixelLeft = x+document.body.scrollLeft;
	pic4.pixelTop = y+document.body.scrollTop;
    }

    if (isNS) {
	if (pic1.top < 5+pageYOffset) { ydir = '++';}
	if (pic1.top >= wheight+pageYOffset) { ydir = '--';}
	if (pic1.left >= wwidth+pageXOffset) { xdir = '--';}
	if (pic1.left < 5+pageXOffset) { xdir = '++';}
    } else {
	if (pic1.pixelTop < 5+document.body.scrollTop) { ydir = '++'; vertVal = "down";}
	if (pic1.pixelTop >= wheight+document.body.scrollTop) { ydir = '--'; vertVal = "up";}
	if (pic1.pixelLeft >= wwidth+document.body.scrollLeft) { xdir = '--'; horiVal = "left";}
	if (pic1.pixelLeft < 5+document.body.scrollLeft) { xdir = '++'; horiVal = "right";}
    }

    pic1.visibility = 'hidden';
    pic2.visibility = 'hidden';
    pic3.visibility = 'hidden';
    pic4.visibility = 'hidden';

    if ((vertVal == "up") && (horiVal == "right")) {
        pic3.visibility = 'visible';
    } else if ((vertVal == "up") && (horiVal == "left")) {
        pic4.visibility = 'visible';
    } else if ((vertVal == "down") && (horiVal == "right")) {
        pic1.visibility = 'visible';
    } else if ((vertVal == "down") && (horiVal == "left")) {
        pic2.visibility = 'visible';
    }

    id1 = setTimeout('animate()', 30);
}

