	function hidAds() {
		var item3 = document.getElementById("tdAds");
		if (item3) {
			item3.className='hidden'; 
		}
		return false;	
	}
	function closeSplash(SplashName) {
		//var oManager = GetRadWindowManager();
		//var oWnd = oManager.GetWindowByName("Radwindow1");
		//oWnd.Close(); // stäng splashen
		
		var item = document.getElementById(SplashName);
		if (item) {
			item.className='hidden'; // och ta bort det klickbara lagret
		}
		var item2 = document.getElementById(SplashName + "Catcher");
		if (item2) {
			item2.className='hidden'; // och ta bort det klickbara lagret
		}
		var item3 = document.getElementById("tdAds");
		if (item3) {
			item3.className='unhidden'; // och ta bort det klickbara lagret
		}
		
		return false;	
	}

	

    function SetDivSize(SplashName){
        var x,y;
        var page_width, page_height 
        var test1 = document.body.scrollHeight;
        var test2 = document.body.offsetHeight
        var htmlheight = document.body.parentNode.scrollHeight;
        page_width = document.body.clientWidth;
        page_height = document.body.clientHeight;
        if (test1 > test2) {// all but Explorer Mac            
            x = document.body.scrollWidth;
            y = document.body.scrollHeight;
        }
        else {// Explorer Mac, would also work in Explorer 6 Strict, Mozilla and Safari
            x = document.body.parentNode.scrollWidth;
            y = document.body.parentNode.scrollHeight;
            page_width = document.body.offsetWidth;
            page_height = document.body.offsetHeight;
        }
        //var isIE6 = ((navigator.appName == "Internet Explorer") || navigator.appVersion.indexOf("MSIE") !=-1)) && (parseInt(navigator.appVersion) >= 6) // test for IE6
        var isIE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;

        if (isIE6) // test for IE 6
        { 
            page_width = document.body.clientWidth;
            page_height = 600;
        }
        

        var item2 = document.getElementById(SplashName + "Catcher");
        if (item2) {
            item2.style.height = y+'px';
            item2.style.width = x+'px';
            layerSetup(page_width, page_height, SplashName);
        }
    }

    function layerObject(id, position, left, top, visibility) {
        this.obj = document.getElementById(id).style;
        this.obj.position = position;
        this.obj.left = left+'px';
/*        this.obj.top = top+'px';*/
        this.obj.top = 300 +'px';
        this.obj.visibility = visibility;
        return this.obj;
    }

    function layerSetup(width, height, SplashName) {
    //765 360
        centerLyr = new layerObject(SplashName, 'absolute', width/2-400, height/2-200, 'visible');
        //centerLyr = new layerObject(SplashName, 'absolute', width/2-260, height/2-139, 'visible');
        //centerLyr2 = new layerObject('self', 'absolute', width/2-260, height/2-139, 'visible');
    }
