var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var X, Y;

function mouseplace() { 
	X = event.x;
	Y = event.y;
}

function hideLayer(id_p) { 
	FromLayer.innerHTML = ""
}

function snowLayer(id_p) {  // IE main animation function
	if (ns4up) {
	snowNS(id_p);
	} else if (ie4up) {
	snowIE(id_p);
	}
}

function snowNS(id_p) {  // Netscape main animation function

	document.write("<layer name=\"dot"+ id_p +"\" left=\"15\" ");
	document.write("top=\"15\" visibility=\"show\"><img src=\"");
	document.write(snowflake + "\" border=\"0\"></layer>");
}

function snowIE(id_p) {  // IE main animation function
	Y = Y + document.body.scrollTop + 10;
	X = X + 10;	
	id_p = "";
	height = 300
	width = 200
	

if (FromLayer.innerHTML == "") {
		FromLayer.innerHTML = "<div style='POSITION: absolute; Z-INDEX: 1; VISIBILITY: visible; TOP: "+ Y +"px; LEFT: "+ X +"px;'>" +
"<table width=100% CELLSPACING=0 CELLPADDING=0 valign=top border='0' bgcolor=#ffffff><tr><td><table CELLSPACING=0 CELLPADDING=0 valign=top border='0' align='center'><tr><td><img src='img/border/layer-t-l.gif' style='background-image: url(img/border/layer-t-l.png);' class='png'/></td><td><img width="+width+" height=26 src='img/border/layer-t-bg.gif' style='background-image: url(img/border/layer-t-bg.png);' class='png'/>	</td><td><img src='img/border/layer-t-r.gif' style='background-image: url(img/border/layer-t-r.png);' class='png'/></td></tr><tr><td><img width='100%' height='"+height+"' src='img/border/layer-m-l.gif' style='background-image: url(img/border/layer-m-l.png);' class='png'/></td><td width=100% height=100%><table><tr><td>" +
"<IFRAME marginWidth='0' hspace='0' vspace='0' marginHeight='0' src='http://www.nashe-radio.com/editAvatar.asp' frameBorder='0' width='100%' " +
"scrolling='no' height='"+(height-50)+"'></IFRAME>" +
"</td></tr><TR valign=top><TD valign=top align='right'><a href='javascript: hideLayer()'><img src='./img/border/layer-close.gif' border='0'></a></TD></TR></table></td><td><img width='100%' height='"+height+"' src='img/border/layer-m-r.gif' style='background-image: url(img/border/layer-m-r.png);' class='png'/></td></tr><tr><td><img src='img/border/layer-b-l.gif' style='background-image: url(img/border/layer-b-l.png);' class='png'/></td><td><img width="+width+" height=26 src='img/border/layer-b-bg.gif' style='background-image: url(img/border/layer-b-bg.png);' class='png'/></td><td><img src='img/border/layer-b-r.gif' style='background-image: url(img/border/layer-b-r.png);' class='png'/></td></tr></table></td></tr></table></div>"
	
	}
	else
	{
		FromLayer.innerHTML = ""
	}
}
