///////////////////////////
//var result = '';
//for (var i in layername) 
//{
//	propname = layername + "." + i;
//	result += propname + " = " + layername[i] + "\n";
//}
//alert (result);
//alert(objProfile(layername));
///////////////////////////
function listObjectProp(obj){
   var s='';
   o=eval(obj);
   for (var x in o){ if (o[x]) { s=s+typeof o[x]+":"+x+":"+o[x]+"\n"; } }
   alert(s);
   return s;  
   //alert(listObjectProp('window.document.location')); 
}
///////////////////////////

function hideLayer(layername) 
{
	if (document.all)
	{
		var LN = eval("document.all." + layername + ".style");
		var hide = "hidden"
	}
	else
	{
		var LN = eval("document." + layername);
		var hide = "hide"
	}
	LN.visibility = hide;
}

function showLayer(layername, x, y, abs) 
{
	if (document.all)
	{
		var LN = eval("document.all." + layername + ".style");
		var show = "visible"
	}
	else
	{
		var LN = eval("document." + layername);
		var show = "show"
	}
	moveLayer(LN, x, y, abs);
	LN.visibility = show;
}

//window.innerWidth?((window.innerWidth<770)?(335-6):(window.innerWidth/2-20-6)):((document.body.clientWidth<770)?(335):(document.body.clientWidth/2-20))

function moveLayer(LN, x, y, abs) 
{
	if (!abs)
	{
		if (window.innerWidth)		//Netscape
		{
			if (window.innerWidth<770)
			{
				x = x - 6;	
			}
			else
			{
				x = window.innerWidth/2+eval(x)-6;
			}
			w = window.innerWidth;
		}
		else 				//IExplorer
		{
			if (document.body.clientWidth<770)
			{
				x = x;
			}
			else
			{
				///alert (x);
				x = document.body.clientWidth/2+eval(x);
				///alert (x);
			}
			w = document.body.clientWidth;
		}
	}
	///if (typeof(w)  == 'undefined') { alert('X = ' +x+ '\nY = ' +y); }
	///else { alert('X = ' +x+ '\nY = ' +y+ '\nW = ' +w); }
	///listObjectProp(LN);
	if (document.all) 
	{
		LN.left = x;
		LN.top  = y;
		//LN.filter = "alpha(opacity=90)";
	}
	else
	{ 
		LN.moveTo(x, y); 
	}
	//////////////////	
	if ((navigator.appName.indexOf('Microsoft')+1)) 
	{
		LN.filter = "alpha(opacity=95)"; 
	}
	//if ((navigator.appName.indexOf('Netscape')+1)) 
	//{
	////	LN.-moz-opacity = 90;  
	//}
}

//<SCRIPT LANGUAGE="Javascript"><!--

function sm(n, h) 
{
	if (!h)
	{
		h = 'silikons.lv';
	}
	window.location.href = "mailto:"+n+"@"+h;
	return(false);
}

////--></SCRIPT>

