/*
if (!document.layers){
	document.write('<div id="divStayTopLeft" style="position:absolute">');
}
*/

var verticalpos="fromtop";

function showSMS(){
	newWin=window.open("sms.html","SendSMS","toolbar=no,loaction=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=260,height=290");
}

/*
document.write('<layer id="divStayTopLeft">');
document.write('<table border="0" cellspacing="3" cellpadding="5" bgcolor="black">');
document.write('<tr><td width="180" bgcolor="black"><font face="FixedSys, Helvetica" color="white"><center>Menu</center></font></td></tr>');
document.write('<tr><td width="180" bgcolor="white" background="portfolio/images/bgw1.gif"><font face="FixedSys, Helvetica"><center>');
document.write('<a href="index.html">Home</a><br>');
document.write('<a href="resume.html">Resume</a><br>');
document.write('<a href="links.html">Links</a><br>');
document.write('<a href="pictures.html">Pictures</a><br>');
document.write('<a href="portfolio.html">Portfolio</a><br>');
document.write('<a href="perl/doteam.pl?action=no_action" target="_blank">Pool Schedule</a><br>');
document.write('<a href="http://somafm.com/groovesalad.pls" target="_blank">Music1</a><br>');
document.write('<a href="http://somafm.com/secretagent.pls" target="_blank">Music2</a><br>');
document.write('<a href="apires/index.html" target="_blank">Windows API</a><br>');
document.write('<a href="http://www.livejournal.com/users/vamidusthegreat/" target="_blank">Live Journal</a><br>');
document.write('<a href="irc://irc.debian.org/vmd">IRC Chat</a><br>');
document.write('<a href="javascript:showSMS()">Send SMS</a><br>');
document.write('<table cellspacing="0" cellpadding="0" border="0">');
document.write('<tr><td width="22">');
document.write('<img border="0" src="images/icqonline.gif">');
document.write('</td><td>68476093</td></tr>');
document.write('<tr><td width="22">');
document.write('<img border="0" src="images/aimonline.gif">');
document.write('</td><td>vamidus</td></tr>');
document.write('<tr><td width="22">');
document.write('<img src="images/msnonline.gif" border="0">');
document.write('</td><td>vamid</td></tr>');
document.write('<tr><td width="22">');
document.write('<img src="images/yahooonline.gif" border="0">');
document.write('</td><td>vadym777</td></tr></table><img src="images/hole.gif">');
document.write('</center></font></td></tr></table></layer>');
*/

/*
Floating Menu script-  Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/

//Enter "frombottom" or "fromtop"

/*
if (!document.layers){
	document.write('</div>');
}
*/

function JSFX_FloatTopDiv()
{
	var startX = 1,
	startY = 50;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("divStayTopLeft");
	stayTopLeft();
}
JSFX_FloatTopDiv();
