			var ie = navigator.appName.indexOf("Microsoft") != -1;
			var mac = navigator.appVersion.indexOf("Mac") != -1
			var dom = document.getElementById ? true:false;
			var nn4 = document.layers ? true:false;
			var width;
			var height;

			function inet_resize() {
				if (ie) {
					height = document.body.clientHeight;
					width = document.body.clientWidth;
				} else {
					width = window.innerWidth;
					height = window.innerHeight;
				}
				
				cheight = height-157;
				
				if (cheight < 200) {
					cheight = 200;
				}
				document.getElementById("inet_content").style.height = cheight + "px";
			}

			function inet_checkSize() {
				if (ie) {
					cwidth = document.body.clientHeight;
					cheight = document.body.clientWidth;
				} else {
					cwidth = window.innerWidth;
					cheight = window.innerHeight;
				}

			   if (width != cwidth) {
				  inet_resize();
			   } else if (height != cheight) {
				  inet_resize();
			   }
			   
			   window.setTimeout( "inet_checkSize()", 500);
			}

			function inet_resize_init() {
				if ((mac) && (!nn4)) {
				  	width = window.innerWidth;
					height = window.innerHeight;
					inet_resize()
					window.setTimeout( "inet_checkSize()", 500);
				} else {
					inet_resize();
				}
			}

	
	
			function inet_pop_win(pageToLoad, winName, width, height, center, ramme) {
				xposition=0; yposition=0;
				if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
					xposition = (screen.width - width) / 2;
					yposition = (screen.height - height) / 2;
					}
				width = width + ramme * 2
				args = "width=" + width + "," 
				+ "height=" + height + "," 
				+ "location=0," 
				+ "menubar=0,"
				+ "resizable=0,"
				+ "scrollbars=0,"
				+ "status=0," 
				+ "titlebar=0,"
				+ "toolbar=0,"
				+ "hotkeys=0,"
				+ "left=" + xposition + ","
				+ "top=" + yposition;

				window.open(pageToLoad+"&ramme="+ramme,winName,args );
			}

			function inet_open_win() {
				if (ua["dom"]) {
					var url = "";
					var target = "";

					var attributes = "";


					if (arguments.length > 0) {
						url = arguments[0];
					}

					//Target attribute:
					if (arguments.length > 1) {
						target = arguments[1];
					}
						
					//Optional attributes:
					if (arguments.length > 2) {
						attributes = arguments[2];
					}
				
					win = window.open(url, target, attributes);
					win.focus();
					return false;
				}
			}

			/**** INIT ****/

			function addLoadEvent(func) {
				var oldonload = window.onload;
				if (typeof window.onload != "function") {
					window.onload = func;
				}
				else {
					window.onload = function() {
						oldonload();
						func();
					}
				}
			}