// Little blue arrow indicates current thumbnail
function thumbarrow(key)
	{
	  if (document.title.indexOf(key) != -1)
	    {
		     document.getElementById(key).className="current";
		  }
	}

// Section Nav Highlight

function section_highlight(section_name)
  {
    if (document.title.indexOf(section_name) != -1)
      {
        document.getElementById(section_name).className="current";
      }
  }

// Gallery Nav Highlight

function gallery_highlight(gallery_name)
  {
    if (document.title.indexOf(gallery_name) != -1)
      {
        document.getElementById(gallery_name).className="current";
      }
  }

// Gallery Page Highlight

function gallery_pagenumber_highlight(page_number)
  {
    if ( document.location.pathname.indexOf(page_number) != -1 )
      {
        document.getElementById(page_number).className="current";
      }
  }
  
function gallery_highlight_compact(gallery_name)
  {
    if ( document.location.pathname.indexOf(gallery_name) != -1 )
      {
        document.getElementById(gallery_name).className="current";
      }
  }

// This script opens a new browser window and writes
// HTML to display an image with a title and caption
// Typical link calling this function looks like:
// This is obsolete - use the detail_popup_1(url) routine
	
function detail_popup(artFilePath,orientation,bgd_img)
  {
    // specify window parameters
    artWin = window.open( "","Detail","width=770,height=570,scrollbars=no,resizable=no,left=20,top=40")
    artWin.document.write('<html>');
    artWin.document.write('<head>');
    artWin.document.write('<title>Copyright Todd Lockwood</title>');
    artWin.document.write('<link rel="stylesheet" type="text/css" href="/resources/lockwood.css">');
    artWin.document.write('</head>');
    artWin.document.write('<body style="background: #000 url(/resources/images/backgrounds/' + bgd_img + ') no-repeat top left;">');
    artWin.document.write('<div id="detail_popup_' + orientation + '">');
    artWin.document.write('<p><a href="javascript:window.close();">')
    artWin.document.write('<img src="/resources/images/galleries/' + artFilePath +'"></a><br><a href="javascript:window.close();">[CLOSE WINDOW]</a></p>');
    artWin.document.write('</div>');
    artWin.document.write('</body>');
	}
	
function detail_popup_1(url)
	{
     PopUpWidth  =  770;
     PopUpHeight =  570;
     PopUpLeft   =  50;
     PopUpTop    =  50;
     popO='left='+PopUpLeft+',top='+PopUpTop+',width='+PopUpWidth+',height='+PopUpHeight+',resizable=no,scrollbars=no'
     popUpWin=window.open(url,'Detail',popO);
   }
   
function demo_popup_1(url)
	{
     PopUpWidth  =  770;
     PopUpHeight =  8000;
     PopUpLeft   =  50;
     PopUpTop    =  50;
     popO='left='+PopUpLeft+',top='+PopUpTop+',width='+PopUpWidth+',height='+PopUpHeight+',resizable=no,scrollbars=no'
     popUpWin=window.open(url,'Detail',popO);
   }
	
function submitform1 ()
{
  document.myform1.submit();
}

function submitform2 ()
{
  alert ("New Large Format Prints ARE available, but this page hasn't been updated just yet! Send me an email and tell me you want THIS page done NOW and we'll MAKE IT HAPPEN for ya!");
  return true;
  /* document.myform2.submit(); */
}

function submitform3b ()
{
  alert ("New Large Format Prints ARE available, but this page hasn't been updated just yet! Send me an email and tell me you want THIS page done NOW and we'll MAKE IT HAPPEN for ya!");
  return true;
  /* document.myform3.submit(); TEMPORARY */
}

function submitform_ltr ()
{
  document.ltr.submit();
}

function submitform_ltr2 ()
{
  document.ltr2.submit();
}

function submitform_ltr3 ()
{
  document.ltr3.submit();
}

function submitform_ltr4 ()
{
  document.ltr4.submit();
}

function submitform_ltr5 ()
{
  document.ltr5.submit();
}

function submitform_ltr6 ()
{
  document.ltr6.submit();
}

function submitform_standard ()
{
  document.standard.submit();
}

function submitform_standard2 ()
{
  document.standard2.submit();
}

function submitform_standard3 ()
{
  document.standard3.submit();
}

function submitform_standard4 ()
{
  document.standard4.submit();
}

function submitform_standard5 ()
{
  document.standard5.submit();
}

function submitform_standard6 ()
{
  document.standard6.submit();
}

function submitform_large ()
{
  document.large.submit();
}

function submitform_large ()
{
  document.large.submit();
}

function submitform_giclee ()
{
  document.giclee.submit();
}

function submitform_matted_giclee ()
{
  document.matted_giclee.submit();
}

function submitform_litho ()
{
  document.litho.submit();
}

function submitform_book ()
{
  document.book.submit();
}

function submitform_calendar1 ()
{
  document.calendartradtional.submit();
}

function submitform_calendar2 ()
{
  document.calendardeluxe.submit();
}

function submitform3 ()
{
  document.myform3.submit();
}

function viewcart ()
{
  document.viewcart.submit();
}

function addforeignshipping ()
{
  document.addforeignshipping.submit();
}

function addremarque ()
{
  document.addremarque.submit();
}

function Pop(mypage, myname, w, h, scroll)
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
win = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4)
	{ 
		win.window.focus();
	}
}