/*========= Tyler's element fader script, modified drastically for imp mod project ==========*/
/*========= see roll.js for more dependencies ==========*/
/*============ copyright 2007 Tyler Peterson =================*/
/*========= requires DHTMLAPI.js & addOnLoadEvent.jd :: uses 2 functions from DHTMLAPI; getObjectWidth & getObjectHeight =========*/

//set defaults

var opacity_step 	= 20; // interval opacity increases by per fadeIn call
var opacity_speed 	= 25; // speed of fadeIn function
var fade_pause 		= 0;  // delay before animation begins

var agt = navigator.userAgent.toLowerCase();
if (agt.indexOf("safari") != -1){
	opacity_step = 30; // interval opacity increases by per fadeIn call
	opacity_speed = 10; // speed of fadeIn function
}

var showing = '';

//when called, the function will fade in each array that is passed as an argument
function doFade(){
	for (var i=0; i<arguments.length; i++){
		var temp_arr = arguments[i];
		for(var z=0; z<temp_arr.length; z++){
			
			if(getOpacity(temp_arr[z]) > 50){
				fadeOut(temp_arr[z],100);
			}
		}
	}
}

function reveal(){
	for (var i=1; i<arguments.length; i++){
		var temp_arr = arguments[i];
		showing = arguments[0];
		greyLinks();
		switch (showing){
			case '2722': 	{ document.getElementById('2722_link').style.color = '#ed1c24'; break }
			case '2725': 	{ document.getElementById('2725_link').style.color = '#ed1c24'; break }
			case '2726': 	{ document.getElementById('2726_link').style.color = '#ed1c24'; break }
			case '2727': 	{ document.getElementById('2727_link').style.color = '#ed1c24'; break }
			case '2728': 	{ document.getElementById('2728_link').style.color = '#ed1c24'; break }
			case '2721': 	{ document.getElementById('2721_link').style.color = '#ed1c24'; break }
			case '2730': 	{ document.getElementById('2730_link').style.color = '#ed1c24'; break }
			case '2736': 	{ document.getElementById('2736_link').style.color = '#ed1c24'; break }
			case '2731': 	{ document.getElementById('2731_link').style.color = '#ed1c24'; break }
			case '2735': 	{ document.getElementById('2735_link').style.color = '#ed1c24'; break }
			case '2720': 	{ document.getElementById('2720_link').style.color = '#ed1c24'; break }
			default:	{ document.getElementById('all_link').style.color = '#ed1c24'; break }
		}
		for(var z=0; z<temp_arr.length; z++){

			if(getOpacity(temp_arr[z]) < 50){
				fadeIn(temp_arr[z],10);
			}
		}
	}
}

function greyLinks(){
		if(!document.getElementsByTagName) return false;
		var nav_links = document.getElementsByTagName("a");
		for(var i=0; i<nav_links.length; i++){
			
			if(nav_links[i].parentNode.getAttribute('id') == 'nav'){
				nav_links[i].style.color='#fff';
			}
		}
}

//set opacity
function setOpacity(objId, opacity) {
	//obj = document.getElementById(objId);
	opacity = (opacity >= 100)?99.999:opacity;
	
	obj.style.filter = "alpha(opacity:"+opacity+")"; 	// IE/Win
	obj.style.KHTMLOpacity = opacity/100; 				// Safari<1.2, Konqueror
	obj.style.MozOpacity = opacity/100;					// Older Mozilla and Firefox
	obj.style.opacity = opacity/100; 					// Safari 1.2, newer Firefox and Mozilla, CSS3
}

function setOutOpacity(obj, opacity) {
	//obj = document.getElementById(objId);
	opacity = (opacity <= 2)?.001:opacity;
	
	obj.style.filter = "alpha(opacity:"+opacity+")"; 	// IE/Win
	obj.style.KHTMLOpacity = opacity/100; 				// Safari<1.2, Konqueror
	obj.style.MozOpacity = opacity/100;					// Older Mozilla and Firefox
	obj.style.opacity = opacity/100; 					// Safari 1.2, newer Firefox and Mozilla, CSS3
}

//iterator to call setOpacity
function fadeIn(objId,opacity) {
	if(!document.getElementById) return false;
    obj = document.getElementById(objId);
	
	if(obj){
		if (opacity <= 100) {
			setOpacity(obj, opacity);							
				
				//iterate through the childNodes to resolve childNodes from not inheriting updated opacity in IE
				for (var i=0; i<obj.childNodes.length; i++){
					if(obj.childNodes[i].nodeType == 1){			
						setOpacity(obj.childNodes[i], opacity);
					}					
				}				
								
			opacity += opacity_step;				
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", opacity_speed);
		}
		
	}
}

function fadeOut(objId,opacity) {
	if(!document.getElementById) return false;
    obj = document.getElementById(objId);
	
	if(obj){
		if (opacity > 0) {
			setOutOpacity(obj, opacity);							
				
				//iterate through the childNodes to resolve childNodes from not inheriting updated opacity in IE
				for (var i=0; i<obj.childNodes.length; i++){
					if(obj.childNodes[i].nodeType == 1){			
						setOpacity(obj.childNodes[i], opacity);
					}					
				}			

			opacity -= opacity_step;
			window.setTimeout("fadeOut('"+objId+"',"+opacity+")", opacity_speed);
		}
	}
}

//array holding captions with the id as the key
var captions = new Array();
captions['2722_1'] = "<strong>LIU YE (b. 1964)</strong><br /><em>I Always Wanted to be a Sailor</em><br />acrylic on canvas<br />Painted in 1999<br />Estimate: HK$4,000,000  – $6,000,000<br /><br />劉野 (b. 1964)<br />我是海軍<br />1999年作<br />壓克力 畫布<br />估價：港幣4,000,000 – 6,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Asian Contemporary Art & Chinese 20th Century Art (Evening Sale)<br /><br />亞洲當代藝術及中國二十世紀藝術晚間拍賣，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2725_1'] = "<strong>CHU TEH-CHUN (ZHU DEQUN, B.1920)</strong><br /><em>Lumieres ardentes</em><br />oil on canvas<br />Painted in 1990 <br />Estimate: HK$600,000 – $800,000<br /><br />朱德群 (生於1920年)<br />烈焰之光<br />1990年作<br />油彩 畫布<br />估價： 港幣600,000 – 800,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Chinese 20th Century Art (Day Sale)<br /><br />中國二十世紀藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2730_1'] = "A MAGNIFICENT AND IMPORTANT OCTAGONAL INLAID MOTHER-OF-PEARL LACQUER BOX AND COVER<br />Yuan Dynasty (1279-1368)<br />14 1/8 in. (36 cm.) wide; 9 3/16 in. (23.4 cm.) high<br />Estimate on request<br /><br />元 黑漆嵌螺鈿廣寒宮群仙宴樂圖八方蓋盒<br />14 1/8 吋 (36 公分) 闊<br />9 3/16 吋 (23.4 公分) 高<br />估價待詢<br /><br />To be sold 1 December 2009, Hong Kong<br />Important Chinese Lacquer from the Lee Family Collection, Part II<br /><br />千文萬華 ─ 李氏家族重要漆器珍藏（II），香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2727_3'] = "<strong>WU CHANGSHUO (1844-1927)</strong><br /><em>Wisteria and Rock</em><br />hanging scroll, ink and color on paper<br />Dated 1904<br />Estimate: HK$1,000,000 – $1,500,000<br /><br />吳昌碩 (1844-1927)<br />珠光<br />設色紙本　立軸　 一九零四年作<br />估價: 港幣1,000,000 – 1,500,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Modern Paintings <br /><br />中國近現代畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Ben Kong<br />江炳強<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2728_1'] = "<strong>WEN ZHENGMING (1470-1559)</strong><br /><em>Calligraphy in Running Script (1st & 2nd leaves)</em><br />album of 49 leaves, ink on paper<br />Estimate: HK$1,500,000 – $2,000,000<br /><br />文徵明	(1470-1559)<br />行書 《離騷》(前兩開)<br />水墨紙本    冊頁共四十九開<br />估價: 港幣1,500,000 – 2,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Classical Paintings and Calligraphy <br /><br />中國古代書畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Kim Yu<br />游世勳<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2736_1'] = "AN EXQUISITE 5.00-CARAT CUSHION-SHAPED FANCY VIVID PINK POTENTIALLY FLAWLESS TYPE IIA DIAMOND RING, BY GRAFF<br />Estimate: HK$39,000,000 – $55,000,000 <br /><br />稀世珍貴5.00克拉IIa型枕形瑩彩粉紅彩鑽戒指，Graff設計<br />估價：港幣39,000,000 – 55,000,000 <br /><br />To be sold 1 December 2009, Hong Kong<br />Jewels: The Hong Kong Sale<br /><br />瑰麗珠寶及翡翠首飾，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Vickie Sek<br />石麗華<br /><a href='mailto:vsek@christies.com'>vsek@christies.com</a>"

captions['2730_3'] = "TWO MING CARVED POLYCHROME LACQUER STATIONERY CHESTS<br />Jiajing Period (1522-1566)<br />Each 9 3/4 x 10 5/8 x 7 1/2 in. (24.7 x 27 x 19 cm.)<br />HK$4,000,000 – $6,000,000<br /><br />明嘉靖  剔彩雙鳳蓮花、四季花卉長方匣各一   <br />各9 3/4 x 10 5/8 x 7 1/2 吋 (24.7 x 27 x 19 公分)<br />估價：港幣4,000,000 – 6,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Important Chinese Lacquer from the Lee Family Collection, Part II<br /><br />千文萬華 ─ 李氏家族重要漆器珍藏（II），香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2725_2'] = "<strong>T'ING YIN-YUNG (DING YANYONG, 1902-1978)</strong><br /><em>Mask</em><br />oil on board<br />Painted in 1955<br />Estimate: HK$150,000 – $200,000<br /><br />丁衍庸 (1902-1978)<br />面具<br />1955年作 (民國44年作)<br />油彩 木板<br />估價： 港幣150,000 – 200,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Chinese 20th Century Art (Day Sale)<br /><br />中國二十世紀藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2725_3'] = "<strong>LIN FENGMIAN (1900 – 1991)</strong><br /><em>Autumn Twilight in a Forest</em><br />heavy colour on paper mounted on paper board<br />Painted in the 1960s<br />Estimate: HK$600,000 – $1,000,000<br /><br />林風眠  (1900 – 1991)<br />秋林暮艷<br />1960年代作<br />重彩 紙本 裱於紙板<br />估價：港幣600,000 – 1,000,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Chinese 20th Century Art (Day Sale)<br /><br />中國二十世紀藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2730_2'] = "A MAGNIFICENT EARLY MING LARGE CARVED CINNABAR LACQUER SQUARE TRAY<br />Hongwu Period (1368-1398)<br />15 3/4 in. (40 cm.) wide<br />Estimate: HK$10,000,000 – $15,000,000<br /><br />明洪武  剔紅遊歸圖委角方盤  <br />15 3/4 吋 (40 公分) 闊<br />估價：港幣10,000,000 – 15,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Important Chinese Lacquer from the Lee Family Collection, Part II<br /><br />千文萬華 ─ 李氏家族重要漆器珍藏（II），香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2727_4'] = "<strong>XU BEIHONG (1895-1953)</strong><br /><em>Eagle</em><br />hanging scroll, ink and color on paper<br />Estimate: HK$700,000 – $900,000 <br /><br />徐悲鴻 (1895-1953)　　<br />飛鷹　　　　<br />設色紙本　立軸　一九四四年作<br />估價: 港幣700,000 – 900,000 <br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Modern Paintings <br /><br />中國近現代畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Ben Kong<br />江炳強<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2728_2'] = "<strong>HUA YAN (1682-1756)</strong><br /><em>Lotus Pond</em><br />ink and colour on silk<br />Dated 1762<br />Estimate: HK$2,000,000 – $3,000,000<br /><br />清    華喦 (1682-1756)     <br />  荷塘    <br />設色絹本    一七二六年作<br />估價: 港幣2,000,000 – 3,000,000    <br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Classical Paintings and Calligraphy <br /><br />中國古代書畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Kim Yu<br />游世勳<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2736_3'] = "AN EXCEPTIONAL 16.65-CARAT CUSHION-SHAPED KASHMIR SAPPHIRE RING, BY VAN CLEEF & ARPELS<br />Estimate: HK$5,600,000 – $8,000,000 <br /><br />典雅瑰麗16.65克拉枕形喀什米爾藍寶石戒指，Van Cleef & Arpels設計<br />估價：港幣5,600,000 – 8,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Jewels: The Hong Kong Sale<br /><br />瑰麗珠寶及翡翠首飾，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Vickie Sek<br />石麗華<br /><a href='mailto:vsek@christies.com'>vsek@christies.com</a>"

captions['2735_2'] = "GREUBEL FORSEY, INVENTION PIECE 1<br />White gold hand-wound 3-day-going double tourbillon wristwatch with power reserve indication, limited edition of 11<br />Manufactured in 2006<br />Estimate: HK$2,200,000 – $3,000,000<br /><br />Greubel Forsey鉑金雙陀飛輪，３天動力儲存手動上鍊腕錶，限量生產11枚，型號Invention Piece 1，2006年製<br />估價：港元2,200,000 – 3,000,000<br /><br />To be sold 2 December 2009, Hong Kong<br />Important Watches<br /><br />精緻名錶，香港會議展覽中心<br />將於12月2日拍賣<br /><br />Contact:<br />Tim Bourne<br /><a href='mailto:watcheshk@christies.com'>watcheshk@christies.com</a>"

captions['2721_4'] = "<strong>YUNIZAR (B. INDONESIA 1971)</strong><br /><em>Museum of Contemporary Art, Talawi</em><br />acrylic on canvas <br />Estimate: HK$240,000 – $400,000<br /><br />尤尼紮 (1971年生於印尼) <br />當代美術館<br />估價: 港幣240,000 – 400,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Southeast Asian Modern & Contemporary Art<br /><br />東南亞現代及當代藝術，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Ruoh-Ling Keong<br />龔若靈<br /><a href='mailto:rkeong@christies.com'>rkeong@christies.com</a>"

captions['2727_2'] = "<strong>QI BAISHI (1863-1957)</strong><br /><em>Spring Landscape</em><br />hanging scroll, ink on paper<br />Dated 1922<br />Estimate: HK$1,500,000 – $2,000,000<br /><br />齊白石 (1863-1957)　<br />春雨人家<br />水墨紙本　立軸 &nbsp;一九二二年作 <br />估價: 港幣1,500,000 – 2,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Modern Paintings <br /><br />中國近現代畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Ben Kong<br />江炳強<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2721_3'] = "<strong>LE PHO (VIETNAM 1907-FRANCE 2001)</strong><br /><em>Lady combing her hair</em><br />gouache, watercolour and pencil on silk laid down on cardboard<br />Estimate: HK$320,000 – $480,000<br /><br />黎譜 (1907-2001)<br />梳妝<br />估價: 港幣320,000 – 480,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Southeast Asian Modern & Contemporary Art<br /><br />東南亞現代及當代藝術，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Ruoh-Ling Keong<br />龔若靈<br /><a href='mailto:rkeong@christies.com'>rkeong@christies.com</a>"

captions['2726_3'] = "<strong>KEI HIRAGA (1936 – 2000)</strong><br /><em>Tsujicho</em><br />acrylic on canvas<br />Painted in 1986<br />Estimate HK$180,000 – $260,000<br /><br />平賀敬 (1936 – 2000)<br />料亭「辻兆」 厨房風景<br />1986年作<br />壓克力 畫布<br />估價：港幣180,000 – 260,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Asian Contemporary Art (Day Sale)<br /><br />亞洲當代藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2731_3'] = "A PAIR OF <em>HUANGHUALI </em> YOKE-BACK ARMCHAIRS<br />Yongzheng Period (1723-35)<br />42 3/8 x 23 x 21 5/8 in. (107.6 x 58.5 x 55 cm.)<br />HK$1,800,000 – $3,000,000<br /><br />清雍正  黃花梨嵌瘿木南官帽椅一對<br />42 3/8 x 23 x 21 5/8 吋 (107.6 x 58.5 x 55 公分)<br />估價：港幣1,800,000 – 3,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Fine Chinese Ceramics and Works Of Art<br /><br />重要中國瓷器及工藝精品，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2722_2'] = "<strong>ZAO WOU-KI (B. 1920)</strong><br /><em>Paysage ou sans titre</em><br />oil on canvas<br />Estimate: HK$3,000,000 – $5,000,000<br /><br />趙無極 (生於1920年)<br />無題(風景)<br />油彩 畫布<br />估價：港幣3,000,000 – 5,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Asian Contemporary Art & Chinese 20th Century Art (Evening Sale)<br /><br />亞洲當代藝術及中國二十世紀藝術晚間拍賣，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2731_4'] = "A FINE AND VERY RARE <em>DOUCAI</em> 'BOYS' JAR<br />Qianlong six-character sealmark and of the period (1736-1795)<br />3 5/8 in. (9.2 cm) high<br />HK$3,000,000 – $5,000,000<br /><br />清乾隆 鬥彩加粉彩吉慶有餘嬰戲圖罐  六字篆書款<br />3 5/8 吋 (9.2 公分) 高<br />估價：港幣3,000,000 – 5,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Fine Chinese Ceramics and Works Of Art<br /><br />重要中國瓷器及工藝精品，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2722_3'] = "<strong>YUN GEE (1906-1963)</strong><br /><em>The Last Supper</em><br />oil on canvas, triptych<br />Painted in 1933<br />Estimate: HK$4,000,000 – $6,000,000<br /><br />朱沅芷 (1906-1963)<br />最後的晚餐<br />1933年作<br />油彩 畫布 (三聯作)<br />估價：港幣4,000,000 – 6,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Asian Contemporary Art & Chinese 20th Century Art (Evening Sale)<br /><br />亞洲當代藝術及中國二十世紀藝術晚間拍賣，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2720_1'] = "1 JEROBOAM OF 1949 CHÂTEAU LAFITE ROTHSCHILD <br />Estimate: HK$180,000 – $240,000 <br />1 IMPERIAL OF 1949 CHÂTEAU CALON SÉGUR <br />Estimate: HK$70,000 – $100,000 <br />12 BOTTLES 1949 CHÂTEAU COS D'ESTOURNEL <br />Estimate: HK$90,000 – $120,000 <br /><br />1949年拉斐莊5公升瓶<br />估價：港幣180,000 – 240,000 <br />1949年卡隆莊6公升瓶<br />估價：港幣70,000 – 100,000 <br />1948年高斯戴斯圖内莊12瓶<br />估價：港幣90,000 – 120,000<br /><br />To be sold 28 November 2009, Hong Kong<br />Finest & Rarest Wines<br /><br />頂極珍貴名酒，香港會議展覽中心<br />將於11月28日拍賣<br /><br />Contact:<br />Michael Au<br />區俊康<br /><a href='mailto:mau@christies.com'>mau@christies.com</a>"

captions['2721_2'] = "<strong>VICENTE SILVA MANANSALA (THE PHILIPPINES 1910-1981)</strong><br /><em>The musicians</em><br />oil on canvas<br />Estimate: HK$600,000 – $800,000<br /><br />維參特‧馬南薩拉 (菲律賓 1910-1981)<br />音樂家<br />估價: 港幣600,000 – 800,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Southeast Asian Modern & Contemporary Art<br /><br />東南亞現代及當代藝術，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Ruoh-Ling Keong<br />龔若靈<br /><a href='mailto:rkeong@christies.com'>rkeong@christies.com</a>"

captions['2736_2'] = "A SUPERB 9.03-CARAT OVAL-SHAPED FANCY VIVID YELLOW VVS1 DIAMOND RING, BY GRAFF<br />Estimate: HK$7,200,000 – $9,000,000  <br /><br />閃爍奪目9.03克拉橢圓形鮮彩黃色彩鑽戒指，Graff設計<br />估價：港幣7,200,000 – 9,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Jewels: The Hong Kong Sale<br /><br />瑰麗珠寶及翡翠首飾，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Vickie Sek<br />石麗華<br /><a href='mailto:vsek@christies.com'>vsek@christies.com</a>"

captions['2725_4'] = "<strong>YAN WENLIANG (1893-1990)</strong><br /><em>Snowy Night</em><br />oil on canvas<br />Estimate: HK$600,000 – $800,000<br /><br />顏文樑 (1893-1990)<br />冷月<br />油彩 畫布<br />估價： 港幣600,000 – 800,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Chinese 20th Century Art (Day Sale)<br /><br />中國二十世紀藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2726_1'] = "<strong>HONG KYOUNG TACK (B. 1968)</strong><br /><em>Skull</em><br />acrylic, oil on linen<br />Painted in 2008<br />Estimate HK$500,000 – $800,000<br /><br />弘京澤  (生於1968年)<br />頭顱<br />2008年作<br />壓克力 油彩 麻布<br />估價：港幣500,000 – 800,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Asian Contemporary Art (Day Sale)<br /><br />亞洲當代藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2731_1'] = "A MAGNIFICENT WHITE JADE WATER BUFFALO<br />Qianlong Period (1736-1795)<br />10 5/8in. (27 cm.) wide<br />Estimate on request<br /><br />清乾隆  白玉臥牛<br />10 5/8 吋 (27 公分) 闊<br />估價待詢<br /><br />To be sold 1 December 2009, Hong Kong<br />Fine Chinese Ceramics and Works Of Art<br /><br />重要中國瓷器及工藝精品，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2726_4'] = "<strong>HIROSHI KOBAYASHI</strong><br /><em>Step into the Mist</em><br />acrylic on canvas<br />Painted in 2008<br />Estimate HK$400,000 – $600,000<br /><br />小林浩<br />迷霧之中<br />2008年作<br />壓克力 畫布<br />估價：港幣400,000 – 600,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Asian Contemporary Art (Day Sale)<br /><br />亞洲當代藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2727_1'] = "<strong>ZHANG DAQIAN (1899-1983)</strong><br /><em>Journey to Highway Hengguan</em><br />hanging scroll, ink and colour on paper<br />Estimate: HK$2,000,000 – $3,000,000<br /><br />張大千 (1899-1983)	<br />看山須看故山青    <br />設色紙本　立軸<br />估價: 港幣2,000,000 – 3,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Modern Paintings <br /><br />中國近現代畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Ben Kong<br />江炳強<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2720_2'] = "12 BOTTLES OF CHÂTEAU LAFITE ROTHSCHILD 1990 <br />Estimate: HK$65,000 – $80,000<br /><br />1990年拉斐莊12瓶<br />估價：港幣65,000 – 80,000<br /><br />To be sold 28 November 2009, Hong Kong<br />Finest & Rarest Wines<br /><br />頂極珍貴名酒，香港會議展覽中心<br />將於11月28日拍賣<br /><br />Contact:<br />Michael Au<br />區俊康<br /><a href='mailto:mau@christies.com'>mau@christies.com</a>"

captions['2736_4'] = "THE CARTIER DIAMOND LOVE CUFF<br />Estimate: HK$2,000,000 – $3,000,000  <br /><br />高貴經典卡地亞Love鑽石手鐲<br />估價：港幣2,000,000 – 3,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Jewels: The Hong Kong Sale<br /><br />瑰麗珠寶及翡翠首飾，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Vickie Sek<br />石麗華<br /><a href='mailto:vsek@christies.com'>vsek@christies.com</a>"

captions['2730_4'] = "A RARE LARGE FLORAL-LOBED BLACK LACQUER 'CAMELLIA' DISH<br />Yuan Dynasty, 14th century<br />12 1/2 in. (31.7 cm.) diam.<br />HK$1,500,000 – $2,000,000<br /><br />元  剔黑茶花葵口盤<br />12 1/2 吋 (31.7 公分) 直徑<br />估價：港幣1,500,000 – 2,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Important Chinese Lacquer from the Lee Family Collection, Part II<br /><br />千文萬華 ─ 李氏家族重要漆器珍藏（II），香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2721_1'] = "<strong>ADRIEN-JEAN LE MAYEUR DE MERPRÈS (BELGIUM 1880-1958)</strong><br /><em>Balinese beauties on the shore</em><br />oil on canvas <br />Estimate: HK$1,500,000 – $2,500,000<br /><br />勒邁耶 (比利時1880-1958)<br />沙灘上的少女們<br />估價: 港幣1,500,000 – 2,500,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Southeast Asian Modern & Contemporary Art<br /><br />東南亞現代及當代藝術，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Ruoh-Ling Keong<br />龔若靈<br /><a href='mailto:rkeong@christies.com'>rkeong@christies.com</a>"

captions['2726_2'] = "<strong>KIM TSCHANG YEUL (B.1929)</strong><br /><em>Water Drops</em><br />oil on hemp<br />Painted in 1975<br />Estimate HK$1,200,000 – $1,800,000<br /><br />金昌烈 (生於1929年)<br />水滴<br />1975年作<br />油彩 麻布<br />估價：港幣1,200,000 – 1,800,000<br /><br />To be sold 30 November 2009, Hong Kong<br />Asian Contemporary Art (Day Sale)<br /><br />亞洲當代藝術日間拍賣，香港會議展覽中心<br />將於11月30日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2731_2'] = "A VERY RARE MING BLUE AND WHITE 'BIRDS' STEMBOWL<br />Chenghua Period (1465-1487)<br />6 3/8 in. (16.2 cm.) diam.<br />HK$4,000,000 – $6,000,000<br /><br />明成化  青花花鳥紋高足盌<br />6 3/8 吋 (16.2 公分) 直徑<br />估價：港幣4,000,000 – 6,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Fine Chinese Ceramics and Works Of Art<br /><br />重要中國瓷器及工藝精品，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2735_1'] = "A LANGE & SÖHNE, TOURBOGRAPH 'POUR LE MÉRITE'<br />Platinum hand-wound rattrapante chronograph tourbillon wristwatch with fusée-and-chain transmission and power reserve indication, limited edition of 51<br />Manufactured in 2006<br />Estimate: HK$2,200,000 – $4,000,000<br /><br />朗格，鉑金陀飛輪備雙秒追針，動力儲存及30分鐘計時顯示，芝麻鏈傳動系統裝置，手動計時碼錶，限量生產51枚，型號Tourbograph ‘Pour le Mérite’，2006年製<br />估價：港元2,200,000 – 4,000,000<br /><br />To be sold 2 December 2009, Hong Kong<br />Important Watches<br /><br />精緻名錶，香港會議展覽中心<br />將於12月2日拍賣<br /><br />Contact:<br />Tim Bourne<br /><a href='mailto:watcheshk@christies.com'>watcheshk@christies.com</a>"

captions['2728_4'] = "<strong>ANONYMOUS (12th – 14th century)</strong><br /><em>Various Works by Masters from Song and Yuan Dynasties</em> (2 leaves out of 8)<br />eight album leaves, mounted and framed, ink and color on silk<br />Estimate: HK$5,000,000 – $6,000,000<br /><br />宋元掇英 (其中兩開) <br />設色絹本　冊頁共八開  鏡框<br />估價: 港幣5,000,000 – 6,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Classical Paintings and Calligraphy <br /><br />中國古代書畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Kim Yu<br />游世勳<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2720_4'] = "12 BOTTLES OF CHÂTEAU LATOUR 2000 <br />Estimate: HK$120,000 – $180,000<br /><br />2000年拉圖莊12瓶<br />估價：港幣120,000 – 180,000<br /><br />To be sold 28 November 2009, Hong Kong<br />Finest & Rarest Wines<br /><br />頂極珍貴名酒，香港會議展覽中心<br />將於11月28日拍賣<br /><br />Contact:<br />Michael Au<br />區俊康<br /><a href='mailto:mau@christies.com'>mau@christies.com</a>"

captions['2722_4'] = "<strong>PAIK NAM JUNE (1932-2006)</strong><br /><em>The Rehabilitation of Dschingis – Khan</em><br />mixed media, video sculpture with TV monitor, video player and neon <br />Executed in 1993<br />Estimate: HK$2,000,000 – $3,000,000<br /><br />白南準 (1932-2006)<br />成吉思汗的復興<br />1993年作<br />綜合媒材 錄影裝置 霓虹燈 雕塑<br />估價：港幣2,000,000 – 3,000,000<br /><br />To be sold 29 November 2009, Hong Kong<br />Asian Contemporary Art & Chinese 20th Century Art (Evening Sale)<br /><br />亞洲當代藝術及中國二十世紀藝術晚間拍賣，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Eric Chang<br />張丁元<br /><a href='mailto:acahk@christies.com'>acahk@christies.com</a>"

captions['2728_3'] = "<strong>FA RUOZHEN (1613-1696)</strong><br /><em>Autumn Landscape</em><br />hanging scroll, ink and colour on silk<br />Dated 1684<br />Estimate: HK$1,000,000 – $1,500,000<br /><br />清　 法若真 (1613-1696)<br />秋景山水<br />設色絹本　一六八四年作<br />估價: 港幣1,000,000 – 1,500,000    <br /><br />To be sold 29 November 2009, Hong Kong<br />Fine Chinese Classical Paintings and Calligraphy <br /><br />中國古代書畫，香港會議展覽中心<br />將於11月29日拍賣<br /><br />Contact:<br />Kim Yu<br />游世勳<br /><a href='mailto:chinesepaintings@christies.com'>chinesepaintings@christies.com</a>"

captions['2735_3'] = "PANERAI, LUMINOR 1950 TOURBILLON GMT, REF. PAM00306<br />Titanium hand-wound 6-day-going dual time double-axis tourbillon wristwatch with tourbillon indication, limited production of 150<br />Manufactured in 2008<br />Estimate: HK$400,000 – $700,000<br /><br />沛納海鈦金陀飛輪雙時區腕錶，限量生產150枚，型號Luminor 1950 Tourbillon GMT, PAM00306，2008年製<br />估價：港元400,000 – 700,000<br /><br />To be sold 2 December 2009, Hong Kong<br />Important Watches<br /><br />精緻名錶，香港會議展覽中心<br />將於12月2日拍賣<br /><br />Contact:<br />Tim Bourne<br /><a href='mailto:watcheshk@christies.com'>watcheshk@christies.com</a>"

captions['2720_3'] = "12 bottles of Château Pétrus 1990<br />Estimate: HK$280,000 - $380,000<br /><br />1990年柏翠莊12瓶 <br />估價：港幣280,000 - 380,000<br /><br />To be sold 28 November 2009, Hong Kong<br />Finest & Rarest Wines<br /><br />頂極珍貴名酒，香港會議展覽中心<br />將於11月28日拍賣<br /><br />Contact:<br />Michael Au<br />區俊康<br /><a href='mailto:mau@christies.com'>mau@christies.com</a>"

captions['2731_5'] = "A RARE <em>HUANGHUALI</em> FOUR-SHELF BOOKCASE, <em>JIAGE</em><br />Qianlong Period, 18th Century<br />57 1/2 x 34 1/8 x 15 1/4 in. (146 x 86.5 x 39 cm.)<br />Estimate: HK$1,800,000 - $3,000,000<br /><br />清乾隆  黃花梨雕圍子四層架格<br />57 1/2 x 34 1/8 x 15 1/4  吋 (146 x 86.5 x 39 公分)<br />估價：港幣1,800,000 - 3,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Fine Chinese Ceramics and Works Of Art<br /><br />重要中國瓷器及工藝精品，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2731_6'] = "A VERY RARE EARLY MING GILT-BRONZE SEATED FIGURE OF BHAISAJJYAGURU<br />Ming Dynasty, 15th Century<br />10 7/8 in. (27.8 cm.) high<br />HK$800,000 - $1,000,000<br /><br />明十五世紀  鎏金銅釋迦牟尼佛「藥師」坐像<br />10 7/8 吋 (27.8 公分) 高<br />估價：港幣 800,000 - 1,000,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Fine Chinese Ceramics and Works Of Art<br /><br />重要中國瓷器及工藝精品，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Pola Antebi<br />安蓓蕾<br /><a href='mailto:chnhk@christies.com'>chnhk@christies.com</a>"

captions['2736_5'] = "A PAIR OF STYLISH JADEITE EAR PENDANTS, BY WALLACE CHAN<br />Estimate: HK$1,200,000- $1,800,000<br /><br />風格獨特翡翠耳環一對，陳世英設計<br />估價：港幣1,200,000-1,800,000<br /><br />To be sold 1 December 2009, Hong Kong<br />Jewels: The Hong Kong Sale<br /><br />瑰麗珠寶及翡翠首飾，香港會議展覽中心<br />將於12月1日拍賣<br /><br />Contact:<br />Vickie Sek<br />石麗華<br /><a href='mailto:vsek@christies.com'>vsek@christies.com</a>"

captions['2735_4'] = "PATEK PHILIPPE REF. 5004G<br />White gold hand-wound perpetual calendar split-seconds chronograph wristwatch with leap year, moon phase display<br /><br />Estimate: HK$1,200,000 – $1,600,000<br /><br />百達翡麗，白金萬年曆，閏年及月相顯示，雙秒針計時碼錶，型號5004G<br /><br />估價：港元1,200,000 – 1,600,000<br /><br />To be sold 2 December 2009, Hong Kong<br />Important Watches<br /><br />精緻名錶，香港會議展覽中心<br />將於12月2日拍賣<br /><br />Contact:<br />Tim Bourne<br /><a href='mailto:watcheshk@christies.com'>watcheshk@christies.com</a>"


function hidePop(){
	document.getElementById('enlarge').style.visibility = 'hidden';
	//document.getElementById('contact_view').style.visibility = 'hidden';
}

if(!Array.indexOf){
	Array.prototype.indexOf = function(obj, start){
	for(var i=(start||0); i<this.length; i++){
		if(this[i]==obj){
			return i;
		}
	}
	}
}

			
//popup function, gets passed id of the image that was clicked
function show_lot(lot){
	if (agt.indexOf("safari") != -1){
			var rolled_img 	= document.getElementById(lot);
			var source 		= rolled_img.src.lastIndexOf('/') + 1;
			var image_path 	= rolled_img.src.substring(0,source);
			var fileSrc 	= rolled_img.src.substring(source);
			var spot 		= (fileSrc.length - 5);
			
			var newSrc  	= fileSrc.substring(0,spot);
			if(fileSrc.substr(fileSrc.lastIndexOf('_')+1,2) == 'on'){
					rolled_img.src = (image_path+newSrc + 'ff.jpg');
			}
	}
	if(getOpacity(document.getElementById(lot).getAttribute('id')) < 90) return false;
	
	document.getElementById('caption').innerHTML = captions[lot];
	document.getElementById('enlarge').style.visibility = 'visible';
	document.getElementById('image_large').innerHTML = '<img src="images/full/'+lot+'.jpg" alt="">';
	
	//select case to display artist name range or city
	switch (showing){
		case '2722': 	{ 
			
			
			var spot = parseInt(show2722.indexOf(lot)) + 1;

			if(spot == 1){
				var prev = show2722[show2722.length-1];
			} else {
				var prev = show2722[spot - 2];
			}
			if(spot == show2722.length){
				var next = show2722[0];
			} else {
				var next = show2722[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Asian Contemporary Art & Chinese 20th Century Art (Evening Sale): '+spot+' of '+show2722.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); return false; };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); return false; };
			break 
		}
		case '2725': 	{ 
			var spot = parseInt(show2725.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2725[show2725.length-1];
			} else {
				var prev = show2725[spot - 2];
			}
			if(spot == show2725.length){
				var next = show2725[0];
			} else {
				var next = show2725[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Chinese 20th Century Art (Day Sale): '+spot+' of '+show2722.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
		}
		case '2726': 	{ 
			var spot = parseInt(show2726.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2726[show2726.length-1];
			} else {
				var prev = show2726[spot - 2];
			}
			if(spot == show2726.length){
				var next = show2726[0];
			} else {
				var next = show2726[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Asian Contemporary Art (Day Sale): '+spot+' of '+show2726.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
		}
		case '2727': 	{ 
			var spot = parseInt(show2727.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2727[show2727.length-1];
			} else {
				var prev = show2727[spot - 2];
			}
			if(spot == show2727.length){
				var next = show2727[0];
			} else {
				var next = show2727[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Fine Chinese Modern Paintings: '+spot+' of '+show2727.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
			
		}
		case '2728':	{ 
			var spot = parseInt(show2728.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2728[show2728.length-1];
			} else {
				var prev = show2728[spot - 2];
			}
			if(spot == show2728.length){
				var next = show2728[0];
			} else {
				var next = show2728[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Fine Chinese Classical Paintings and Calligraphy: '+spot+' of '+show2728.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
			
		}
		case '2721': 	{ 
			var spot = parseInt(show2721.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2721[show2721.length-1];
			} else {
				var prev = show2721[spot - 2];
			}
			if(spot == show2721.length){
				var next = show2721[0];
			} else {
				var next = show2721[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Southeast Asian Modern and Contemporary Art: '+spot+' of '+show2721.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
			
		}
		case '2730':	{ 
			var spot = parseInt(show2730.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2730[show2730.length-1];
			} else {
				var prev = show2730[spot - 2];
			}
			if(spot == show2730.length){
				var next = show2730[0];
			} else {
				var next = show2730[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Important Chinese Lacquer from the Lee Family Collection, Part II: '+spot+' of '+show2730.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
			
		}
		case '2736':	{ 
			var spot = parseInt(show2736.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2736[show2736.length-1];
			} else {
				var prev = show2736[spot - 2];
			}
			if(spot == show2736.length){
				var next = show2736[0];
			} else {
				var next = show2736[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Jewels: The Hong Kong Sale: '+spot+' of '+show2736.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
		}
		case '2731':	{ 
			var spot = parseInt(show2731.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2731[show2731.length-1];
			} else {
				var prev = show2731[spot - 2];
			}
			if(spot == show2731.length){
				var next = show2731[0];
			} else {
				var next = show2731[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Fine Chinese Ceramics and Works of Art: '+spot+' of '+show2731.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
			
		}
		case '2735':	{ 
			var spot = parseInt(show2735.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2735[show2735.length-1];
			} else {
				var prev = show2735[spot - 2];
			}
			if(spot == show2735.length){
				var next = show2735[0];
			} else {
				var next = show2735[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Important Watches: '+spot+' of '+show2735.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
			
		}
		case '2720':	{ 
			var spot = parseInt(show2720.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = show2720[show2720.length-1];
			} else {
				var prev = show2720[spot - 2];
			}
			if(spot == show2720.length){
				var next = show2720[0];
			} else {
				var next = show2720[spot];
			}
			
			document.getElementById('caption_current').innerHTML = 'Finest and Rarest Wines: '+spot+' of '+show2720.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			break 
			
		}
		default: 	{ 
			var spot = parseInt(showAll.indexOf(lot)) + 1;
			if(spot == 1){
				var prev = showAll[showAll.length-1];
			} else {
				var prev = showAll[spot - 2];
			}
			if(spot == showAll.length){
				var next = showAll[0];
			} else {
				var next = showAll[spot];
			}
					
			document.getElementById('caption_current').innerHTML = spot+' of '+showAll.length;
			document.getElementById('next_link').onclick = function(){ show_lot(next); };
			document.getElementById('previous_link').onclick = function(){ show_lot(prev); };
			//document.getElementById('caption_next').innerHTML = '<a href="javascript:show_lot(\''+next+'\')">next &gt;</a>';
			//document.getElementById('caption_previous').innerHTML = '<a href="javascript:show_lot(\''+prev+'\')">&lt; previous</a>';
			break 
		}
	}
}
