/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function addFavorites(title){
    var url = window.location;

    if (window.sidebar){
        window.sidebar.addPanel(title, url,"");

    }else if(window.opera && window.print){
        var mbm = document.createElement( 'a' );
        mbm.setAttribute( 'rel', 'sidebar' );
        mbm.setAttribute( 'href', url  );
        mbm.setAttribute( 'title', title );
        mbm.click();

    }else if(document.all){
        window.external.AddFavorite(url, title);
    }
}


function fullScreen(url){
    width = 975;
    height = 630;
    leftPosition = (screen.width) ? (screen.width-width)/2 : 0;

    if (screen.height && (screen.height <= 600)) {
        topPosition = 0;
    } else {
        topPosition = (screen.height) ? (screen.height-height)/2 : 0;
    }

    var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbar=0,resizable=0,status=0';
    var popup=window.open(url, 'gamepopup', settings); popup.focus();
}


