function showResume()
{
  plain_window =  window.open("./RokitkaResume.htm","Mike", "height=500,width=700,resizable=1,menubar=1,scrollbars=1");
  plain_window.moveTo(50,50);
}

function showTests()
{
  plain_window =  window.open("./tests.htm","Mike", "height=500,width=700,resizable=1,menubar=1,scrollbars=1");
  plain_window.moveTo(50,50);
}

//check resol. and warn if not supported on site
var y = screen.height;
var x = screen.width;
if (x <= 640)
{
	alert("Warning: This site is designed to be viewed in 800x600 screen resolution or higher");
}
	

if (!document.layers)
document.write('<div id="divStayTopLeft">')

document.write('<layer id="divStayTopLeft">')

<!--EDIT BELOW CODE TO YOUR OWN MENU-->
document.write('<table border="1" width="160" cellspacing="0" cellpadding="0" bgcolor="#D3D3D3">')
document.write('<tr><td>')
document.write('<a href="index.php" style="text-decoration: none">Home</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="" onclick="showResume();" style="text-decoration: none">R&#233sum&#233</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./portfolio.php" style="text-decoration: none">Portfolio</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./prog.php" style="text-decoration: none">Programming</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./polish.php" style="text-decoration: none">Polish</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./food.php" style="text-decoration: none">Cooking</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./fitness.php" style="text-decoration: none">Fitness</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./gallery.php" style="text-decoration: none">Gallery</a><br></td></tr>')   
document.write('<tr><td>')
document.write('<a href="./links.php" style="text-decoration: none">Links</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./about.php" style="text-decoration: none">About</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./phpBB2/index.php" target="_blank" style="text-decoration: none">Forum</a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="./rss/news.rss" style="text-decoration: none">RSS Feed <img src="./rss/xmlicon.gif" border=0></a><br></td></tr>')
document.write('<tr><td>')
document.write('<a href="mailto:wasymichal@roadrunner.com?subject=Website" style="text-decoration: none">Contact</a><br>')
document.write('</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"
var verticalpos="fromtop"

if (!document.layers)
document.write('</div>')

function JSFX_FloatTopDiv()
{
	var startX = 3,
	startY = 100;
	var ns = (navigator.appName.indexOf("Microsoft") == -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();