
	Window = {	

		getWindowWidth : function() {return (document.layers||(document.getElementById&&!document.all)) ? window.outerWidth : (document.all ? document.body.clientWidth : 0);},

	 	getScrollWidth : function() {return document.all ? Math.max(Math.max(document.documentElement.offsetWidth, document.documentElement.scrollWidth), document.body.scrollWidth) : (document.body ? document.body.scrollWidth : ((document.documentElement.scrollWidth != 0) ? document.documentElement.scrollWidth : 0));},

	 	getScrollLeft : function() {return document.all ? (!document.documentElement.scrollLeft ? document.body.scrollLeft : document.documentElement.scrollLeft) : ((window.pageXOffset != 0) ? window.pageXOffset : 0);},

	 	getScrollTop : function() {return document.all ? (!document.documentElement.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop) : ((window.pageYOffset != 0) ? window.pageYOffset : 0);}

	}

	

	function switchClass(passTarget,passClass) {

		if (passTarget === undefined) {

		

		} else {

			document.getElementById(passTarget).className = passClass;

		};

	}

	

	function initCobra(windowWidth, targetWidth) {

		if ( windowWidth < targetWidth ) {

			switchClass("cobra-bottle","cobra-positionreduced");

		} else {

			switchClass("cobra-bottle","cobra-positionfull");

		}

	}