function topcheck(wheretogo,thepic,thetext,thedamnie)
{
if (top == window)
	{self.location=wheretogo;}
else
	{iframebigpic(thepic,thetext,thedamnie);}
}

function reload() {window.location.reload();}
setTimeout("window.onresize = reload", 100);

function launch(newURL, newName, newFeatures) {
  var remote = open(newURL, newName, newFeatures);
  return remote;
}
function popuplaunch(theURL,theNAME,theWIDTH,theHEIGHT) {
  Remote = launch(theURL, theNAME, "height="+theHEIGHT+",width="+theWIDTH+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,title=0");
}

function rollnav(theimg)
{
	document.getElementById('navroll').style.backgroundImage = 'url(images/'+theimg+')';
}

function iframebigpic(thepic,thetext,thedamnie)
{
if (thedamnie == 'png24')
	{
	parent.document.getElementById('browser-frame-oval-outer').innerHTML = '<div id="browser-frame-oval" style="background-image:url(collections/'+thepic+'-big.png);background-position:left top;_background-image:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'collections/'+thepic+'-big.png\', sizingMethod = \'crop\');"><img src="images/blank.gif" border="0" alt="clare de lune" id="mainpic"></div>';
	parent.document.getElementById('browser-item-name-inner').innerHTML = thetext;
	}
else
	{
	parent.document.getElementById('browser-frame-oval-outer').innerHTML = '<div id="browser-frame-oval" style="background-image:url(collections/'+thepic+'-big.png);"><img src="images/blank.gif" border="0" alt="clare de lune" id="mainpic"></div>';
	parent.document.getElementById('browser-item-name-inner').innerHTML = thetext;
	}
}