// JavaScript Document
// page_functions.js
// General page setup functions
// Global Variables
// if gnoCache = true then add random numbers to end of URLs to force load of uncached data
// if gnoCache = false, then don't
var gnoCache = false;
var gdisableRightClick = true;

// gcurrent_page_ID is set to page to be displayed at load
// gcurrent_page_text is true if that page has text box associated with it, false otherwise 
var gcurrent_page_ID = '#sspage1';
var gcurrent_page_text = true;

var ocurrent_page = new Object();
ocurrent_page.page_ID = gcurrent_page_ID;
ocurrent_page.bottom_text = gcurrent_page_text;
// 
// -------------------------------------------------------------------------------------------------------------------------------------
// Writes code to show footer ----------------------------------------------------------------------------------------------------------
function Footer(){
	pvar = ""   // left over from multi-level structure
document.write('<div id = "footer_topbox">');
document.write('<a target="_self" href="\/find_us.html"><div id = "footer_leftbox">');
document.write('<p style = "font-size:14px;">26 S. King St.  Hampton, VA<br \/>Open Tue - Sat&nbsp; 10am - 5:30pm<br\/>Sunday Noon - 5pm<br\/>Closed Mondays<br\/>757.727.0028<\/p>');
document.write('<\/div><\/a>'); // footer_leftbox
document.write('<a target = "_new" href="http:\/\/www.facebook.com\/pages\/Blue-Skies-Gallery\/361226295184?v=wall">');
document.write('<div id = "footer_rightbox">');
document.write('<div id = "footer_img_box">');
document.write('<img src= "images\/fblogo.png" width="40px" alt="Blue Skies Gallery on FaceBook">');
document.write('<\/div>');  // img_box
document.write('<h2>See us on<br \/>FaceBook<\/h2>');
document.write('<\/div><\/a>');  // footer_rightbox
document.write('<a target = "_new" href="http:\/\/www.blueskiesart.blogspot.com">');
document.write('<div id = "footer_rightbox">');
document.write('<div id = "footer_img_box">');
document.write('<img src= "images\/BSG_favicon_Edit.png" width="40px" alt="Blue Skies Gallery Blog">');
document.write('<\/div>');  // img_box
document.write('<h2>Visit Our<br \/>Blog<\/h2>');
document.write('<\/div><\/a>');  // footer_rightbox
document.write('<\/div>'); // footer_topbox 
document.write('<div id="footer" style = "margin-top:0px;"   >'); 
document.write('<table width="95%" cellpadding="10">');
document.write('<tr>');
document.write('    <td valign="top" align="left" width="30%">&nbsp;&nbsp;&nbsp;&nbsp;<a href="contact_us.html">');
document.write('Email Us<\/a>&nbsp;<p style="padding-top:15px;"> <a target = "_new" href="http:\/\/www.downtownhampton.com\/">');
document.write('        <img style="padding-top:5px; padding-bottom:3px; background:white;", src="images\/smldhdp.jpg"><\/p><\/a>&nbsp;');
document.write('    <\/td>');
document.write('    <td align="center" ><p style="font-size:.8em; text-align:center; font-weight:bold;">Copyright &#169;  Blue Skies Gallery, All rights reserved. <br \/>');
document.write('	No portion of this site may be copied <br \/>without the written permission of');
document.write('	<br \/>Blue Skies Gallery and the respective artists.<br \/><\/p>');
document.write('');
document.write('    <\/td>');
document.write('    <td width="30%" valign="top" align="right"><b>Get Rewarded:&nbsp;<\/b><br \/>Receive Blue Skies news<\/b>');

document.write('	<form name="footer_eform"  onSubmit = "return footer_send_email(\'footer_eform\');"\/> ');
document.write('	<input id = "footer_email" name = "email" type="text"  size="20" value="Your Email Address" style="border:1px solid #999999"\/>');
document.write('	<input id = "footer_email_submit" type = "submit" name="submit" value="GO"\/ >');
document.write('	<\/form>');
document.write('	<div style = "width:auto; height 30px;"><\/div>');
document.write('	<a href = "http:\/\/www.aeiwebdevelopment.com" target="_blank"> <br\/>Website by<br\/>AEI Web Development.<\/a>');
document.write('    <\/td>');
document.write('<\/tr>');
document.write('<\/table>');
document.write('<\/div> <!-- end #footer -->');
}
// ------------------------------------------------------------------------------------------------------------------------
// Menubar ----------------------------------------------------------------------------------------------------------------
// JavaScript Document
// These programs generate the menu bar and populate the buttons with the appropriate information
// RCH  4/6/2011
// ------------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------
// Data for menubar
// format is ['pathname','artist name']
// e.g. Jan Austin's data is found at /ceramics/austin
//
//var ceramics_list = [
//var fiber_list = [
//var glass_list = [
//var jewelry_list = [
//var painting_list = [
//var painting_list = [
//var sculpture_list = [
//var wallart_list = [

var ceramics_list = [
				['austin','Jan Austin'],				
				['bastinelli','Susan Bastinelli'],
				['christie','Daniel Christie'],
				['fletcher','David Fletcher'],
				['krome','Elizabeth Krome'],
				['malebranche','Genez Malebranche'],
				['tanaka','Akiko Tanaka'],
				['turner','Marshall Turner']
				];
var fiber_list = [
				['baxter','Anne Baxter'],
				['dobratz','Noreen Dobratz'],
				['harrison','Jean Harrison'],
				['pascuzzi','Chris Pascuzzi'],
				['pressick','Karen Pressick']
				];
var glass_list = [
				['abrams','Ron Abrams'],
				['crosby','Bill Crosby'],
				['welteroth','Susan Welteroth'],
				['wooldridge','Kathy Wooldridge']
				];			
var jewelry_list = [
				['bolden','Kay Bolden'],
				['decker','Milica Decker'],
				['fuller','Kazuko Fuller'],
				['giere','Nancy Giere'],
				['haracivet','Brownie Haracivet'],
				['king','Milyn King'],
				['mosser','Lisa Mosser'],
				['murray','Christine Murray'],
				['olsen','Fran Olsen'],
				['poor','Deborah Poor'],
				['rossd','Deborah Ross'],				
				['thayer','Leslie Thayer'],
				['yakovac','Valerie Yakovac']
				];
var painting_list = [
				['barnes','Michael Barnes'],
				['cotten','Joanne Cotten'],				
				['cox-joseph','Terry Cox-Joseph'],
				['dees','Jim Dees'],
				['dietrick','Laura Tovar Dietrick'],
				['faleski','Stephanie Faleski'],
				['hobler','Bill Hobler'],
				['hood','P. Carter-Hood'],
				['howard','Jo Howard'],
				['jensen','Ron Jensen'],
				['kearney','Nancy Kearney'],
				['marshall','Juliette Marshall'],
				['meminger','Gerome Meminger'],
				['shacochis','Sharon Shacochis'],
				['timberlake','Joyce Timberlake'],
				['turner','Susan Turner'],
				['walters','Vernon Walters'],
				['webb','Lauren Webb']
				];
var photography_list = [
				['abrahamson','Jeff Abrahamson'],
				['butler','John Butler'],
				['cairns','Todd D. Cairns'],
				['gammon','Jerry Gammon'],
				['harris','Sherry Harris'],
				['hart','Roger Hart']
				];
var sculpture_list = [
				['mcgee','Harriet McGee'],
				['mincheva','Ivanka Mincheva']		
				];
var wood_list = [
				['mcintire','David McIntire'],
				['mosserc','Chuck Mosser'],
				['richardson','Jack Richardson'],
				['rountree','Ray Rountree']
				];
																																	
/* ==========================================================================*/   
function write_one_column(medium,artist_list ) {
						for(i=0;i<artist_list.length;i++) {
						document.write('				<li>   ');
						document.write(' <a href="#" onclick = "load_new_page(\''+medium+'\/'+artist_list[i][0]+'\')">'+artist_list[i][1]+'<\/a> ');
						document.write('				<\/li>  ');
						}		
}
/* ==========================================================================*/
function write_three_columns(medium,artist_list,column) {
	var xfer_list = ['',''];
	column -= 1;
	i = 0;
	do {
		xfer_list[i] = [artist_list[column][0],artist_list[column][1]];
		i++;
		column += 3;	
	}
	while (column < artist_list.length);
	write_one_column(medium,xfer_list);
	
}
/* ==========================================================================*/   
function menubar() {
document.write(' <div id="menubar_container"> ');
document.write('	<ul class="mb_dropdown"> ');
document.write('	<li id="left_end"><\/li>');     // Draws left endcap
/* ==========================================================================*/   
document.write('		<li class="mb_dropdown_trigger col_bsg" > ');
document.write('			<a href="index.html">Home<\/a>  ');  
document.write('			<ul>   ');  
document.write('				<li>   ');   
document.write('					<a href="about_us.html">About Us<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="our_artists.html">Our Artists<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="class_list.html">Classes<\/a>  ');
document.write('				<\/li>  ');

document.write('				<li>   ');
document.write('					<a href="find_us.html">Find Us<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="contact_us.html">Contact Us<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="join_us.html">Join Us<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="art_links.html">Art Links<\/a>  ');
document.write('				<\/li>  ');                
document.write('			<\/ul>   ');   
document.write('		<\/li>  ');
/* ==========================================================================*/          
document.write('		<li class="mb_dropdown_trigger col_bsg" > ');
document.write('			<a href="http://www.blueskiesart.blogspot.com" target="_blank">Our Blog<\/a>  ');  
document.write('			<ul>   ');  
document.write('				<li>   ');   
document.write('					<a href="http://blueskiesart.blogspot.com/p/news.html" target="_blank">News<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="http://blueskiesart.blogspot.com/p/events.html" target="_blank">Events<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="http://blueskiesart.blogspot.com/p/shows.html" target="_blank">Shows<\/a>  ');
document.write('				<\/li>  ');

document.write('				<li>   ');
document.write('					<a href="http://blueskiesart.blogspot.com/p/new-artists.html" target="_blank">New Artists<\/a>  ');
document.write('				<\/li>  ');
document.write('				<li>   ');
document.write('					<a href="http://blueskiesart.blogspot.com/p/new-class-page.html" target="_blank">Classes<\/a>  ');
document.write('				<\/li>  ');
//document.write('				<li>   ');
//document.write('					<a href="http://blueskiesart.blogspot.com/p/art-links.html" target="_blank">Art Links<\/a>  ');
//document.write('				<\/li>  ');                
document.write('			<\/ul>   ');   
document.write('		<\/li>  ');
/* ==========================================================================*/          
document.write('		<li class="mb_dropdown_trigger col_ceramics" >  ');
document.write('			<span class = "top_button">Ceramics<\/span> ');
document.write('			<ul>   ');

write_one_column('ceramics',ceramics_list);

document.write('			<\/ul>   ');
document.write('		<\/li>  ');
/* ==================================================================== */
document.write('		<li class="mb_dropdown_trigger col_fiber">  ');
document.write('			<span class = "top_button">Fiber<\/span> ');
document.write('			<ul>   ');

write_one_column('fiber',fiber_list);

document.write('			<\/ul>   ');
document.write('		<\/li>  ');
/* ==================================================================== */
document.write('		<li class="mb_dropdown_trigger col_glass">  ');
document.write('			<span class = "top_button">Glass<\/span> ');
document.write('			<ul>   ');

write_one_column('glass',glass_list);	
			
document.write('		<\/ul>   ');
document.write('		<\/li>  ');
/* ==================================================================== */
document.write('		<li class="mb_dropdown_trigger col_jewel">  ');
document.write('			<span class = "top_button">Jewelry<\/span> ');
document.write('			<ul>   ');

write_one_column('jewelry',jewelry_list);				               

document.write('			<\/ul>   ');
document.write('		<\/li>  ');
/* ====================================================================  */
document.write('		<li class="mb_dropdown_trigger col_paint">  ');
document.write('			<span class = "top_button">Painting<\/span> ');
document.write('			<ul id="mb_paint_col1">  ');

write_three_columns('painting',painting_list,1);

document.write('			<\/ul>   ');
document.write('			<ul id="mb_paint_col2">  ');

write_three_columns('painting',painting_list,2);

                                                                                                         
document.write('			<\/ul>   ');            
document.write('			<ul id="mb_paint_col3">  ');

write_three_columns('painting',painting_list,3);

                                                         
document.write('			<\/ul>   ');                                    
document.write('		<\/li>  ');        
/* ==================================================================== */
document.write('		<li class="mb_dropdown_trigger col_photo">  ');
document.write('			<span class = "top_button">Photography<\/span> ');
document.write('			<ul>   ');

write_one_column('photography',photography_list);
							
document.write(' 			<\/ul>   ');
document.write('		<\/li>  ');
/* ==================================================================== */
document.write('		<li class="mb_dropdown_trigger col_sculpt">  ');
document.write('			<span class = "top_button">Sculpture<\/span> ');
document.write('			<ul>   ');
				
write_one_column('sculpture',sculpture_list);
						
document.write('			<\/ul>   ');
document.write('		<\/li>  ');       
/* ==================================================================== */       
document.write('		<li class="mb_dropdown_trigger col_wall" >  ');
document.write('			<span class = "top_button">Wood<\/span> ');
document.write('			<ul id="mb_last_list">  ');

write_one_column('wood',wood_list);

document.write('			<\/ul>   ');
document.write('		<\/li>  ');
/* -- dropdown -- */
document.write('	<li id="right_end"><\/li>');     // Draws right endcap
document.write('	<\/ul>   ');  
document.write(' <\/div ');  
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ------------------------------------------------------------------------------------------------------------------------
// Menu bar code ends -----------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------
// Toggles the display of various items on the artists page to show 
// or hide the bio and top text
function show_text( text_state, text_box_id, gallery_id,link_id,top_text_id) {
        var tbox = document.getElementById(text_box_id);
		var pbox = document.getElementById(gallery_id);
		var lbox = document.getElementById(link_id);
		var toptext = document.getElementById(top_text_id);
		if(text_state) {
			tbox.style.display = "block";
			pbox.style.display = "none";
			lbox.style.display = "none";
			toptext.style.display = "none";
		}
		else {
			tbox.style.display = "none";
			pbox.style.display = "block";
			lbox.style.display = "block";	
			toptext.style.display = "block";		
			document.location.hash = "page_top";					
		}
	
}
/////////////////////////////////////////////////////////////////////////////////////////////
// returns n_images in image_data drawn at random from image_data_array
// if n_images = 0 retuns all images
function get_image_data(image_data_array,image_data,n_images,label_name) {
	
	if(cookies_enabled) {	
		  var cookie_data = get_cookie_data(label_name);
		  var ran_list = new Array();
			  if(cookie_data.length == 0) {    // if no entry create one
				  for(var i = 0; i<image_data_array.length; i++)
					  ran_list[i] = i;
			  if(n_images == 0) n_images = image_data_array.length;	  
				  ran_list = sort_random(ran_list);
				  ran_list = sort_random(ran_list);
				  ran_list = sort_random(ran_list);
				  ran_list = sort_random(ran_list);
				  cookie_data = ran_list.slice(0,n_images).join(',');
				  document.cookie = label_name + '=' + encodeURIComponent(cookie_data);
			  }
			  // Now one way or the other we have cookie data
			  ran_list = cookie_data.split(',');
			  for(var j = 0; j < ran_list.length; j++)
				  image_data[j] = image_data_array[ran_list[j]];
	} else {
			  for(var j = 0;j < image_data_array.length;j++)
					image_data[j] = image_data_array[j];
	}

	return image_data;	
}
function sort_random(sort_list) { return sort_list.sort(function() { return 0.5 - Math.random();}); }
/////////////////////////////////////////////////////////////////////////////////////////////
//Functions to handle Choose an Artist at Random 
//Generates a randomly-sorted list of numbers each of which corresponds to an artist entry
// in gartist_list. The last element stores the index into the array for the next
// choose an artist at random event
function set_random_cookie() {         // if no cookie then create one

	if(get_cookie_data('random').length == 0)
	{
		var ran_list = new Array();
		for(var i = 0; i < gartist_list.length;i++)	
			ran_list[i] = i;
		ran_list.sort(function(){ 
			return 0.5 - Math.random()
	});
	ran_list[ran_list.length] = 0;	
	document.cookie = "random="+ encodeURIComponent(ran_list.join(','));
	}
	
}
//////////////////////////////////////////////////////////////////////////////////////////////
//If cookies are enablesd
// Retrieves random cookie, increments index, loads artist page for current index
// If cookies not enabled picks at random from artist_list
function load_random_artist(artist_list) {

	if(cookies_enabled) {
		var rlist = new Array();
		rlist = get_cookie_data('random').split(',');
		var next_index = parseInt(rlist[rlist.length-1]);	
		rlist[rlist.length-1] = (next_index == rlist.length-1)?0:next_index+1;
		document.cookie = "random="+encodeURIComponent(rlist.join(','));
		var next_artist = rlist[next_index];
	}
	else { next_artist = Math.floor(Math.random()*artist_list.length);}
	
	load_new_page(artist_list[next_artist].medium + '\/' + artist_list[next_artist].lastname);		
	
}
//////////////////////////////////////////////////////////////////////////////////////////////
// Determines if cookies are enabled returns true if enabled, false otherwise
function cookiesEnabled() {
		document.cookie = "cookietest=1";
		if(document.cookie.length > 0) {
			document.cookie = 'cookietest=""';
			return  true;	
		} else 
			return false;
}
//////////////////////////////////////////////////////////////////////////////////////////////
// Calls artist slideshow when image in front page slideshow is clicked
function bind_image_handler(slideshowID,slideshowName){
			$('#'+slideshowID+'_inner').click(function() {

				// gets URL to current image
				var artist_path = slideshowName.return_artist_path();
				// now is URL to artists image directory
				artist_path = artist_path.slice(0,artist_path.lastIndexOf('/'));
				// now is medium/lastname
				artist_path = artist_path.slice(0,artist_path.lastIndexOf('/'));
				document.cookie = "ssexit=1";
				document.cookie = "imagenumber="+encodeURIComponent(slideshowName.return_image_number().toString());
				document.cookie = "runmode="+encodeURIComponent(slideshowName.return_run_mode().toString());			
				load_new_page(artist_path);
			});
	
}
// gets medium/lastname for prevously visted artist's pages
function get_referrer_path() {
		var hr_str = document.referrer;
		hr_str = decodeURIComponent(hr_str);
		hr_str = hr_str.slice(hr_str.indexOf("?t=")+3);
		hr_str = hr_str.slice(0,hr_str.indexOf("0"));
		return hr_str;			
}
//////////////////////////////////////////////////////////////////////////////////////////////
//
function bind_new_artist(artist_id,artist_path) {$('#'+artist_id).click(function() {load_new_page(artist_path);});}
		
function bind_link(link_id,link_target,prevent_default) {
		$('#'+link_id).click(function(e) {
			if(prevent_default) e.preventDefault();
			window.open(link_target,"_self",false);			
			});
}
function bind_pod_artist(artist_url) {
		$('#'+artist_url).click(function() {
			var artist_path = $('#'+artist_url).attr('src');
			artist_path = artist_path.slice(0,artist_path.indexOf('/',artist_path.indexOf('/')+1));
			load_new_page(artist_path);
		});
	
}
//////////////////////////////////////////////////////////////////////////////////////////////
function bind_left_buttons(buttonID,button_target) {
		$('#'+buttonID).click(function() {  
			$('div.left_button_float').removeClass('tb_on').addClass('tb_off');
			if(buttonID != 'lbutton_1')
				$('#'+buttonID).addClass('tb_on');			
			goToByScroll(button_target);		
		});
		$('#'+buttonID).hover(brb_mousein,brb_mouseout);
}
function goToByScroll(id) {	$('html,body').animate({scrollTop: $('#' + id).offset().top},1500);	}
//////////////////////////////////////////////////////////////////////////////////////////////
// Used to switch among front page slideshows
function bind_slideshow_handler(ss_button_map){
		var button_wrapper = $('.'+ss_button_map.button_class);
		var buttontxt = '';
		var buttonID = '';
		var cur_page_buttonID;
		var new_buttonID;
		button_wrapper.each(function() {
			buttonID = $(this).attr('id');
			$(this).removeClass('tb_on').addClass('tb_off').find('h1').html(ss_button_map[buttonID].button_text);
			$('#'+ss_button_map[buttonID].sspage).css('display','none');
			$('#'+ss_button_map[buttonID].sspage+'_text').css('display','none');
			$('#'+buttonID).hover(brb_mousein,brb_mouseout);		
			if(buttonID == ss_button_map.current_page)
				cur_page_buttonID = ss_button_map.current_page;
		});
		
		$('#'+cur_page_buttonID).removeClass('tb_off').addClass('tb_on');
		$('#'+ss_button_map[cur_page_buttonID].sspage).css('display','block');
		
		if(ss_button_map[cur_page_buttonID].sstext)
			$('#'+ss_button_map[cur_page_buttonID].sspage+'_text').css('display','block')
			
		button_wrapper.click(function() {
			button_wrapper.each(function(){
					button_wrapper.removeClass('tb_on').addClass('tb_off');
					
				});
			$(this).addClass('tb_on');
			new_buttonID = $(this).attr('id');
			ss_button_map = switch_page(ss_button_map,new_buttonID);
		});
};
function brb_mousein(){
	$(this).css('text-decoration','underline');
}
function brb_mouseout(){
	$(this).css('text-decoration','none');
}
function switch_page(ss_button_map,new_buttonID) {
	var new_page = ss_button_map[new_buttonID];
	var current_page = ss_button_map[ss_button_map.current_page];
	if(new_page.sspage != current_page.sspage) {
		if(current_page.sstext) {
			$('#'+current_page.sspage + '_text').slideUp(750);	
		}
		$('#'+current_page.sspage).slideUp(2000, function(){
	  		$('#'+new_page.sspage).delay(500).slideDown(2000, function(){
				if(new_page.sstext) {
					$('#'+new_page.sspage + '_text').css('display','block');
				}
				});	
		})
	}
	ss_button_map.current_page = new_buttonID;
	return ss_button_map;
}
//////////////////////////////////////////////////////////////////////////////////////////////
// random button no longer in use - too much trouble to remove all calls!
function bind_random_handler(buttonID) {
/*	
		$('#'+buttonID).click(function() { 
			load_random_artist(gartist_list)
		});
		$('#'+buttonID).hover(rb_mousein,rb_mouseout);
*/
return;		
}
function rb_mousein(){ $(this).css({'text-decoration':'underline','border-color':'white'});}
function rb_mouseout(){ $(this).css({'text-decoration':'none','border-color':'black'}); }
////////////////////////////////////////////////////////////////////////////////////////////////
function position_left_button_bar(top_button_container,left_button_div,button_offset) {
// Positions left fixed button bar on front page. Keeps bottom of bar at least button_offset.bottom_min pixels above the bottom of the window
// And the top a maximum of button__offset.top_max below the top of the window.
	var lpos = $('#'+top_button_container).offset().left - button_offset.left;
	var bpos = $(window).height() - button_offset.bottom_min;   // lower bound for position of bottom of button bar
	var toff =  $('#'+left_button_div).height();

	var toffset = bpos - toff;
	if(toffset > button_offset.top_max) toffset = button_offset.top_max;
	button_offset.top = toffset; 
	
	$('#'+left_button_div).css({ 'left':lpos,
								 'top': button_offset.top, 	
							 'display':'block'});
}
function bind_window_resize(top_button_container,left_button_div,button_offset) {
	$(window).resize( function() {
				position_left_button_bar(top_button_container,left_button_div,button_offset)
	})
}
// -------------------------------------------------------------------------------------------
// Called in menubar  sets cookie name cookie_name  with data path, opens page_name which can then read
// page specific data using data_path retrievied from cookie

function cookie_load_new_page(cookie_name,page_name, data_path) { 
	page_name = page_name  + "?t="+"ceramics/austin" + Math.random();
	alert(page_name);
 	document.cookie = cookie_name + "=" + data_path;
 	window.open(page_name,"_self",false);	
}
//-------------------------------------------------------------------------------------------
// Put information on which artist's data is wanted at end of URL and open new page
// gnoCache is global if true add random number to end of uri to force reload
function load_new_page(artist_path) {
	if(gnoCache) {
		var page_name = encodeURIComponent("t=" + artist_path + Math.random());
	}
	else {
		var page_name = encodeURIComponent("t=" + artist_path + "0");				
	}
	page_name = "artist_gallery.html?" + page_name;	
	window.open(page_name,"_self",false);
}
// ------------------------------------------------------------------------------------------
// From JavaScript Bible, p. 925
// returns pathname to data from cookie with name = label_name
function get_cookie_data(label_name) {
	var label_len = label_name.length;
	var cookie_data = document.cookie;
	var c_len = cookie_data.length;
	var i = 0;
	var c_end;
	while (i < c_len ) {
		var j = i + label_len;
		if(cookie_data.substring(i,j) == label_name) {
			c_end = cookie_data.indexOf(";",j);
			if(c_end == -1) {
			   c_end = cookie_data.length;	
			}
			return decodeURIComponent(cookie_data.substring(j+1, c_end));
		} // end if
		i++;
	} // end while 
	return "";	
}
//----------------------------------------------------------------------------------
function get_artist_path() {
		var hr_str = location.href;
		hr_str = decodeURIComponent(hr_str);
		var sindex = hr_str.indexOf("?t=");
		if(sindex != -1) {
			hr_str = hr_str.slice(sindex+3);
			hr_str = hr_str.slice(0,hr_str.indexOf("0"));
			return hr_str;		
		}
		else
			return '';
}
function get_email_list_response(hr_str) {
	if(hr_str.length > 0) {
	  return email_name = hr_str.slice(hr_str.lastIndexOf("/")+1);
	}
	else
	 return "";
}
//-----------------------------------------------------------------------------------
function get_artist_dataname(hr_str) {
	var dataname = hr_str.slice(hr_str.lastIndexOf("/")+1);	
	dataname = dataname + "_data.xml";
	return dataname;
}
// --------------------------------------------------------------------------------
// Runs onbody onload event & fills in html elements with data downloaded via AJAX
function add_page_data(page,afullname, atoptext,abiotext) {
	document.getElementById("artist_name_header").innerHTML = afullname
 	switch (page.toUpperCase() ) {
		case 'GALLERY':
 			document.getElementById("top_text_line").innerHTML = atoptext;
			goToByTopScroll("gallery_top");
		break;
		case 'BIO':
			document.getElementById("bio_text_body").innerHTML = abiotext;
			add_artist_linkbox();
			goToByTopScroll("biopage_top");
		break;
		case 'SLIDESHOW':  
		break;
		}
	return;	
}
// --------------------------------------------------------------------------------
// Fills in links sidebar on artist bio page
//
function add_artist_linkbox() {
	if(website_url != 'NONE' || facebook_url != 'NONE' || portrait_url != 'NONE' )
	{
		document.getElementById("artist_link_box").style.display = "block";	
		if(portrait_url != 'NONE') {
			document.getElementById("portrait_div").style.display = "block";
			document.getElementById("portrait_img").src = portrait_url;			
		}
		
		if(website_url != 'NONE') {
			document.getElementById("website_div").style.display = "block";
			document.getElementById("website_text").style.display = "block";
			document.getElementById("visit_website").href = website_url;
			if(logo_url !='NONE') {
				document.getElementById("website_logo").style.display = "block";
				document.getElementById("website_logo_link").href = website_url;
				document.getElementById("logo_pic").src = logo_url;				
			}				
		}
		if(facebook_url != 'NONE') {
			document.getElementById("facebook_div").style.display = "block";
			document.getElementById("facebook_url_id").href = facebook_url;	
			document.getElementById("visit_facebook").href = facebook_url;
		}
	}
	return;
}
// --------------------------------------------------------------------------------
// Adds <p> and </p> tags to bio text read from artist_data.xml file if no markup is present
function fix_bio_markup(biotext) {
	fs = biotext.slice(0,50);
	if(fs.indexOf("<") < 0) {biotext = '<p>' + biotext + '</p>';}
	return biotext;
}
// --------------------------------------------------------------------------------
function get_bio_path() {
	var gpath = location.href;
	var p1 = gpath.indexOf("_")+1;
	var p2 = gpath.indexOf(".",p1);
	var first = gpath.slice(0,p1);
	var last = gpath.slice(p2);
	var bio_path = first + "bio"+last;
	return bio_path;
}
// --------------------------------------------------------------------------------
function get_ss_path() {
	var gpath = location.href;
	var p1 = gpath.indexOf("_")+1;
	var p2 = gpath.indexOf(".",p1);
	var first = gpath.slice(0,p1);
	var last = gpath.slice(p2);
	var ss_path = first + "slideshow"+last;
	return ss_path;
}
// --------------------------------------------------------------------------------
function get_gallery_path() {
	var gpath = location.href;
	var p1 = gpath.indexOf("_")+1;
	var p2 = gpath.indexOf(".",p1);
	var first = gpath.slice(0,p1);
	var last = gpath.slice(p2);
	var gallery_path = first + "gallery"+last;
	return gallery_path;
}
// --------------------------------------------------------------------------------
function load_bio_page(page_name) {window.open(page_name,"_self",false);}
// --------------------------------------------------------------------------------
function load_gallery_page(page_name) { window.open(page_name,"_self",false); }
////////////////////////////////////////////////////////////////////////////////////////
// Scrolls page to top and then down to id location
// Used for artists pages to 1)show menubar at page top and then 2)scroll down to show artists
// name in transbar
function goToByTopScroll(id) { $('html,body').scrollTop(0).delay(1000).animate({scrollTop: $("#" + id).offset().top},1500); }
// --------------------------------------------------------------------------------
function call_load_slideshow(img_number) {
	if(show_array_data) {
	var size_data = draw_photo_gallery.get_image_size(img_number);
	var a_url = image_data[img_number][0];
	var a_cr = image_data[img_number][3];
	var a_title = image_data[img_number][4];
	var a_cap = image_data[img_number][5];
	var ostring = '["'+a_url+'","","","'+a_cr+'","'+a_title +'","'+ fullname + '"],';
	alert(size_data + ostring);
	}
	else
		load_slideshow(img_number, artist_slideshow_path);	
}
// --------------------------------------------------------------------------------
function load_slideshow(img_number,slideshow_path) {
	// if path already has SN + image number parse it off
	if(!isNaN(get_img_number())){
	  slideshow_path = slideshow_path.slice(0,slideshow_path.lastIndexOf("SN"))
	}
	slideshow_path = slideshow_path + "SN" + img_number;
	window.open(slideshow_path,"_self",false);
	
}
// --------------------------------------------------------------------------------
function get_img_number() {
	var img_number = 0;
	var sp = location.href;
	img_number = parseInt(sp.slice(sp.lastIndexOf("SN")+2));
	return img_number;
}
//-------------------------------------------------------------------------------
function old_draw_top_banner() {
	
document.write('<div class = "top_banner" >');	
document.write('<div class="transbox1" > ');
document.write('<a href = "index.html"> ');
document.write('<img border = "0" src="images\/bsg_logo_new_1200px.png" height="140px"> '); 
document.write('<\/a>');
document.write('<\/div>');  // /transbox1
document.write('<div class="top_promo"> ');
document.write('<h1 id = "banner_text"> Hampton Roads&#39; Premier Art Gallery<\/h1> ');
document.write('<\/div> <\/div>'); // /top_promo /top_banner
}
//-------------------------------------------------------------------------------
function draw_top_banner() {
	
document.write('<div class = "top_banner" >');	
// document.write('<div class="transbox1" > ');
document.write('<a href = "index.html"> ');
document.write('<img border = "0" src="images\/blog_logo_1_Edit_Edit.png"> '); 
document.write('<\/a>');
document.write('<\/div>');  // /transbox1
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Image data format for slide show
//  data[0]:  	not used
//	data[1]: 	Image URL
//	data[2]:	not used
//	data[3]:	not used
//	data[4]:	copyright notice	
//	data[5]:	Title
//	data[6]:	Caption
//
//

//function get_our_art_data(data_array) {
// data for our_art front page slide show
our_art_data_array = [
	//	["URL","","","All works &copy; by the artist","Title","Artist Name"],
		["photography/abrahamson/images/abrahamson_3.jpg","","","Copyright &copy; Jeff Abrahamson","Study in Rectangles","Jeff Abrahamson"],
		["jewelry/bolden/images/bolden_6.jpg","","","Copyright &copy; Kay Bolden","Swirl Fish Necklace and Earings","Kay Bolden"],
		["painting/hobler/images/hobler_3.jpg","","","Copyright &copy; Bill Hobler","Natural Abstract 3","Bill Hobler"],		
		["glass/wooldridge/images/img0184.jpg","","","All works &copy; by the artist","Marriage of Music","Kathy Wooldridge"],
		["photography/harris/images/harris_after_5.jpg","","","Copyright &copy; Sherry Harris","Columbine After","Sherry Harris"],
		["painting/cox-joseph/images/cox-joseph_8.jpg","","","Copyright &copy; Terry Cox-Joseph","Trevina Seated Europe","Terry Cox-Joseph"],
		["jewelry/king/images/king_2.jpg","","","Copyright &copy; Milyn King","Red Hot Love","Milyn King"],
		["sculpture/mincheva/images/mincheva_7.jpg","","","Copyright &copy; Ivanka Mincheva","The Prodigal Son, 1997","Ivanka Mincheva"],
		["wood/mcintire/images/mcintire_2.jpg","","","Copyright &copy; David McIntire","Segmented Vessel","David McIntire"],
		["fiber/dobratz/images/africa_jacket.jpg","","","Copyright &copy; Noreen Dobratz","Africa Jacket","Noreen Dobratz"],
		["ceramics/tanaka/images/Tanaka_11_Edit.jpg","","","Copyright &copy; Akiko Tanaka","Untitled","Akiko Tanaka"],
		["painting/barnes/images/Pizza Break.jpg","","","Copyright &copy; Michael Barnes","Pizza Break","Michael Barnes"],
		["painting/shacochis/images/shacochis_11.jpg","","","Copyright &copy; Sharon Shacochis","Old Point Comfort<br\/>Light","Sharon Shacochis"],	
		["fiber/pressick/images/pressick_17.jpg","","","Copyright &copy; Karen Pressick","Scarf","Karen Pressick"],	
		["painting/cotten/images/goat-with-bird_500px.jpg","","","Copyright &copy; Joanne Cotten","Goat with Birdhouse","Joanne Cotten"],
		["jewelry/giere/images/giere_2.jpg","","","Copyright &copy; Nancy Giere","Dichroic Glass Necklaces","Nancy Giere"],
		["fiber/harrison/images/harrison_1.jpg","","","Copyright &copy; Jean Harrison","Strength","Jean Harrison"],		
		["ceramics/krome/images/krome_1.jpg","","","Copyright &copy; Elizabeth Krome","Platter","Elizabeth Krome"],		
		["jewelry/yakovac/images/yakovac_4.jpg","","","Copyright &copy; Valerie Yakovac","Seaglass All Dressed Up","Valerie Yakovac"],
		["painting/dees/images/dees_8.jpg","","","Copyright &copy; Jim Dees","There, Together","Jim Dees"],
		["photography/cairns/images/cairns_14.jpg","","","Copyright &copy; Todd Cairns","Saturday Morning on<br/> Main Street","Todd Cairns"],
		["painting/dietrick/images/dietrick_6.jpg","","","Copyright &copy; Laura Tovar Dietrick","Sonoma Sonata","Laura Tovar Dietrick"],
		["ceramics/bastinelli/images/bastinelli_18.jpg","","","Copyright &copy; Susan Bastinelli","","Susan Bastinelli"],
		["jewelry/rossd/images/rossd_8.jpg","","","Copyright &copy; Deborah Ross","Jade Bowl","Deborah Ross"],
		["photography/gammon/images/gammon_9.jpg","","","Copyright &copy; Jerry Gammon","Lee Hall RR Station","Jerry Gammon"],
		["jewelry/murray/images/murray_17.jpg","","","Copyright &copy; Christine Murray","Silver Pendant","Christine Murray"],
		["painting/marshall/images/marshall_4.jpg","","","Copyright &copy; Juliette Marshall","Mello Chellos","Juliette Marshall"],
		["ceramics/turner/images/3.png","","","Copyright &copy; Marshall Turner","Bronze Vase 2","Marshall Turner"],
		["jewelry/haracivet/images/haracivet_7-2_500px.jpg","","","Copyright &copy;Brownie Shaffer Haracivet","Neck Tiara","Brownie Shaffer Haracivet"],		
		["sculpture/mcgee/images/mcgee_8.jpg","","","Copyright &copy; Harriet McGee","Mother Nature","Harriet McGee"],
		["glass/crosby/images/crosby_4.jpg","","","Copyright &copy; Bill Crosby","Medium Schooner","Bill Crosby"],
		["jewelry/decker/images/decker_1.jpg","","","Copyright &copy; Milica Decker","","Milica Decker"],
		["photography/hart/images/hart_3.jpg","","","Copyright &copy; Roger Hart","Red and Chrome","Roger Hart"],
		["painting/meminger/images/meminger_pianoman.jpg","","","Copyright &copy; Gerome Meminger Sr.","Piano Man","Gerome Meminger Sr."],
		["jewelry/poor/images/poor_1.jpg","","","Copyright &copy; Deborah Poor","","Deborah Poor"],
		["wood/mosserc/images/mosserc_2.jpg","","","Copyright &copy; Chuck Mosser","Bulbous Bowl","Chuck Mosser"],
		["painting/kearney/images/img_0640.jpg","","","Copyright &copy; Nancy Kearney","Ocean, Nags Head, NC","Nancy Kearney"],
		["glass/welteroth/images/welteroth_1.jpg","","","Copyright &copy; Susan Welteroth","Solitude Egret","Susan Welteroth"],		
		["painting/howard/images/howard_5.jpg","","","Copyright &copy; Joanne S. Howard","Paper or Plastic","Joanne S. Howard"],
		["painting/timberlake/images/timberlake_5.jpg","","","Copyright &copy; Joyce Timberlake","Poquoson","Joyce Timberlake"],
		["wood/rountree/images/rountree_1.jpg","","","Copyright &copy; Ray Rountree","Bowl","Ray Rountree"],
		["painting/hood/images/hood_1.jpg","","","Copyright &copy; Pat Carter-Hood","Beauty II","Pat Carter-Hood"],
		["painting/webb/images/webb_4.jpg","","","Copyright &copy; Lauren Webb","Kaleidoscope","Lauren Webb"],				
		["painting/dietrick/images/dietrick_8.jpg","","","Copyright &copy; Laura Tovar Dietrick","Triptch","Laura Tovar Dietrick"],
		["jewelry/mosser/images/mosser_1.jpg","","","Copyright &copy; Lisa Mosser","Blue-green squiggle necklace","Lisa Mosser"],
		["jewelry/fuller/images/fuller_3.jpg","","","Copyright &copy; Kazuko Fuller","Necklace","Kazuko Fuller"],
		["painting/turner/images/turner_2.jpg","","","Copyright &copy; Susan Turner","Sunflower","Susan Turner"],
		["jewelry/thayer/images/thayer_2.jpg","","","Copyright &copy; Leslie Thayer","Glass Watchband and Watch","Leslie Thayer"],
		["ceramics/malebranche/images/malebranche_1.jpg","","","Copyright &copy; Genez Malebranche","Vase","Genez Malebranche"],
		["wood/richardson/images/richardson_2.jpg","","","Copyright &copy; Jack Richardson","Memories","Jack Richardson"],
		["jewelry/olsen/images/olsen_1.jpg","","","Copyright &copy; Fran Olsen","Beaded Gold Twig Necklace","Fran Olsen"],
		["ceramics/fletcher/images/fletcher_4.jpg","","","Copyright &copy; David Fletcher","Shield and Talisman ","David Fletcher"],
		["painting/jensen/images/three_buy_boats_off_king.jpg","","","Copyright &copy; Ron Jensen","Three Bay Boats off King","Ron Jensen"],
		["photography/butler/images/butler_15.jpg","","","Copyright &copy; John Butler","Jerk Dog","John Butler"],
		["ceramics/austin/images/austin_8.jpg","","","Copyright &copy; Jan Austin","Vase","Jan Austin"]
		];
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	our_gallery_data_array = [
	["images/gallery_slideshow_400px/gallery_400px_1.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_2.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_3.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_4.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_5.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_6.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_7.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_9.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_10.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_11.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_12.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_13.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_14.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_15.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_16.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_17.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_18.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_19.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_20.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_21.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],	
	["images/gallery_slideshow_400px/gallery_400px_22.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"]	
	];
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	myeco_show = [
	["2012-shows/january-myeco/january_2012_myeco_show_500px_1.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_2.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_3.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_4.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_5.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_6.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_7.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_8.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_9.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_10.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_11.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_12.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_13.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_14.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_15.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_16.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_17.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_18.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_19.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_20.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_21.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_22.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_23.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_24.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/january-myeco/january_2012_myeco_show_500px_25.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"]
];

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	feb_quilt_show = [
	["2012-shows/february-quilts/feb-2012-quilt-show_1_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_5_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_6_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_7_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_10_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_11_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_12_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_13_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_15_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_18_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_20_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_22_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_23_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_26_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_28_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"],
	["2012-shows/february-quilts/feb-2012-quilt-show_33_500px.jpg","","","","","<p>All works &copy; by the respective artists<br />Photograph by Roger Hart/Avid Eye Images</p>"]


];



















