function getFlashMovie(movieName)
{
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

function dimensions()
{
	getFlashMovie( SWFID ).getDimensions($(window).width(), $(window).height());
}

function GAtrack( page )
{
	_gaq.push(['_trackPageview', page]);
}

function popup( url, width, height )
{
    if (width === null || width === undefined) {
        width = 300;
    }
    if (height === null || height === undefined) {
        height = 200;
    }
    var left   = (screen.width  - width) * .5;
    var top    = (screen.height - height) * .5;
    var params = 'width='+width+', height='+height;
    params += ', top='+top+', left='+left;
    params += ', directories=no';
    params += ', location=no';
    params += ', menubar=no';
    params += ', resizable=no';
    params += ', scrollbars=no';
    params += ', status=no';
    params += ', toolbar=no';
    
    var newwin = window.open( url, 'FBSpopupWindow', params );
    
    if ( window.focus ) {
        newwin.focus()
    }
    return false;
}

