
function painting_eveningdungeness()
{windowOpener('painting_eveningdungeness_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_bywindowiow1()
{windowOpener('painting_bywindowiow1_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_bywindowiow2()
{windowOpener('painting_bywindowiow2_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_flowersstripes()
{windowOpener('painting_flowersstripes_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_fruitbowl()
{windowOpener('painting_fruitbowl_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_plateaudalbion()
{windowOpener('painting_plateaudalbion_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_ontheterrace()
{windowOpener('painting_ontheterrace_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_olivecypress()
{windowOpener('painting_olivecypress_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_mimosapears()
{windowOpener('painting_mimosapears_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_frontgarden()
{windowOpener('painting_frontgarden_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_arborasirises()
{windowOpener('painting_arborasirises_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=317,left=40,top=30')}

function painting_chaireastwindow()
{windowOpener('painting_chaireastwindow_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_absence()
{windowOpener('painting_absence_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}

function painting_agaves()
{windowOpener('painting_agaves_lg.html','enlarge','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,resizable=1,directories=no,width=780,height=580,left=40,top=30')}


function windowOpener(url, name, args)
{
	if (typeof(popupWin) != "object")
	{
//alert("got here 1");
		popupWin = window.open(url,name,args);
		popupWin.focus();
	}
	else 
	{
		
		//alert("got here 2");
		//alert("newname: " + name);
			
		if (!popupWin.closed)
		{ 
		
		//alert("got here 3");
			
			
			if (!popupWin.name == name)
			{
				popupWin.location.href = url;
				popupWin.focus();
			}
			else
			{

				popupWin2 = window.open(url, name,args);
				popupWin2.focus();
			}
			
		} 
		else
		{
		
//		alert("got here 4");
			popupWin = window.open(url, name,args);
			popupWin.focus();
		}
			
		
	}

	
}


