function changeImages(sName,sImage)
	{document.images[sName].src = sImage}

if (isLayers)
	{origWidth = innerWidth;origHeight = innerHeight;}
	
function reloadPage()
	{
	if (innerWidth != origWidth || innerHeight != origHeight)
	location.reload();
	}
	
if (isLayers)
	{onresize=reloadPage;}

// BEGIN FIND DOM //
var isDHTML=0;
var isLayers=0;
var isAll=0;
var isID=0;

if (document.getElementById)
	{isID=1; isDHTML=1;}
else
	{
	if (document.layers)
		{isLayers=1; isDHTML=1;}
	else
		{
		if (document.all)
			{isAll=1; isDHTML=1;}
		}
	}

function findDOM(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById(objectID).style); }
		else { 
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (document.getElementById(objectID)); }
		else { 
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
}
// END FIND DOM //


clicked1=false;
clicked2=false;
selection1=false;
selection2=false;
image1slot1=false;image1slot2=false;image2slot1=false;image2slot2=false;image3slot1=false;image3slot2=false;image4slot1=false;image4slot2=false;
image5slot1=false;image5slot2=false;image6slot1=false;image6slot2=false;image7slot1=false;image7slot2=false;image8slot1=false;image8slot2=false;
image9slot1=false;image9slot2=false;image10slot1=false;image10slot2=false;image11slot1=false;image11slot2=false;image12slot1=false;image12slot2=false;
image13slot1=false;image13slot2=false;image14slot1=false;image14slot2=false;image15slot1=false;image15slot2=false;image16slot1=false;image16slot2=false;
image17slot1=false;image17slot2=false;image18slot1=false;image18slot2=false;image19slot1=false;image19slot2=false;image20slot1=false;image20slot2=false;
function checkImage1()
	{
	if (image1slot1==true)
		{image1slot1=false;document.contrast.check1.checked=false;}
	if (image1slot2==true)
		{image1slot2=false;image1slot1=true;}
	}
function checkImage2()
	{
	if (image2slot1==true)
		{image2slot1=false;document.contrast.check2.checked=false;}
	if (image2slot2==true)
		{image2slot2=false;image2slot1=true;}
	}
function checkImage3()
	{
	if (image3slot1==true)
		{image3slot1=false;document.contrast.check3.checked=false;}	
	if (image3slot2==true)
		{image3slot2=false;image3slot1=true;}
	}
function checkImage4()
	{
	if (image4slot1==true)
		{image4slot1=false;document.contrast.check4.checked=false;}	
	if (image4slot2==true)
		{image4slot2=false;image4slot1=true;}
	}
function checkImage5()
	{
	if (image5slot1==true)
		{image5slot1=false;document.contrast.check5.checked=false;}	
	if (image5slot2==true)
		{image5slot2=false;image5slot1=true;}
	}
function checkImage6()
	{
	if (image6slot1==true)
		{image6slot1=false;document.contrast.check6.checked=false;}	
	if (image6slot2==true)
		{image6slot2=false;image6slot1=true;}
	}
function checkImage7()
	{
	if (image7slot1==true)
		{image7slot1=false;document.contrast.check7.checked=false;}	
	if (image7slot2==true)
		{image7slot2=false;image7slot1=true;}
	}
function checkImage8()
	{
	if (image8slot1==true)
		{image8slot1=false;document.contrast.check8.checked=false;}	
	if (image8slot2==true)
		{image8slot2=false;image8slot1=true;}
	}
function checkImage9()
	{
	if (image9slot1==true)
		{image9slot1=false;document.contrast.check9.checked=false;}	
	if (image9slot2==true)
		{image9slot2=false;image9slot1=true;}
	}
function checkImage10()
	{
	if (image10slot1==true)
		{image10slot1=false;document.contrast.check10.checked=false;}	
	if (image10slot2==true)
		{image10slot2=false;image10slot1=true;}
	}
function checkImage11()
	{
	if (image11slot1==true)
		{image11slot1=false;document.contrast.check11.checked=false;}	
	if (image11slot2==true)
		{image11slot2=false;image11slot1=true;}
	}
function checkImage12()
	{
	if (image12slot1==true)
		{image12slot1=false;document.contrast.check12.checked=false;}	
	if (image12slot2==true)
		{image12slot2=false;image12slot1=true;}
	}
function checkImage13()
	{
	if (image13slot1==true)
		{image13slot1=false;document.contrast.check13.checked=false;}
	if (image13slot2==true)
		{image13slot2=false;image13slot1=true;}
	}
function checkImage14()
	{
	if (image14slot1==true)
		{image14slot1=false;document.contrast.check14.checked=false;}
	if (image14slot2==true)
		{image14slot2=false;image14slot1=true;}
	}
function checkImage15()
	{
	if (image15slot1==true)
		{image15slot1=false;document.contrast.check15.checked=false;}	
	if (image15slot2==true)
		{image15slot2=false;image15slot1=true;}
	}
function checkImage16()
	{
	if (image16slot1==true)
		{image16slot1=false;document.contrast.check16.checked=false;}	
	if (image16slot2==true)
		{image16slot2=false;image16slot1=true;}
	}
function checkImage17()
	{
	if (image17slot1==true)
		{image17slot1=false;document.contrast.check17.checked=false;}	
	if (image17slot2==true)
		{image17slot2=false;image17slot1=true;}
	}
function checkImage18()
	{
	if (image18slot1==true)
		{image18slot1=false;document.contrast.check18.checked=false;}	
	if (image18slot2==true)
		{image18slot2=false;image18slot1=true;}
	}
function checkImage19()
	{
	if (image19slot1==true)
		{image19slot1=false;document.contrast.check19.checked=false;}	
	if (image19slot2==true)
		{image19slot2=false;image19slot1=true;}
	}
function checkImage20()
	{
	if (image20slot1==true)
		{image20slot1=false;document.contrast.check20.checked=false;}	
	if (image20slot2==true)
		{image20slot2=false;image20slot1=true;}
	}
	
function compare1()
	{
	 if (document.contrast.check1.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/modo_202.jpg';
		clicked1=true;image1slot1=true;clicked2=false;
		}
		else if (clicked1==true && image1slot1==false && image1slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/modo_202.jpg';
				clicked1=true;clicked2=true;image1slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/modo_202.jpg';
				clicked1=true;clicked2=true;image1slot2=true;
				checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check1.checked==false)
		{
		if (clicked1==true && clicked2==true && image1slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image1slot1=false;image1slot2=false;
			checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image1slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image1slot1=false;image1slot2=false;
			}
		else if (clicked1==true && clicked2==false && image1slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image1slot1=false;image1slot2=false;
			}
		}
	visibility();
	}
	
function compare2()
	{
	if (document.contrast.check2.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/garden_202.jpg';
		clicked1=true;image2slot1=true;clicked2=false;
		}
		else if (clicked1==true && image2slot1==false && image2slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/garden_202.jpg';
				clicked1=true;clicked2=true;image2slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/garden_202.jpg';
				clicked1=true;clicked2=true;image2slot2=true;
				checkImage1();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check2.checked==false)
		{
		if (clicked1==true && clicked2==true && image2slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image2slot1=false;image2slot2=false;
			checkImage1();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image2slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image2slot1=false;image2slot2=false;
			}
		else if (clicked1==true && clicked2==false && image2slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image2slot1=false;image2slot2=false;
			}
		}
	visibility();
	}

function compare3()
	{
	 if (document.contrast.check3.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/sea_202.jpg';
		clicked1=true;image3slot1=true;clicked2=false;
		}
		else if (clicked1==true && image3slot1==false && image3slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/sea_202.jpg';
				clicked1=true;clicked2=true;image3slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/sea_202.jpg';
				clicked1=true;clicked2=true;image3slot2=true;
				checkImage1();checkImage2();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check3.checked==false)
		{
		if (clicked1==true && clicked2==true && image3slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image3slot1=false;image3slot2=false;
			checkImage1();checkImage2();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image3slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image3slot1=false;image3slot2=false;
			}
		else if (clicked1==true && clicked2==false && image3slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image3slot1=false;image3slot2=false;
			}
		}
	visibility();
	}
	
function compare4()
	{
	 if (document.contrast.check4.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/sueno_202.jpg';
		clicked1=true;image4slot1=true;clicked2=false;
		}
		else if (clicked1==true && image4slot1==false && image4slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/sueno_202.jpg';
				clicked1=true;clicked2=true;image4slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/sueno_202.jpg';
				clicked1=true;clicked2=true;image4slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check4.checked==false)
		{
		if (clicked1==true && clicked2==true && image4slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image4slot1=false;image4slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image4slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image4slot1=false;image4slot2=false;
			}
		else if (clicked1==true && clicked2==false && image4slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image4slot1=false;image4slot2=false;
			}
		}
	visibility();
	}

function compare5()
	{
	 if (document.contrast.check5.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/picasso_202.jpg';
		clicked1=true;image5slot1=true;clicked2=false;
		}
		else if (clicked1==true && image5slot1==false && image5slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/picasso_202.jpg';
				clicked1=true;clicked2=true;image5slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/picasso_202.jpg';
				clicked1=true;clicked2=true;image5slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check5.checked==false)
		{
		if (clicked1==true && clicked2==true && image5slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image5slot1=false;image5slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image5slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image5slot1=false;image5slot2=false;
			}
		else if (clicked1==true && clicked2==false && image5slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image5slot1=false;image5slot2=false;
			}
		}
	visibility();
	}

function compare6()
	{
	 if (document.contrast.check6.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/battle_202.jpg';
		clicked1=true;image6slot1=true;clicked2=false;
		}
		else if (clicked1==true && image6slot1==false && image6slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/battle_202.jpg';
				clicked1=true;clicked2=true;image6slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/battle_202.jpg';
				clicked1=true;clicked2=true;image6slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check6.checked==false)
		{
		if (clicked1==true && clicked2==true && image6slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image6slot1=false;image6slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image6slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image6slot1=false;image6slot2=false;
			}
		else if (clicked1==true && clicked2==false && image6slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image6slot1=false;image6slot2=false;
			}
		}
	visibility();
	}
	
function compare7()
	{
	 if (document.contrast.check7.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/web_202.jpg';
		clicked1=true;image7slot1=true;clicked2=false;
		}
		else if (clicked1==true && image7slot1==false && image7slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/web_202.jpg';
				clicked1=true;clicked2=true;image7slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/web_202.jpg';
				clicked1=true;clicked2=true;image7slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check7.checked==false)
		{
		if (clicked1==true && clicked2==true && image7slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image7slot1=false;image7slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image7slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image7slot1=false;image7slot2=false;
			}
		else if (clicked1==true && clicked2==false && image7slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image7slot1=false;image7slot2=false;
			}
		}
	visibility();
	}
	
function compare8()
	{
	 if (document.contrast.check8.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/tiger_202.jpg';
		clicked1=true;image8slot1=true;clicked2=false;
		}
		else if (clicked1==true && image8slot1==false && image8slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/tiger_202.jpg';
				clicked1=true;clicked2=true;image8slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/tiger_202.jpg';
				clicked1=true;clicked2=true;image8slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check8.checked==false)
		{
		if (clicked1==true && clicked2==true && image8slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image8slot1=false;image8slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image8slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image8slot1=false;image8slot2=false;
			}
		else if (clicked1==true && clicked2==false && image8slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image8slot1=false;image8slot2=false;
			}
		}
	visibility();
	}
	
function compare9()
	{
	 if (document.contrast.check9.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/boat_202.jpg';
		clicked1=true;image9slot1=true;clicked2=false;
		}
		else if (clicked1==true && image9slot1==false && image9slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/boat_202.jpg';
				clicked1=true;clicked2=true;image9slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/boat_202.jpg';
				clicked1=true;clicked2=true;image9slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check9.checked==false)
		{
		if (clicked1==true && clicked2==true && image9slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image9slot1=false;image9slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image9slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image9slot1=false;image9slot2=false;
			}
		else if (clicked1==true && clicked2==false && image9slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image9slot1=false;image9slot2=false;
			}
		}
	visibility();
	}
	
function compare10()
	{
	 if (document.contrast.check10.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/africa_202.jpg';
		clicked1=true;image10slot1=true;clicked2=false;
		}
		else if (clicked1==true && image10slot1==false && image10slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/africa_202.jpg';
				clicked1=true;clicked2=true;image10slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/africa_202.jpg';
				clicked1=true;clicked2=true;image10slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check10.checked==false)
		{
		if (clicked1==true && clicked2==true && image10slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image10slot1=false;image10slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image10slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image10slot1=false;image10slot2=false;
			}
		else if (clicked1==true && clicked2==false && image10slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image10slot1=false;image10slot2=false;
			}
		}
	visibility();
	}
	
function compare11()
	{
	 if (document.contrast.check11.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/royal_202.jpg';
		clicked1=true;image11slot1=true;clicked2=false;
		}
		else if (clicked1==true && image11slot1==false && image11slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/royal_202.jpg';
				clicked1=true;clicked2=true;image11slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/royal_202.jpg';
				clicked1=true;clicked2=true;image11slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check11.checked==false)
		{
		if (clicked1==true && clicked2==true && image11slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image11slot1=false;image11slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image11slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image11slot1=false;image11slot2=false;
			}
		else if (clicked1==true && clicked2==false && image11slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image11slot1=false;image11slot2=false;
			}
		}
	visibility();
	}
	
function compare12()
	{
	 if (document.contrast.check12.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/sewing_202.jpg';
		clicked1=true;image12slot1=true;clicked2=false;
		}
		else if (clicked1==true && image12slot1==false && image12slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/sewing_202.jpg';
				clicked1=true;clicked2=true;image12slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/sewing_202.jpg';
				clicked1=true;clicked2=true;image12slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check12.checked==false)
		{
		if (clicked1==true && clicked2==true && image12slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image12slot1=false;image12slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image12slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image12slot1=false;image12slot2=false;
			}
		else if (clicked1==true && clicked2==false && image12slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image12slot1=false;image12slot2=false;
			}
		}
	visibility();
	}
	
function compare13()
	{
	 if (document.contrast.check13.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/lenox_202.jpg';
		clicked1=true;image13slot1=true;clicked2=false;
		}
		else if (clicked1==true && image13slot1==false && image13slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/lenox_202.jpg';
				clicked1=true;clicked2=true;image13slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/lenox_202.jpg';
				clicked1=true;clicked2=true;image13slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check13.checked==false)
		{
		if (clicked1==true && clicked2==true && image1slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image13slot1=false;image13slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image13slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image1slot1=false;image13slot2=false;
			}
		else if (clicked1==true && clicked2==false && image13slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image1slot1=false;image13slot2=false;
			}
		}
	visibility();
	}
	
function compare14()
	{
	if (document.contrast.check14.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/ebony_202.jpg';
		clicked1=true;image14slot1=true;clicked2=false;
		}
		else if (clicked1==true && image14slot1==false && image14slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/ebony_202.jpg';
				clicked1=true;clicked2=true;image14slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/ebony_202.jpg';
				clicked1=true;clicked2=true;image14slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage13();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check14.checked==false)
		{
		if (clicked1==true && clicked2==true && image14slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image14slot1=false;image14slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage13();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image14slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image14slot1=false;image14slot2=false;
			}
		else if (clicked1==true && clicked2==false && image14slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image14slot1=false;image14slot2=false;
			}
		}
	visibility();
	}

function compare15()
	{
	 if (document.contrast.check15.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/wheat_202.jpg';
		clicked1=true;image15slot1=true;clicked2=false;
		}
		else if (clicked1==true && image15slot1==false && image15slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/wheat_202.jpg';
				clicked1=true;clicked2=true;image15slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/wheat_202.jpg';
				clicked1=true;clicked2=true;image15slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage13();checkImage14();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check15.checked==false)
		{
		if (clicked1==true && clicked2==true && image15slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image15slot1=false;image15slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage13();checkImage14();checkImage16();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image15slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image15slot1=false;image15slot2=false;
			}
		else if (clicked1==true && clicked2==false && image15slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image15slot1=false;image15slot2=false;
			}
		}
	visibility();
	}
	
function compare16()
	{
	 if (document.contrast.check16.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/rivers_202.jpg';
		clicked1=true;image4slot1=true;clicked2=false;
		}
		else if (clicked1==true && image4slot1==false && image4slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/rivers_202.jpg';
				clicked1=true;clicked2=true;image4slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/rivers_202.jpg';
				clicked1=true;clicked2=true;image4slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage17();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check16.checked==false)
		{
		if (clicked1==true && clicked2==true && image4slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image4slot1=false;image4slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage17();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image4slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image4slot1=false;image4slot2=false;
			}
		else if (clicked1==true && clicked2==false && image4slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image4slot1=false;image4slot2=false;
			}
		}
	visibility();
	}

function compare17()
	{
	 if (document.contrast.check17.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/warhol_202.jpg';
		clicked1=true;image5slot1=true;clicked2=false;
		}
		else if (clicked1==true && image5slot1==false && image5slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/warhol_202.jpg';
				clicked1=true;clicked2=true;image5slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/warhol_202.jpg';
				clicked1=true;clicked2=true;image5slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage18();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check17.checked==false)
		{
		if (clicked1==true && clicked2==true && image5slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image5slot1=false;image5slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage18();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image5slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image5slot1=false;image5slot2=false;
			}
		else if (clicked1==true && clicked2==false && image5slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image5slot1=false;image5slot2=false;
			}
		}
	visibility();
	}

function compare18()
	{
	 if (document.contrast.check18.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/lawrence_202.jpg';
		clicked1=true;image6slot1=true;clicked2=false;
		}
		else if (clicked1==true && image6slot1==false && image6slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/lawrence_202.jpg';
				clicked1=true;clicked2=true;image6slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/lawrence_202.jpg';
				clicked1=true;clicked2=true;image6slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage19();checkImage20();
				}
			}
		}
	else if (document.contrast.check18.checked==false)
		{
		if (clicked1==true && clicked2==true && image6slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image6slot1=false;image6slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage19();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image6slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image6slot1=false;image6slot2=false;
			}
		else if (clicked1==true && clicked2==false && image6slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image6slot1=false;image6slot2=false;
			}
		}
	visibility();
	}
	
function compare19()
	{
	 if (document.contrast.check19.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/signs_202.jpg';
		clicked1=true;image7slot1=true;clicked2=false;
		}
		else if (clicked1==true && image7slot1==false && image7slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/signs_202.jpg';
				clicked1=true;clicked2=true;image7slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/signs_202.jpg';
				clicked1=true;clicked2=true;image7slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage20();
				}
			}
		}
	else if (document.contrast.check19.checked==false)
		{
		if (clicked1==true && clicked2==true && image7slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image7slot1=false;image7slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage20();
			}
		else if (clicked1==true && clicked2==true && image7slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image7slot1=false;image7slot2=false;
			}
		else if (clicked1==true && clicked2==false && image7slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image7slot1=false;image7slot2=false;
			}
		}
	visibility();
	}
	
function compare20()
	{
	 if (document.contrast.check20.checked==true)
		{
		if (clicked1==false)
		{
		document.selectionbg1.src='images_cc/estes_202.jpg';
		clicked1=true;image8slot1=true;clicked2=false;
		}
		else if (clicked1==true && image8slot1==false && image8slot2==false)
			{
			if (clicked2==false)
				{
				document.selectionbg2.src='images_cc/estes_202.jpg';
				clicked1=true;clicked2=true;image8slot2=true;
				}
			else if (clicked2==true)
				{
				document.selectionbg1.src=document.selectionbg2.src;
				document.selectionbg2.src='images_cc/estes_202.jpg';
				clicked1=true;clicked2=true;image8slot2=true;
				checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
				checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();
				}
			}
		}
	else if (document.contrast.check20.checked==false)
		{
		if (clicked1==true && clicked2==true && image8slot1==true)
			{
			document.selectionbg1.src=document.selectionbg2.src;
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image8slot1=false;image8slot2=false;
			checkImage1();checkImage2();checkImage3();checkImage4();checkImage5();checkImage6();checkImage7();checkImage8();checkImage9();checkImage10();
			checkImage11();checkImage12();checkImage13();checkImage14();checkImage15();checkImage16();checkImage17();checkImage18();checkImage19();
			}
		else if (clicked1==true && clicked2==true && image8slot2==true)
			{
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=true;clicked2=false;image8slot1=false;image8slot2=false;
			}
		else if (clicked1==true && clicked2==false && image8slot1==true)
			{
			document.selectionbg1.src='images_cc/selectionbg.gif';
			document.selectionbg2.src='images_cc/selectionbg.gif';
			clicked1=false;clicked2=false;image8slot1=false;image8slot2=false;
			}
		}
	visibility();
	}
	
function visibility()
	{
	if (!isLayers)
		{
		if (clicked2==true)
			{show('hidecompare');}
		if (clicked2==false)
			{hide('hidecompare');}
		}
	}

function checkBoxes()
	{
	if (clicked1==true && clicked2==false)
		{alert ('Please choose two artworks to compare.')}
	else if (clicked1==false && clicked2==false)
		{alert ('Please choose two artworks to compare.')}
	else if (clicked1==true && clicked2==true)
		{document.forms.contrast.submit();}
	}



function hide(objectID)
	{	 
	element = findDOM(objectID,1);
	state = element.visibility;	
	if (state == 'visible' || state == 'show' )
		{element.visibility = 'hidden';}
	else
		{element.visibility = 'hidden';}
	}
	
function show(objectID)
	{	 
	element = findDOM(objectID,1);
	state = element.visibility;	
	if (state == 'hidden' || state == 'hide' )
		{
		if (isLayers)
			{element.visibility = 'show';}
		else
			{element.visibility = 'visible';}
		}
	}