function getWindowSize() {
    var myWidth = 0, myHeight = 0;
    if (typeof (window.innerWidth) == 'number') {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
    }
    else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
    }
    else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }
    return { width: myWidth, height: myHeight };
}

function adjustFlashMovieSize() {
    var windowSize = getWindowSize();
    var movie = (navigator.appName.indexOf("Microsoft") != -1 ? window[applicationID] : document[applicationID]);
    
    if(windowSize.width <=0)
    {
    	movie.width = 1;	
    }
    else
    {
    	movie.width = windowSize.width;	
    }
    
    if(windowSize.height <=0)
    {
    	movie.height = 1;	
    }
    else
    {
    	movie.height = windowSize.height;	
    }
}

function setFocus() {
    var windowSize = getWindowSize();
    var movie = (navigator.appName.indexOf("Microsoft") != -1 ? window[applicationID] : document[applicationID]);
    movie.focus();
    confirm("message");
	setTimeout(movie.focus, 1000);   	
}
//addEvent() by John Resig
function addEvent(obj, type, fn) {
    if (obj.addEventListener) {
        obj.addEventListener(type, fn, false);
    }
    else if (obj.attachEvent) {
        obj["e" + type + fn] = fn;
        obj[type + fn] = function() { obj["e" + type + fn](window.event); }
        obj.attachEvent("on" + type, obj[type + fn]);
    }
}
function addShit()	{
	addEvent((navigator.appName.indexOf("Microsoft") != -1 ? window[applicationID] : document[applicationID]), 'mousemove', setFocus);
}

//setTimeout(addShit ,1000);

addEvent(window, 'resize', adjustFlashMovieSize);