﻿/* Automatically generated by the Vilag web toolkit - http://www.vilag.org
Copyright (C) 2007-2009 Kutenich Ltd., all rights reserved.*/

var Vilag=new Object();Vilag.DetectBrowser=function(){function GetVersionNumber(str,start){var FoundDot=false;for(var l=0;l<8;l++){var c=str.charAt(start+l);if(c==null||c==" ")break;if(c=="."){if(FoundDot)break;FoundDot=true;}}v=Number(str.substr(start,l));return(v==null||v==0||v==NaN)?1:v;}var N=navigator.userAgent;var i=N.indexOf("Firefox");Vilag.BrowserFirefox=(i==-1)?0:GetVersionNumber(N,i+8);var i=N.indexOf("Opera");Vilag.BrowserOpera=(i==-1)?0:GetVersionNumber(N,i+6);var v=0;if(Vilag.BrowserOpera==0){var T=N.match(RegExp("MSIE \\d\\.\\d"));if(T!=null)v=GetVersionNumber(T[0],5);}Vilag.BrowserIE=v;var i=N.indexOf("Safari");var v=0;if(i!=-1){var T=N.match(RegExp("Version/\\d\\.\\d Safari"));if(T!=null)v=GetVersionNumber(T[0],8);}Vilag.BrowserSafari=v;};Vilag.MainOnResize=function(){var H=document.getElementById("vHeadline");var L=document.getElementById("vLeftPanel");var C=(Vilag.Panel&&vPanel.Panels&&vPanel.Panels[0])?vPanel.Panels[0].DivNode:document.getElementById("vContent");var F=document.getElementById("vFooter");var sw=""+((document.body.offsetWidth<1024)?1024:document.body.offsetWidth)+"px";if(H)H.style.width=sw;if(F)F.style.width=sw;if(H){var hh=H.offsetHeight;var hm=35;var st=Number(hh+hm)+"px";if(L)L.style.top=st;if(C)C.style.top=st;var ch=(C)?C.offsetHeight:0;var lh=(L)?L.offsetHeight:0;var nh=(C||L)?(hm+((ch>lh)?ch:lh)):0;if(F){var h=0;if(typeof(window.innerHeight)=="number"){h=window.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){h=document.documentElement.clientHeight;}else if(document.body&&document.body.clientHeight){h=document.body.clientHeight;}var fh=F.offsetHeight;var th=h-fh;var tc=hh+hm+nh;var t=(th>tc)?th:tc;F.style.top=Number(t)+"px";}}if(F)F.style.display="block";};Vilag.MainArrange=function(){Vilag.MainOnResize();setTimeout(Vilag.MainArrange,100);};window.onload=function(){Vilag.DetectBrowser();document.body.className=(Vilag.BrowserIE&&Vilag.BrowserIE<7)?"IE6":"nonIE6";Vilag.MainArrange();window.onresize=Vilag.MainOnResize;};