var lastTab="manage";

function switchTab(tab)
{
	sp1.showPanel(tab);
	return false;
}

function localToGlobal(e)
{
	var curLeft = 0;
	var curTop = 0;

	do
	{
		curLeft += e.offsetLeft;
		curTop += e.offsetTop;
	} while(e = e.offsetParent);

	return {x:curLeft, y:curTop};
}

function zoomOut()
{
	var h = $('hover1');
	h.style.display = 'none';
	h.style.left = 0;
	h.style.right = 0;
}


var sp1 = new Spry.Widget.SlidingPanels("indextop-scroller");

$(".thumb-screen1, .thumb-screen2, .thumb-screen3").mouseenter ( function ()
{
        $(this).animate({top: "-=45", left: "-=62", width: "232px", height: "180px" }, 0);
        $(this).css( { "background-position": "bottom right", "z-index": "1000", "border": "1px solid gray" } );
} ).mouseleave ( function ()
{
        $(this).animate({top: "+=45", left: "+=62", width: "113px", height: "92px" }, 0);
        $(this).css( { "background-position": "top left", "z-index": "1", "border": "none" } );
} );




