		var n = (document.layers) ? 1:0;
		var ie = (document.all) ? 1:0;
		
		var imageAlign = "topright";
		var LayerWidth = 60;        
		var LayerHeight = 330;

		function dynLayer(id,nestref) {
			if (n) {
					this.css = document.layers[id];
			}
			else if (ie) {
					this.css = document.all[id].style;
			}

			this.moveBy = dynLayerMoveBy
			this.moveTo = dynLayerMoveTo
		}

		function dynLayerMoveBy(x,y) {
			this.x += x
			this.css.left = this.x
			this.y += y
			this.css.top = this.y
		}
		function dynLayerMoveTo(x,y) {
			this.x = x
			this.css.left = this.x
			this.y = y
			this.css.top = this.y
		}

		function wtrmark() {
		if (n) {
			windowWidth = window.innerWidth-17;
			windowHeight = window.innerHeight-17;
			if (imageAlign == "topleft")    mark.moveTo(window.pageXOffset,window.pageYOffset)
			if (imageAlign == "topright")   mark.moveTo(windowWidth-LayerWidth+window.pageXOffset,window.pageYOffset)
			if (imageAlign == "bottomleft") mark.moveTo(window.pageXOffset,windowHeight-imageHeight+window.pageYOffset)
			if (imageAlign == "bottomright")mark.moveTo(windowWidth-LayerWidth+window.pageXOffset,windowHeight-imageHeight+window.pageYOffset)
			}

		else if (ie) {
			if(document.body.scrollWidth>document.body.clientWidth) {
				windowWidth = document.body.scrollLeft+document.body.clientWidth-75;
			}
			else {
				windowWidth = document.body.scrollWidth-75;
			}
			windowHeight = document.body.scrollTop+150;
			mark.moveTo(windowWidth,windowHeight);
		}

		}

        // ¸Þ´º ÃÊ±âÈ­
        function InitializeStaticMenu()
        {
			STATICMENU.style.left = screen.width;
			mark = new dynLayer("STATICMENU",null);
			setInterval("wtrmark()",10);
        }


