$(document).ready(function()
{	  
    // Tabs
	$('#game-detail').tabs();

});

function OpenImage(aUrl, aWidth, aHeight, aEvent)
{
    var oDiv = document.getElementById('divPicture');
    var docRoot = document.documentElement;
    if (docRoot.clientHeight < aEvent.clientY+aHeight/2)
    {
        oDiv.style.top = docRoot.scrollTop+docRoot.clientHeight-aHeight+ 'px';
    }
    else
    {
        oDiv.style.top = docRoot.scrollTop+aEvent.clientY-aHeight/2+ 'px';
    }
    oDiv.style.left = docRoot.scrollLeft+aEvent.clientX-aWidth/2 + 'px';
    oDiv.style.width = aWidth + 'px';
    oDiv.style.height = aHeight + 'px';
    oDiv.innerHTML = '<img src="' + aUrl + '" width="' + aWidth + '" height="' + aHeight + '" onclick="javascript:CloseImage();" onmouseout="javascript:CloseImage();"/>';
    if (typeof(oDiv.filters)!='undefined')
    {
        oDiv.style.filter='progid:DXImageTransform.Microsoft.Fade()';
        oDiv.filters[0].apply();
        oDiv.filters[0].play(0.600);
    }
    oDiv.style.display = 'block';
}

function CloseImage()
{
    document.getElementById('divPicture').style.display = 'none';
}

function OpenStarterGame(url)
{
    window.open(url, 'fg', 'width=574,height=504,resizable=no', true);
}
