			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) {
					cheight = document.body.clientHeight;
				} else {
					width = window.innerWidth;
					height = window.innerHeight;
					cheight = height;
				}

				cheight = cheight - 140;
				
				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();
			   if (height != cheight) {
				  inet_resize();
			   }
			   
			   window.setTimeout( "inet_checkSize()", 500);
			}

			function inet_resize_init() {
				if ((dom) || ((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_swapImgRestore() { //v3.0
			  var i,x,a=document.INET_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
			}

			function INET_preloadImages() { //v3.0
			  var d=document; if(d.images){ if(!d.INET_p) d.INET_p=new Array();
				var i,j=d.INET_p.length,a=INET_preloadImages.arguments; for(i=0; i<a.length; i++)
				if (a[i].indexOf("#")!=0){ d.INET_p[j]=new Image; d.INET_p[j++].src=a[i];}}
			}

			function INET_findObj(n, d) { //v4.0
			  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
				d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
			  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
			  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=INET_findObj(n,d.layers[i].document);
			  if(!x && document.getElementById) x=document.getElementById(n); return x;
			}

			function INET_swapImage() { //v3.0
			  var i,j=0,x,a=INET_swapImage.arguments; document.INET_sr=new Array; for(i=0;i<(a.length-2);i+=3)
			   if ((x=INET_findObj(a[i]))!=null){document.INET_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
			}
