var gright=160;
var gbottom=57;
var lright=189;
var lbottom=160;
var pageWidth,pageHeight;

var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;

function makeObj(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
   	this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')							
	this.moveIt=b_moveIt;
}

function b_moveIt(x,y){
   	this.css.left=x
	this.css.top=y
	this.css.visibility="visible"
}

function geoInit(){
	oLogo=new makeObj('divBottom')
	oBild=new makeObj('divBottom1')
	pageWidth=(ie)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(ie)?document.body.offsetHeight-2:innerHeight;
	checkIt()
	onresize=resized
	if(ie) window.onscroll=checkIt;
        if(n) setInterval("checkIt()",100);
}

function checkIt(){
	if(ie) {
		oLogo.moveIt(document.body.scrollLeft +pageWidth-gright,document.body.scrollTop+pageHeight-gbottom);
		oBild.moveIt(document.body.scrollLeft +pageWidth-lright,document.body.scrollTop+pageHeight-lbottom);
	        
	       }
	if(n) {
		oLogo.moveIt(window.pageXOffset+pageWidth-gright, window.pageYOffset+pageHeight-gbottom);
		oBild.moveIt(window.pageXOffset+pageWidth-lright, window.pageYOffset+pageHeight-lbottom);
	        
	      }
}

function resized(){
	pageWidth=(ie)?document.body.offsetWidth-4:innerWidth;
	pageHeight=(ie)?document.body.offsetHeight-2:innerHeight;
	if (ie) checkIt();
	initialLight();
}

onload=geoInit;

if(n || ie)  { 
	document.write('<div id="divBottom"><img src="images/logo.gif" width=96 height=51 border=0></div>');
	document.write('<div id="divBottom1"><img src="images/logo',x,'.gif" width=48 height=63 border=0></div>');
	}