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

var Vilag=(function()
{var This=new Object();var T=navigator.appVersion.match(RegExp("MSIE \\d\\.\\d"));if(!T)
{This.BrowserIE=0;}
else
{var S=(new String(T)).substring(5);if(S.length)
{var C=S.charAt(0);if(C>='0'&&C<='9')This.BrowserIE=Number(C);if(S.length>=3&&S.charAt(1)=='.')
{var C=S.charAt(2);if(C>='0'&&C<='9')This.BrowserIE+=0.1*Number(C);}
}
}
This.BrowserOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);This.BrowserFirefox=(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1);return This;})();Vilag.ExtractPixelCount=function(s)
{var n=s.length;if((s.charAt(n-1)=='x')&&(s.charAt(n-2)=='p'))
{return Number(s.substring(0,n-2));}
return 0;}
Vilag.FooterElementMarginTop=0;Vilag.MainOnresize=function()
{if(Vilag.BrowserIE&&Vilag.BrowserIE<=6)
{var w=document.body.clientWidth;if(w<1024)w=1024;document.getElementById("vMainElement").style.width=w+"px";if(w>=1024)document.body.style.width=null;}
var F=document.getElementById("vFooterElement");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 t=F.offsetTop;for(var I=F.offsetParent;I;I=I.offsetParent)t+=I.offsetTop;var fh=F.offsetHeight;var mt=Vilag.ExtractPixelCount(F.style.marginTop);Vilag.FooterElementMarginTop=25;mt=h-t+mt-fh;if(mt<Vilag.FooterElementMarginTop)mt=Vilag.FooterElementMarginTop;F.style.marginTop=Number(mt)+"px";if(Vilag.BrowserOpera||Vilag.BrowserFirefox)F.style.paddingBottom="20px";}
}
Vilag.MainArrange=function()
{Vilag.MainOnresize();setTimeout(Vilag.MainArrange,100);}
window.onload=function()
{if(Vilag.BrowserIE&&Vilag.BrowserIE<7)
{if(document.body.clientWidth<1024)document.body.style.width="1024px";document.body.className="IE6";}
else
{document.body.className="nonIE6";}
Vilag.MainArrange();window.onresize=Vilag.MainOnresize;};