function FlashMovie(src,movie,width,height,version,quality,menu,bgcolor,flashvars) {document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0' width='"+width+"' height='"+height+"' id='"+movie+"'>");document.write("<param name='movie' value='"+src+"' />");document.write("<param name='quality' value='"+quality+"' />");document.write("<param name='menu' value='"+menu+"' />");document.write("<param name='bgcolor' value='"+bgcolor+"' />");document.write("<embed src='"+src+"' swLiveConnect='true' menu='"+menu+"' quality='"+quality+"' bgcolor='"+bgcolor+"' width='"+width+"' height='"+height+"' name='"+movie+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");document.write("</object>");}
function CookieHandler() {

    this.setCookie = function (name, value, seconds) {

        if (typeof(seconds) != 'undefined') {
            var date = new date();
            date.setTime(date.getTime() + (seconds*1000));
            var expires = "; expires=" + date.toGMTString();
        }
        else {
            var expires = "";
        }

        document.cookie = name+"="+value+expires+"; path=/";
    }

    this.getCookie = function (name) {

        name = name + "=";
        var carray = document.cookie.split(';');

        for(var i=0;i < carray.length;i++) {
            var c = carray[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
        }

        return null;
    }

    this.deleteCookie = function (name) {
        this.setCookie(name, "", -1);
    }

}
var Cookies = new CookieHandler();
var screen = Cookies.getCookie('screen');
if (typeof(screen) == 'undefined') {
    Cookies.setCookie('screen', '1', 1);
    self.location.href = '?h='+screen.height+'&w='+screen.width;
}