var bReady      = false;
window.onbeforeunload=CheckBasket;
var iCheckBasket = 1;
var strTheme    = '';
var strMainMenu = '';
var strSubMenu  = 'SubMenuPHOTOS';
var strContent  = '';
var iCurLang    = 1;
var iCurMenuPHOTO  = 0;
var iCurMenuINFO  = 1;
var strCurImgID = '';
var strLastImgID = '';
var strCurImgText = '';
var strLastImgText = '';
var strInfo     = 'Info' + iCurMenuINFO;
var nCatImages = new Array (8,12,16,12,6,12,16,12,16,4,0);
var CurCatImg = new Array (0,0,0,0,0,0,0,0,0,0,-1);
CatID = new Array ('1','3','4','10','2','7','9','5','6','11');
CatNames = new Array ('La Grande Bibliothèque','Hå ved havet','Prora','Villes Nouvelles','Folies','Abraxas','Akademija','Efter kampagnen','Vor dem Gesetz','Brilliant City');
CatText =  new MakeArray(10); 
CatText[0] = ' '; 
CatText[1] = ' '; 
CatText[2] = ' '; 
CatText[3] = ' '; 
CatText[4] = ' '; 
CatText[5] = ' '; 
CatText[6] = ' '; 
CatText[7] = ' '; 
CatText[8] = ' '; 
CatText[9] = '<p style="text-align: justify;" class="MsoNormal"><meta content="" name="Title" /><meta content="" name="Keywords" /><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><meta content="Word.Document" name="ProgId" /><meta content="Microsoft Word 11" name="Generator" /><meta content="Microsoft Word 11" name="Originator" /><link href="file://localhost/Users/steen/Library/Caches/TemporaryItems/msoclip1/01/clip_filelist.xml" rel="File-List" /> <!--[if gte mso 9]><xml><o:DocumentProperties><o:Template>Normal</o:Template><o:Revision>0</o:Revision><o:TotalTime>0</o:TotalTime><o:Pages>1</o:Pages><o:Words>383</o:Words><o:Characters>2184</o:Characters><o:Lines>18</o:Lines><o:Paragraphs>4</o:Paragraphs><o:CharactersWithSpaces>2682</o:CharactersWithSpaces><o:Version>11.1282</o:Version></o:DocumentProperties><o:OfficeDocumentSettings><o:AllowPNG /></o:OfficeDocumentSettings></xml><![endif]--><!--[if gte mso 9]><xml><w:WordDocument><w:Zoom>0</w:Zoom><w:DoNotShowRevisions /><w:DoNotPrintRevisions /><w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery><w:DisplayVerticalDrawingGridEvery>0</w:DisplayVerticalDrawingGridEvery><w:UseMarginsForDrawingGridOrigin /></w:WordDocument></xml><![endif]--> <style type="text/css"><!-- /* Font Definitions */@font-face{font-family:"Times New Roman";panose-1:0 2 2 6 3 5 4 5 2 3;mso-font-charset:0;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:50331648 0 0 0 1 0;}@font-face{font-family:Arial;panose-1:0 2 11 6 4 2 2 2 2 2;mso-font-charset:0;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:50331648 0 0 0 1 0;} /* Style Definitions */p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;mso-pagination:widow-orphan;font-size:12.0pt;font-family:"Times New Roman";}table.MsoNormalTable{mso-style-parent:"";font-size:10.0pt;font-family:"Times New Roman";}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}--></style>  <!--StartFragment--><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><strong>CITY BOOM &ndash; M&Oslash;DE MED DET MODERNE KINA<o:p></o:p></strong></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Inger Lise Rasmussen<o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><strong><em>Brilliant City<o:p></o:p></em></strong></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">21. november 2009 &ndash; 24. januar 2010. &Aring;rhus Kunstbygning<o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><strong>Fernisering fredag d. 20. november kl. 17. <u>Alle er velkomne!</u> <o:p></o:p></strong></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Udstillingen &aring;bnes af Jacob Bundsgaard Johansen, kulturr&aring;dmand, &Aring;rhus Kommune. <o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Kina er p&aring; alles l&aelig;ber og centrum for morgendagens verden. Den &aring;rhusianske grafiker Inger Lise Rasmussens <em>Brilliant City</em></span><span style="font-size: 9pt; font-family: Helvetica;"> giver et kunstnerisk blik p&aring; dette forandringernes Kina &ndash; &rsquo;verdens st&oslash;rste byggeplads&rsquo;. <o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Udstillingen bygger p&aring; Inger Lise Rasmussens omfattende rejser til nogle af Kinas hastigt voksende storbyer; Beijing, Xian, Xhongquing, Wuhan og Shanghai. Fokus er p&aring; Kinas heftige urbanisering, ogs&aring; kaldet <em>city boom</em></span><span style="font-size: 9pt; font-family: Helvetica;">. Titlen <em>Brillant City </em></span><span style="font-size: 9pt; font-family: Helvetica;">er navnet p&aring; et stort boligomr&aring;de i Shanghai, men anvendes i udstillingen som et bredt d&aelig;kkende begreb.<o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Udstillingens v&aelig;rker er p&aring; basis af analogt fotografi udf&oslash;rt som fotogravurer; en fotografisk teknik, hvormed man kan trykke et foto som et originalt dybtryk. I v&aelig;rkerne f&aring;r man blandt andet indblik i kinesernes hverdag, som den umiddelbart kan afl&aelig;ses p&aring; gadeplan. Migrantarbejdernes slid, afslappede situationer med skakspil og musiceren. Eller dramatiske situationer hvor hele bykvarterer j&aelig;vnes med jorden. Der pr&aelig;senteres ogs&aring; vuer over <em>future cities </em></span><span style="font-size: 9pt; font-family: Helvetica;">med h&aelig;vede motorveje, forurening, trafikinferno, postmoderne rigmandskvarterer og elegante boligkomplekser, der synes at str&aelig;kke sig i det uendelige. Som kontrast hertil byder udstillingen endvidere p&aring; et kig ind til harmonien og roen i de klassiske kinesiske haver i Suzhou.<span style="">&nbsp; </span><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Inger Lise Rasmussen er blandt andet repr&aelig;senteret p&aring; Mus&eacute;e Carnavalet-Historie de Paris, Museum of Fine Arts, Houston, USA og Museet for Fotokunst, Odense samt Statens Kunstfond. Hun er kunstfaglig leder af H&oslash;jbjerg FotoGrafiske V&aelig;rksted.<o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Samtidig med &aring;bningen udkommer bogen <em>Brilliant City </em></span><span style="font-size: 9pt; font-family: Helvetica;">p&aring; forlaget &Aring;rhus Kunstbygning med Inger Lise Rasmussens billeder og tekster af Andreas Steen, Ph.d og adjunkt ved Afdeling for Asienstudier, Aarhus Universitet og Margrethe Floryan, museumsinspekt&oslash;r ved Thorvaldsens Museum. <span style="">&nbsp;</span><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Inger Lise Rasmussens <em>Brilliant City </em></span><span style="font-size: 9pt; font-family: Helvetica;">er sammen med udstillingerne <em>Den farvel&oslash;se &oslash;</em></span><span style="font-size: 9pt; font-family: Helvetica;"> og <em>Atlantic </em></span><span style="font-size: 9pt; font-family: Helvetica;">en pr&aelig;sentation af tre anerkendte kunstnere, der arbejder med udgangspunkt i det fotografiske medie og med en dokumenterende, fort&aelig;llende og engagerende stil. Det er kunst med udsyn, der uundg&aring;eligt vil f&aring; beskueren til at t&aelig;nke over historien og hvordan vi m&oslash;der dens spor i vores omgivelser. Men det er ogs&aring; poetiske v&aelig;rker, der skaber f&aelig;ngslende billeder. <o:p></o:p></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;"><strong><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></strong></span></p><p style="text-align: justify;" class="MsoNormal"><span style="font-size: 9pt; font-family: Helvetica;">Udstillingerne<em> </em></span><span style="font-size: 9pt; font-family: Helvetica;">er st&oslash;ttet af Kulturudviklingspuljen v. &Aring;rhus Kommune og Kunststyrelsens Billedkunstudvalg.<o:p></o:p></span></p><!--EndFragment-->&nbsp; <span style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></p><!--EndFragment-->'; 
InfoID = new Array ('1','profile');
InfoNames = new Array ('[Echoing space]','Profil');
var nImagesLoaded = 0; 
var nImagesTotal  = 114; 
ImageSource =  new MakeArray(10); 
ImageSource[0] = new Array('Lgb01.jpg','Lgb03.jpg','Lgb02.jpg','Lgb04.jpg','Lgb05.jpg','Lgb07.jpg','Lgb06.jpg','Lgb08.jpg','');
ImageSource[1] = new Array('Rr08.jpg','Rr09_1.jpg','Rr09_2.jpg','Rr09_3.jpg','Rr10_1.jpg','Rr10_2.jpg','Rr10_3.jpg','','Rr11_1.jpg','Rr11_2.jpg','','','');
ImageSource[2] = new Array('Rr12_1.jpg','Rr12_2.jpg','Rr12_3.jpg','Rr12_4.jpg','Rr12_5.jpg','Rr12_6.jpg','Rr12_7.jpg','Rr12_8.jpg','Rr13_1.jpg','Rr13_2.jpg','Rr13_3.jpg','Rr13_4.jpg','Rr13_5.jpg','Rr13_6.jpg','Rr13_7.jpg','Rr13_8.jpg','');
ImageSource[3] = new Array('Rr41.jpg','Rr50.jpg','Rr43.jpg','Rr54.jpg','Rr49.jpg','MW1.jpg','Rr51.jpg','MW3.jpg','Rr40_2.jpg','Rr52.jpg','','','');
ImageSource[4] = new Array('Rr01.jpg','Rr02.jpg','Rr03.jpg','Rr04.jpg','Rr05.jpg','Rr06.jpg','');
ImageSource[5] = new Array('Rr36.jpg','MW6.jpg','Rr36_2.jpg','MW7.jpg','Rr35.jpg','MW5.jpg','','Rr33_2.jpg','Rr34_1.jpg','Rr34_2.jpg','Rr35_1.jpg','Rr37.jpg','');
ImageSource[6] = new Array('Rr45_1.jpg','','Rr45_2.jpg','','MW4.jpg','','Rr46.jpg','','Rr46_1.jpg','','Rr44p.jpg','','Rr44.jpg','','','','');
ImageSource[7] = new Array('Rr21p.jpg','','Rr18.jpg','','Rr20.jpg','','Rr15.jpg','','Rr17.jpg','','Rr19.jpg','','');
ImageSource[8] = new Array('Rr30_3.jpg','Rr30_1.jpg','Rr25_1.jpg','Rr30_2.jpg','Rr25_2.jpg','Rr29_1.jpg','Rr23.jpg','Rr29_2.jpg','Rr26.jpg','Rr24.jpg','Rr24_1.jpg','Rr22.jpg','Rr28_1.jpg','Rr27_1.jpg','Rr28_2.jpg','Rr27_2.jpg','');
ImageSource[9] = new Array('16_17_2_copy_Laterne_slukk_copy.jpg','18_19_1_copy_byen_forsvind_copy.jpg','18_19_2_copy_byen_forsvind_copy.jpg','20_21_1_copy_asiatisk_pyra_copy.jpg','');
ImageThumbSource =  new MakeArray(10); 
ImageThumbSource[0] = new Array('Lgb01T.jpg','Lgb03T.jpg','Lgb02T.jpg','Lgb04T.jpg','Lgb05T.jpg','Lgb07T.jpg','Lgb06T.jpg','Lgb08T.jpg','');
ImageThumbSource[1] = new Array('Rr08T.jpg','Rr09_1T.jpg','Rr09_2T.jpg','Rr09_3T.jpg','Rr10_1T.jpg','Rr10_2T.jpg','Rr10_3T.jpg','','Rr11_1T.jpg','Rr11_2T.jpg','','','');
ImageThumbSource[2] = new Array('Rr12_1T.jpg','Rr12_2T.jpg','Rr12_3T.jpg','Rr12_4T.jpg','Rr12_5T.jpg','Rr12_6T.jpg','Rr12_7T.jpg','Rr12_8T.jpg','Rr13_1T.jpg','Rr13_2T.jpg','Rr13_3T.jpg','Rr13_4T.jpg','Rr13_5T.jpg','Rr13_6T.jpg','Rr13_7T.jpg','Rr13_8T.jpg','');
ImageThumbSource[3] = new Array('Rr41T.jpg','Rr50T.jpg','Rr43T.jpg','Rr54T.jpg','Rr49T.jpg','MW1T.jpg','Rr51T.jpg','MW3T.jpg','Rr40_2T.jpg','Rr52T.jpg','','','');
ImageThumbSource[4] = new Array('Rr01T.jpg','Rr02T.jpg','Rr03T.jpg','Rr04T.jpg','Rr05T.jpg','Rr06T.jpg','');
ImageThumbSource[5] = new Array('Rr36T.jpg','MW6T.jpg','Rr36_2T.jpg','MW7T.jpg','Rr35T.jpg','MW5T.jpg','','Rr33_2T.jpg','Rr34_1T.jpg','Rr34_2T.jpg','Rr35_1T.jpg','Rr37T.jpg','');
ImageThumbSource[6] = new Array('Rr45_1T.jpg','','Rr45_2T.jpg','','MW4T.jpg','','Rr46T.jpg','','Rr46_1T.jpg','','Rr44pT.jpg','','Rr44T.jpg','','','','');
ImageThumbSource[7] = new Array('Rr21pT.jpg','','Rr18T.jpg','','Rr20T.jpg','','Rr15T.jpg','','Rr17T.jpg','','Rr19T.jpg','','');
ImageThumbSource[8] = new Array('Rr30_3T.jpg','Rr30_1T.jpg','Rr25_1T.jpg','Rr30_2T.jpg','Rr25_2T.jpg','Rr29_1T.jpg','Rr23T.jpg','Rr29_2T.jpg','Rr26T.jpg','Rr24T.jpg','Rr24_1T.jpg','Rr22T.jpg','Rr28_1T.jpg','Rr27_1T.jpg','Rr28_2T.jpg','Rr27_2T.jpg','');
ImageThumbSource[9] = new Array('16_17_2_copy_Laterne_slukk_copyT.jpg','18_19_1_copy_byen_forsvind_copyT.jpg','18_19_2_copy_byen_forsvind_copyT.jpg','20_21_1_copy_asiatisk_pyra_copyT.jpg','');
ImageRef =  new MakeArray(10); 
ImageRef[0] = new Array('Lgb01','Lgb03','Lgb02','Lgb04','Lgb05','Lgb07','Lgb06','Lgb08','');
ImageRef[1] = new Array('Rr08','Rr09_1','Rr09_2','Rr09_3','Rr10_1','Rr10_2','Rr10_3','','Rr11_1','Rr11_2','','','');
ImageRef[2] = new Array('Rr12_1','Rr12_2','Rr12_3','Rr12_4','Rr12_5','Rr12_6','Rr12_7','Rr12_8','Rr13_1','Rr13_2','Rr13_3','Rr13_4','Rr13_5','Rr13_6','Rr13_7','Rr13_8','');
ImageRef[3] = new Array('Rr41','Rr50','Rr43','Rr54','Rr49','MW1','Rr51','MW3','Rr40_2','Rr52','','','');
ImageRef[4] = new Array('Rr01','Rr02','Rr03','Rr04','Rr05','Rr06','');
ImageRef[5] = new Array('Rr36','MW6','Rr36_2','MW7','Rr35','MW5','','Rr33_2','Rr34_1','Rr34_2','Rr35_1','Rr37','');
ImageRef[6] = new Array('Rr45_1','','Rr45_2','','MW4','','Rr46','','Rr46_1','','Rr44p','','Rr44','','','','');
ImageRef[7] = new Array('Rr21p','','Rr18','','Rr20','','Rr15','','Rr17','','Rr19','','');
ImageRef[8] = new Array('Rr30_3','Rr30_1','Rr25_1','Rr30_2','Rr25_2','Rr29_1','Rr23','Rr29_2','Rr26','Rr24','Rr24_1','Rr22','Rr28_1','Rr27_1','Rr28_2','Rr27_2','');
ImageRef[9] = new Array('16_17_2 copy Laterne slukk copy','18_19_1 copy byen forsvind copy','18_19_2 copy byen forsvind copy','20_21_1 copy asiatisk pyra copy','');
ImageText =  new MakeArray(10); 
ImageText[0] = new Array('','','','','','','','','');
ImageText[1] = new Array('','','','','','','','','','','','','');
ImageText[2] = new Array('','','','','','','','','','','','','','','','','');
ImageText[3] = new Array('','','','','','','','','','','','','');
ImageText[4] = new Array('','','','','','','');
ImageText[5] = new Array('','','','','','','','','','','','','');
ImageText[6] = new Array('','','','','','','','','','','','','','','','','');
ImageText[7] = new Array('','','','','','','','','','','','','');
ImageText[8] = new Array('','','','','','','','','','','','','','','','','');
ImageText[9] = new Array('','','','','');
var iOrderMethod = 1; 
 
var nMaxBasketItems = 9; 
var nBasketItems    = 0; 
var iBasketIndex    = -1; 
BasketImgID  = new MakeArray(nMaxBasketItems); 
BasketImgSrc  = new MakeArray(nMaxBasketItems); 
BasketImgRef  = new MakeArray(nMaxBasketItems); 
BasketImgIdx  = new MakeArray(nMaxBasketItems); 
var strBuyImgDir = 'user_InRa'; 
var strBuyPhotographer = 'Inger Lise Rasmussen';  
var strBuyCustomName = ''; 
var strBuyCustomAddr = ''; 
var strBuyCustomMail = ''; 
var strBuyCustomTele = ''; 
var strBuyCustomNote = ''; 
var strBuyOrderDir = 'user_InRa'; 
var strBuyOrderMail = 'ingerlise.rasmussen@gmail.com';     
var strBuyOrderLink = '';     
var strBuyOrderLine = ''; 

function SetReady () {
  bReady = true; 
  HideSection ('ProgressBarArea'); 
  HideSection ('IntroImageArea'); 
  ShowSection ('ThumbScrollArea'); 
  ShowSection ('ThumbArea'); 
  ShowSection ('Cat0'); 
  ShowSection ('SubMenuArea'); 
  ShowSection ('SubMenuPHOTOS'); 
  ShowSection ('MenuScrollArea'); 
  ShowSection ('ImageArea'); 
  ShowSection ('ImageTextArea'); 
  ShowSection ('ImageText'); 
  ShowSection ('ImageTextScrollArea'); 
  ShowSection ('InfoArea'); 
  ShowSection ('InfoTextArea'); 
  ShowSection (strInfo); 
  ShowSection ('InfoTextScrollArea'); 
  var wndo = new dw_scrollObj ('ThumbArea', 'Cat0'); 
  wndo.setUpScrollbar ('ThumbScrollDragbar', 'ThumbScrollTrack', 'h', 1, 1); 
  wndo = new dw_scrollObj ('SubMenuArea', 'SubMenuPHOTOS'); 
  wndo.setUpScrollbar ('MenuScrollDragbar', 'MenuScrollTrack', 'v', 1, 1); 
  wndo = new dw_scrollObj ('ImageTextArea', 'ImageText'); 
  wndo.setUpScrollbar ('ImageTextScrollDragbar', 'ImageTextScrollTrack', 'v', 1, 1); 
  wndo = new dw_scrollObj ('InfoTextArea', 'Info0'); 
  wndo.setUpScrollbar ('InfoTextScrollDragbar', 'InfoTextScrollTrack', 'v', 1, 1); 
  PerformMenu ('START'); 
  var strUrl = document.URL; 
  var iArticle = -1; 
  var iTheme   = -1; 
  var ipos = strUrl.indexOf('?'); 
  var nc   = strUrl.length; 
  while (ipos > 0 && ipos < nc) { 
    var jpos = strUrl.indexOf('=', ipos); 
    if (jpos > 0) { 
      var kpos = strUrl.indexOf('&', jpos); 
      if (kpos <= 0) kpos = nc; 
      var strID  = strUrl.substring (ipos+1, jpos); 
      var strVal = strUrl.substring (jpos+1, kpos); 
      strID  = strID.toLowerCase(); 
      strVal = strVal.toLowerCase(); 
      if (strID == 'article') { 
        for (i = 0; i < InfoID.length; i++) { 
          if (strVal == InfoID[i]) iArticle = i; 
        } 
      } 
      if (strID == 'theme') { 
        for (i = 0; i < CatID.length; i++) { 
          if (strVal == CatID[i]) iTheme = i; 
        } 
      } 
      ipos = kpos; 
    } 
    else ipos = -1; 
  } 
  if (iTheme >= 0) { 
    iCurMenuPHOTO = iTheme; 
     PerformMenu ('PHOTOS'); 
  } 
  else if (iArticle >= 0) { 
    iCurMenuINFO = iArticle; 
     PerformMenu ('INFO'); 
  } 
  else {
    PerformMenu ('PHOTOS'); 
  } 
} 

function CheckBasket() { 
  if (iCheckBasket > 0 && nBasketItems > 0) { 
    var strMess = 'Du har ' + nBasketItems + ' fotos i din bestillingskurv'; 
    return strMess; 
  } 
  iCheckBasket = 1; 
} 

function UnCheckBasket() { 
  iCheckBasket = 0; 
} 

function SelectedText() { 
  document.selection.empty();
} 

function PerformMenu (id) {
  if (!bReady) return; 
  if (id == 'START') {  
    strMainMenu = id; 
    HideSection ('IntroImageArea'); 
    HideSection ('IDArea'); 
    ShowSection ('FuncArea'); 
    ShowSection ('MenuArea'); 
    ShowSection ('SubMenuArea'); 
    ShowSection ('ImageArea'); 
    ShowSection ('ImageTextArea'); 
    ShowSection ('ThumbArea'); 
    for (var i = 0; i < nMaxBasketItems; i++) { 
      strName = 'BasketImage' + i; 
      BasketImgIdx[i] = FindImage (strName); 
    } 
    ShowImage (0,0,0); 
    strCurImgID = '0_0'; 
  } 
  else if (id == 'PHOTOS') { 
    strMainMenu = id; 
    ShowSection ('SubMenuArea'); 
    ShowSubMenu ('PHOTOS'); 
    HideSection ('InfoBannerArea'); 
    MarkMenu   ('PHOTOS'); 
    UnmarkMenu ('INFO'  ); 
    HideSection ('InfoArea'); 
    ShowSection ('ThumbArea'); 
    ShowSection ('ImageArea'); 
    ShowSection ('ImageTextArea'); 
    ShowSubMenuPHOTO (iCurMenuPHOTO); 
    UnmarkFunc ('FULLSIZE'); 
    ShowOrder(); 
  } 
  else if (id == 'INFO') {  
    strMainMenu = id; 
    ShowSection ('SubMenuArea'); 
    ShowSubMenu ('INFO'); 
    ShowSection ('InfoBannerArea'); 
    MarkMenu   ('INFO'  ); 
    UnmarkMenu ('PHOTOS'); 
    HideSection ('BasketStrip'); 
    HideSection ('ThumbArea'); 
    HideSection ('ImageArea'); 
    HideSection ('ImageTextArea'); 
    ShowSection ('InfoArea'); 
    ShowSubMenuINFO (iCurMenuINFO); 
    DimMenu('FULLSIZE'); 
    ShowOrder(); 
  } 
  else if (id == 'FULLSIZE') { 
    urchinTracker('/Gallery/Fullsize');
    NewImageWindow(); 
  } 
  else if (id == 'PORTAL') { 
    document.location = '../Index.html'; 
  } 
  else if (id == 'CATALOG') { 
    urchinTracker('/Gallery/GalleryCatalog');
    win = window.open ("Catalog_InRa_Native.pdf", "", "menubar=1,toolbar=0,resizable=1,scrollbars=1"); 
  } 
  else if (id == 'PRINT') { 
    PrintPage ();
  } 
  else if (id == 'ADDORDER') { 
    if (strMainMenu == 'PHOTOS') { 
      AddCurImageToBasket(); 
      ShowOrder(); 
    } 
  } 
  else if (id == 'REMORDER') { 
    if (strMainMenu == 'PHOTOS') { 
      RemoveFromBasket(); 
      ShowOrder(); 
    } 
  } 
  else if (id == 'CLRORDER') { 
    if (strMainMenu == 'PHOTOS') { 
      ClearBasket(); 
      ShowOrder(); 
    } 
  } 
  else if (id == 'DOORDER') { 
    urchinTracker('/Gallery/Order');
    if (nBasketItems > 0) {
      BuyBasketPopup(); 
    } 
  } 
} 

function ShowOrderLink () { 
  var win = window.open ("../BuyLink.html", "", "left=100,top=100,directories=0,location=0,menubar=1,resizable=1,scrollbars=1,status=0,toolbar=0,width=500,height=500");
} 

function ShowOrder () {
  if (strMainMenu == 'PHOTOS') { 
    if (nBasketItems < nMaxBasketItems) UnmarkFunc ('ADDORDER'); 
    else                                DimMenu    ('ADDORDER'); 
    if (nBasketItems > 0) UnmarkFunc ('CLRORDER'); 
    else                  DimMenu    ('CLRORDER'); 
    if (nBasketItems > 0) UnmarkFunc ('DOORDER'); 
    else                  DimMenu    ('DOORDER'); 
    if (nBasketItems > 0 && iBasketIndex >= 0) UnmarkFunc ('REMORDER'); 
    else                                       DimMenu    ('REMORDER'); 
    if (nBasketItems > 0) ShowSection ('ImageBasketArea'); 
    else                  HideSection ('ImageBasketArea'); 
  } 
  if (strMainMenu == 'INFO') { 
    DimMenu ('ADDORDER'); 
    DimMenu ('REMORDER'); 
    DimMenu ('CLRORDER'); 
    if (nBasketItems > 0) UnmarkFunc ('DOORDER'); 
    else                  DimMenu    ('DOORDER'); 
    HideSection ('ImageBasketArea'); 
  } 
} 

function ImageIsLoaded () { 
  if(bReady) return; 
  nImagesLoaded++; 
  UpdateImageProgress(); 
  if (nImagesLoaded == nImagesTotal - 3) SetReady();
} 

function UpdateImageProgress () {
  if (nImagesTotal == 0) return; 
  var progress = parseFloat(nImagesLoaded) / parseFloat(nImagesTotal); 
  m = document.getElementById('ProgressBarArea'); 
  progress *= 471; 
  progress += 5; 
  var src = '<div style="position:absolute;left:0px;width:' + parseInt(progress) + 'px;height:100%;background-color:#C6C6C6;">'; 
  src += '</div>' 
  if (m) m.innerHTML = src; 
} 

function NoAction () {
} 

function InitThumbScroll(dir) { 
  dw_scrollObj.initScroll('ThumbArea', dir); 
} 

function StopThumbScroll() { 
  dw_scrollObj.stopScroll('ThumbArea'); 
} 

function InitMenuScroll(dir) { 
  dw_scrollObj.initScroll('SubMenuArea', dir); 
} 

function StopMenuScroll() { 
  dw_scrollObj.stopScroll('SubMenuArea'); 
} 

function InitImageTextScroll(dir) { 
  dw_scrollObj.initScroll('ImageTextArea', dir); 
} 

function StopImageTextScroll() { 
  dw_scrollObj.stopScroll('ImageTextArea'); 
} 

function InitInfoTextScroll(dir) { 
  dw_scrollObj.initScroll('InfoTextArea', dir); 
} 

function StopInfoTextScroll() { 
  dw_scrollObj.stopScroll('InfoTextArea'); 
} 
 

function MakeArray(n) { 
 this.length = n; 
 for (var i = 0; i < n; i++) this[i] = 0; 
 return this; 
} 
 

function MarkMenu (id) {
  MoveFocus();
  if (id == '') return; 
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) document.images[index].className='MenuSquareSelected'; 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuTextSelected'; 
} 

function MouseoverMenu (id) {
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) { 
    if (document.images[index].className == 'MenuSquareSelected') return; 
    if (document.images[index].className == 'MenuSquareDimmed'  ) return; 
    document.images[index].className='MenuSquareMouseover'; 
  } 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuTextMouseover'; 
} 

function MouseoutMenu (id) {
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) { 
    if (document.images[index].className != 'MenuSquareMouseover') return; 
    document.images[index].className='MenuSquare'; 
  } 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuText'; 
} 

function MouseoverFunc (id) {
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) { 
    if (document.images[index].className == 'MenuSquareSelected') return; 
    if (document.images[index].className == 'MenuSquareDimmed'  ) return; 
    document.images[index].className='MenuSquareMouseover'; 
  } 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuTextMouseover'; 
} 

function MouseoutFunc (id) {
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) { 
    if (document.images[index].className != 'MenuSquareMouseover') return; 
    document.images[index].className='FuncSquare'; 
  } 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuText'; 
} 

function UnmarkMenu (id) {
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) document.images[index].className='MenuSquare'; 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuText'; 
} 

function UnmarkFunc (id) {
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) document.images[index].className='FuncSquare'; 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuText'; 
} 

function DimMenu (id) {
  strName = 'MI' + id; 
  index = FindImage (strName); 
  if (index >= 0) document.images[index].className='MenuSquareDimmed'; 
  strName = 'MT' + id; 
  index = FindAnchor (strName); 
  if (index >= 0) document.anchors[index].className='MenuTextDimmed'; 
} 

function ShowSubMenuPHOTO (icat) {
  if (!bReady) return; 
  UnmarkMenu ('SP' + iCurMenuPHOTO); 
  MarkMenu   ('SP' + icat); 
  iCurMenuPHOTO = icat; 
  ShowTheme (icat); 
} 

function ShowSubMenuINFO (icat) {
  if (!bReady) return; 
  UnmarkMenu ('SI' + iCurMenuINFO); 
  MarkMenu   ('SI' + icat); 
  iCurMenuINFO = icat; 
  ShowInfo (icat); 
} 

function ShowSubMenu (id) {
  if (!bReady) return; 
  HideSection (strSubMenu); 
  strSubMenu = 'SubMenu' + id; 
  ShowSection (strSubMenu); 
  var layer = document.getElementById(strSubMenu); 
  var ylayer = layer ? layer.offsetHeight : 0;
  var yarea  = 132; 
  ShowSection ('MenuScrollArea'); 
  dw_scrollObj.loadLayer ('SubMenuArea', strSubMenu); 
  if (ylayer <= yarea) HideSection ('MenuScrollArea'); 
} 

function ShowTheme (icat) {
  if (!bReady) return; 
  HideSection (strTheme); 
  strTheme = 'Cat' + icat; 
  ShowSection (strTheme); 
  ShowInfoTitle (CatNames[icat]); 
  if (icat >= 0) { 
    nImages = nCatImages[icat]; 
    if (nImages > 16) ShowSection('ThumbScrollArea'); 
    else              HideSection('ThumbScrollArea'); 
    dw_scrollObj.loadLayer ('ThumbArea', strTheme); 
    strCurImgID = '' + icat + '_' + CurCatImg[icat];
    strLastImgID = strCurImgID;
    ShowImage (icat, CurCatImg[icat], 1);
  } 
  else { 
    HideSection('ThumbScrollArea'); 
    ShowImage (icat, 0, 1);
    strCurImgID = '';
    strLastImgID = strCurImgID;
  } 
} 

function ShowInfo (info) {
  HideSection('ThumbScrollArea'); 
  HideSection (strInfo); 
  ShowInfoTitle (InfoNames[info]); 
  strInfo = 'Info' + info; 
  ShowSection (strInfo); 
  var area = document.getElementById('InfoTextArea'); 
  if (area) area.style.width = '634px'; 
  var layer = document.getElementById(strInfo); 
  if (layer) layer.style.width = '634px'; 
  var yarea  = 471; 
  var ylayer = layer ? layer.offsetHeight : 0;
  ShowSection ('InfoTextScrollArea'); 
  dw_scrollObj.loadLayer ('InfoTextArea', strInfo); 
  if (ylayer > yarea) { 
    area.style.width = '612px'; 
    layer.style.width = '612px'; 
  } 
  else { 
    HideSection ('InfoTextScrollArea'); 
  } 
} 

function GetThumbSource(id) { 
  var img  = -1; 
  var index = id.indexOf('_'); 
  if (index > 0) { 
    var str = id.substring(0,index); 
    var icat = parseInt (str); 
    str = id.substring(index+1,id.length); 
    var img = parseInt (str); 
    if (img >= 0) return ImageThumbSource[icat][img]; 
  } 
  return ''; 
} 
 

function GetImageSource(id) { 
  var img  = -1; 
  var index = id.indexOf('_'); 
  if (index > 0) { 
    var str = id.substring(0,index); 
    var icat = parseInt (str); 
    str = id.substring(index+1,id.length); 
    var img = parseInt (str); 
    if (img >= 0) return ImageSource[icat][img]; 
  } 
  return ''; 
} 
 

function GetImageRef(id) { 
  var img  = -1; 
  var index = id.indexOf('_'); 
  if (index > 0) { 
    var str = id.substring(0,index); 
    var icat = parseInt (str); 
    str = id.substring(index+1,id.length); 
    var img = parseInt (str); 
    if (img >= 0) return ImageRef[icat][img]; 
  } 
  return GetImageSource(id); 
} 
 

function FindAnchor (name) {
  if (document.anchors) { 
    for (i = 0; i < document.anchors.length; i++) { 
      if (document.anchors[i].name == name) return i; 
      }; 
  } 
  return -1; 
} 

function FindImage (name) {
  if (document.images) { 
    for (i = 0; i < document.images.length; i++) { 
      if (document.images[i].name == name) return i; 
      }; 
  } 
  return -1; 
} 

function SelectThumbImage (id) {
  strName = 'T' + strCurImgID; 
  index = FindImage (strName); 
  if (index >= 0) document.images[index].className='ThumbImage'; 
  strName = 'T' + id; 
  index = FindImage (strName); 
  if (index >= 0) document.images[index].className='ThumbImageSelect'; 
  strCurImgID = id; 
} 

function Replace (strText, strFrom, strTo) {
  var strNow = strText; 
  var ipos = strText.indexOf(strFrom); 
  if (ipos >= 0) { 
    strNow = strText.substring(0, ipos); 
    strNow += strTo; 
    strNow += strText.substring(ipos + strFrom.length, strText.length); 
  } 
  return strNow; 
} 

function PlaceSection (id, pos) {
  if (document.getElementById && document.createTextNode) { 
    var m = document.getElementById(id); 
    if (m) m.style.top = pos; 
  } 
} 

function ShowSection (id) {
  if (document.getElementById && document.createTextNode) { 
    var m = document.getElementById(id); 
    if (m) m.style.display="block"; 
  } 
} 

function HideSection (id) {
  if (document.getElementById && document.createTextNode) { 
    var m = document.getElementById(id); 
    if (m) m.style.display="none"; 
  } 
} 

function  ShowContent (id) {
  if (!bReady) return; 
  HideSection (strContent); 
  strContent = id; 
  ShowSection (strContent); 
} 

function NewImageWindow() {
  var strImage = GetImageSource(strCurImgID); 
  if (strImage.length <= 0) return; 
  win = window.open ("", "", "fullscreen=yes");
  win.document.open ();
  win.document.write ('<html>');
  win.document.write ('<head>');
  win.document.write ('<title>Image: ' + strImage + '</title>');
  win.document.write ('<link rel="stylesheet" type="text/css" href="../PhotoSite.css" />');
  win.document.write ('<script type="text/Javascript">');
  win.document.write ('var color = 6; ');
  win.document.write ('function ChangeColor(idir) { '); 
  win.document.write ('  color += idir; '); 
  win.document.write ('  if (color  > 8) color = 8; ');
  win.document.write ('  if (color  < 0) color = 0; ');
  win.document.write ('  if (color == 0) document.body.style.backgroundColor="#000000"; '); 
  win.document.write ('  if (color == 1) document.body.style.backgroundColor="#202020"; '); 
  win.document.write ('  if (color == 2) document.body.style.backgroundColor="#404040"; '); 
  win.document.write ('  if (color == 3) document.body.style.backgroundColor="#606060"; '); 
  win.document.write ('  if (color == 4) document.body.style.backgroundColor="#808080"; '); 
  win.document.write ('  if (color == 5) document.body.style.backgroundColor="#A0A0A0"; '); 
  win.document.write ('  if (color == 6) document.body.style.backgroundColor="#C0C0C0"; '); 
  win.document.write ('  if (color == 7) document.body.style.backgroundColor="#E0E0E0"; '); 
  win.document.write ('  if (color == 8) document.body.style.backgroundColor="#FFFFFF"; '); 
  win.document.write ('} '); 
  win.document.write ('function ChangeColorX() { '); 
  win.document.write ('  color++; '); 
  win.document.write ('  if (color  > 8) color = 0; ');
  win.document.write ('  if (color == 0) document.body.style.backgroundColor="#000000"; '); 
  win.document.write ('  if (color == 1) document.body.style.backgroundColor="#202020"; '); 
  win.document.write ('  if (color == 2) document.body.style.backgroundColor="#404040"; '); 
  win.document.write ('  if (color == 3) document.body.style.backgroundColor="#606060"; '); 
  win.document.write ('  if (color == 4) document.body.style.backgroundColor="#808080"; '); 
  win.document.write ('  if (color == 5) document.body.style.backgroundColor="#A0A0A0"; '); 
  win.document.write ('  if (color == 6) document.body.style.backgroundColor="#C0C0C0"; '); 
  win.document.write ('  if (color == 7) document.body.style.backgroundColor="#E0E0E0"; '); 
  win.document.write ('  if (color == 8) document.body.style.backgroundColor="#FFFFFF"; '); 
  win.document.write ('} '); 
  win.document.write ('</sc' + 'ript>'); 
  win.document.write ('</head>');
  win.document.write ('<body onLoad="ChangeColor(0)">'); 
  win.document.write ('<table width="100%" height="100%" style="text-align:center"><tr><td valign="middle">'); 
  win.document.write ('<img src="' + strImage + '" border="0" />');
  win.document.write ('</td></tr></table>'); 
  win.document.write ('<div style="position:absolute; bottom:20px; left:30px; text-align:left;">'); 
  win.document.write ('<div class="MenuLine" onmousedown="ChangeColorX()">'); 
  win.document.write ('<img src="../blank.gif" class="MenuSquare" />');
  win.document.write ('<span class="MenuText">Background tone</span>'); 
  win.document.write ('</div>'); 
  win.document.write ('<div class="MenuLine" onmousedown="window.close()">'); 
  win.document.write ('<img src="../blank.gif" class="MenuSquare" />');
  win.document.write ('<span class="MenuText">Close window</span>'); 
  win.document.write ('</div>'); 
  win.document.write ('</div>'); 
  win.document.write ('</body>'); 
  win.document.write ('</html>'); 
  win.document.close ();
} 

function PrintPage() {
  var strID = ''; 
  if (strMainMenu == 'PHOTOS') strID = strCurImgID; 
  if (strMainMenu == 'INFO'  ) strID = InfoID[iCurMenuINFO]; 
  if (strID == '') return; 
  var strFile  = '';
  var strTitle = '';
  var strText  = '';
  if (strMainMenu == 'PHOTOS') {; 
    strTitle = CatNames[iCurMenuPHOTO]; 
    strFile = GetImageSource(strID);
    if (strFile == '') return; 
    if (document.getElementById && document.createTextNode) { 
      var mt= document.getElementById('ImageText'); 
      if (mt) strText = mt.innerHTML;
    } 
  } 
  if (strMainMenu == 'INFO') {; 
    if (document.getElementById && document.createTextNode) { 
      var mt= document.getElementById(strInfo); 
      if (mt) strText = mt.innerHTML;
      strTitle = InfoNames[iCurMenuINFO];
    } 
  } 
  win = window.open ("", "", "left=100,top=100,toolbar=1,menubar=1,scrollbars=1,resizeable=1,width=700,height=600");
  win.document.open ();
  win.document.write ('<html>\n');
  win.document.write ('<head>\n');
  win.document.write ('<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />\n');
  win.document.write ('<link rel="stylesheet" type="text/css" href="../PhotoSitePopupPrint.css" />\n');
  win.document.write ('</head>\n');
  win.document.write ('<body onload="window.print()" >\n'); 
  win.document.write ('<div id="mainpage">\n');
  win.document.write ('<div id="LogoArea">\n');
  win.document.write ('<img src="../Logo_gallery.gif" width="100%" />\n'); 
  win.document.write ('</div>\n');
  win.document.write ('<div id="IdentArea">\n');
  win.document.write ('<b>PHOTOMONDO - PHOTOGRAPHY</b><br/><br/>\n'); 
  win.document.write ('<b>Fotograf Inger Lise Rasmussen</b><br/><br/>\n'); 
  win.document.write ('www.photomondo.dk/IngerLiseRasmussen/dk <br/>\n'); 
  win.document.write ('ingerlise.rasmussen@gmail.com \n'); 
  win.document.write ('</div>\n');
  win.document.write ('<div id="InfoTitleArea">\n');
  win.document.write (strTitle); 
  win.document.write ('</div>\n');
  win.document.write ('<div id="InfoArea">\n');
  if (strMainMenu == 'PHOTOS') {; 
    win.document.write ('<img src="' + strFile + '" />\n'); 
    win.document.write ('<br/>\n');
    win.document.write ('Filnavn: <i>' + strFile + '</i><br/><br/>\n');
  } 
  win.document.write (strText); 
  win.document.write ('\n</div>\n');
  win.document.write ('\n</div>\n');
  win.document.write ('</body>\n'); 
  win.document.write ('</html>\n'); 
  win.document.close ();
} 

function ShowImage (icat, img, sel) {
  var strText = '';
  var strID = '';
  if (icat >= 0 && img >= 0) { 
    strText += ImageText[icat][img];
    if (strText.length > 0) strText += '<br/><br/>';
    strText += CatText[icat];
    strID = '' + icat + '_' + img; 
    if (sel > 0) { 
      SelectThumbImage (strID); 
      CurCatImg[icat] = img; 
      strCurImgID = strID; 
      strCurImgText = strText; 
    } 
  } 
  strLastImgID = strID; 
  strLastImgText = strText; 
  strNow = 'Img' + strID; 
  ShowContent (strNow); 
  ShowImageText (strLastImgText); 
} 

function ShowInfoTitle (str, color) {
  var area = document.getElementById('InfoTitleArea'); 
  if (area) { 
    area.innerHTML = str; 
    if (color) area.style.color = color; 
    else       area.style.color = 'black'; 
  } 
} 

function ShowImageText (str) {
  var area = document.getElementById('ImageTextArea'); 
  if (area) area.style.width = '145px'; 
  var layer = document.getElementById('ImageText'); 
  if (layer) layer.innerHTML = str; 
  var ylayer = layer ? layer.offsetHeight : 0;
  var yarea  = 310;
  HideSection ('ImageTextScrollArea'); 
  if (ylayer > yarea) { 
    area.style.width = '124px'; 
    ShowSection ('ImageTextScrollArea'); 
    dw_scrollObj.loadLayer ('ImageTextArea', 'ImageText'); 
  }; 
} 

function SetMenuText (id, text, color) { 
  index = FindAnchor ('MT' + id); 
  if (index >= 0) { 
    document.anchors[index].innerHTML = text; 
    if (color) document.anchors[index].style.color = color; 
  } 
} 

function UpdateBasketIcons () { 
} 

function DisplayBasket () { 
  for (var i = 0; i < nMaxBasketItems; i++) { 
    DisplayBasketUnit (i); 
  } 
} 

function DisplayBasketUnit (i) { 
  strName = 'BasketImage' + i; 
  ShowSection (strName); 
  strImgSrc  = GetThumbSource(BasketImgID[i]); 
  if (strImgSrc == '') strImgSrc = '../blank.gif'; 
  var index = FindImage (strName); 
  if (index >= 0) document.images[index].src = strImgSrc; 
} 

function AddCurImageToBasket () { 
  if (strCurImgID.length > 0 && nBasketItems < nMaxBasketItems) { 
    var index = -1; 
    for (var i = nMaxBasketItems - 1; i >= 0; i = i-1) { 
      if (BasketImgID [i] == '') index = i; 
    } 
    if (index >= 0) { 
      BasketImgID [index] = strCurImgID; 
      BasketImgSrc[index] = GetThumbSource(strCurImgID); 
      BasketImgRef[index] = GetImageRef(strCurImgID); 
      nBasketItems++; 
      SelectBasketImage (index); 
      DisplayBasketUnit(index); 
      UpdateBasketIcons(); 
    } 
  } 
} 

function BuyCurBasket () { 
} 

function RemoveFromBasket () { 
  if (iBasketIndex >= 0) { 
    for (var i = iBasketIndex; i < nBasketItems - 1; i++) { 
      BasketImgID [i] = BasketImgID[i+1]; 
      BasketImgSrc[i] = BasketImgSrc[i+1]; 
      BasketImgRef[i] = BasketImgRef[i+1]; 
      DisplayBasketUnit(i); 
    } 
    BasketImgID [nBasketItems-1] = ''; 
    DisplayBasketUnit(nBasketItems-1); 
    nBasketItems = nBasketItems - 1; 
    if (nBasketItems > 0) SelectBasketImage(nBasketItems-1); 
    UpdateBasketIcons(); 
  } 
} 

function ClearBasket () { 
  if (iBasketIndex >= 0) { 
    UnselectBasketImage(); 
  } 
  for (var i = 0; i < nMaxBasketItems; i++) { 
    BasketImgID [i] = ''; 
    DisplayBasketUnit(i); 
  } 
  iBasketIndex = -1; 
  nBasketItems = 0; 
  UpdateBasketIcons(); 
} 

function BuyBasketPopup() {
  if (nBasketItems > 0) { 
    strBuyOrderLine = ''; 
    for (var i = 0; i < nBasketItems; i++) { 
      if (strBuyOrderLine != '') strBuyOrderLine += ', '; 
      strBuyOrderLine += BasketImgRef[i]; 
    } 
    window.open ("../BuyForm.html", "", "left=100,top=100,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width=530,height=570");
  }
}

function ShowBasketImage (index, sel) {
  if (sel == 0) return; 
  strID = BasketImgID[index]; 
  if (strID == '') return; 
  if (sel > 0) { 
    SelectThumbImage (strID); 
    SelectBasketImage (index); 
  } 
  strNow = 'Img' + strID; 
  ShowContent (strNow); 
  if (sel > 0) UpdateBasketIcons(); 
} 

function SelectBasketImage (i) {
  UnselectBasketImage(); 
  index = BasketImgIdx[i]; 
  if (index >= 0) { 
    document.images[index].className='BasketImageSelect'; 
    iBasketIndex = i; 
  } 
} 

function UnselectBasketImage () {
  for (var i = 0; i < nMaxBasketItems; i++) {
    index = BasketImgIdx[i]; 
    if (index >= 0) document.images[index].className='BasketImage'; 
  } 
  iBasketIndex = -1; 
} 

function ShowSelectedImage () {
  if (strCurImgID == '') return; 
  strNow = 'Img' + strCurImgID; 
  ShowContent (strNow); 
  ShowImageText (strCurImgText); 
  strLastImgID   = strCurImgID; 
  strLastImgText = strCurImgText; 
} 

function ShowLastImage () {
  strNow = 'Img' + strLastImgID; 
  ShowContent (strNow); 
  ShowImageText (strLastImgText); 
} 

function MoveFocus() {
  var move = false; 
  var agent = navigator.userAgent.toLowerCase();
  var is_ie     = (agent.indexOf('msie')  != -1);
  var is_opera  = (agent.indexOf('opera') != -1);
  var is_mac	  = (agent.indexOf('mac')   != -1);
  var is_mac_ie = (is_ie && is_mac);
  var is_win_ie = (is_ie && !is_mac);
  var is_gecko  = (navigator.product == 'Gecko');
  if (is_gecko) move = true; 
  if (move) { 
    var index = FindAnchor ('DummyLink'); 
    if (index >= 0) document.anchors[index].focus(); 
  } 
} 

