
function moo()
{
	alert("moo");
}

function info(theText)
{
	getDIV("theInfoBox").innerHTML = "<p>" + theText + "</p>";
}

function picInfo(theText)
{
	getDIV("longPanel").innerHTML = "<p>" + theText + "</p>";
}

function infoDefault()
{
	getDIV("theInfoBox").innerHTML = '<p>navigation</p>';
}

function getCSS(layerID){      //access a CSS property
	if(document.getElementById)
		return document.getElementById(layerID).style;
	else if(document.all)
		return document.all[layerID].style;
	else if(document.layers)
		return document.layers[layerID];
}

function getDIV(layerID){      //access a DIV
	if(document.getElementById)
		return document.getElementById(layerID);
	else if(document.all)
		return document.all[layerID];
	else if(document.layers)
		return document.layers[layerID];
}

function openPicWindow(theFileName, theWidth)
{
	theFileName="img.php?pic=" + theFileName;
	theHeight=600;
	window.open(theFileName,"fullsize","toolbar=no,scrollbars=yes,resizable=yes,width=" + theWidth + ",height=" + theHeight );
}



function openPicWindowOLD(theFileName, theWidth)
{
	theFileName="pics/mayko_" + theFileName+'.jpg';
	theHeight=600;
	//theWidth=550;
	/* alert("width="+theWidth+" height="+theHeight); */
	daWin = window.open("new.html","painting","toolbar=no,scrollbars=yes,resizable=yes,width=" + (theWidth) +",height=" + (theHeight) );
	daDoc = daWin.document;
	daDoc.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
	daDoc.writeln('<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">');
	daDoc.writeln('<style>body{margin:0;padding:0;text-align:center;background-color:black;} img{padding:0;margin:0;}</style>');
	daDoc.writeln('<body>');
	daDoc.writeln('<img alt="(c) Mayko 2006" src="' + theFileName + '" />');
	daDoc.writeln('</body></html>');
	daDoc.close();
}
