function init()
{
	adjust_div();
	//fade_effect();
}

function fade_effect()
{
	if (document.getElementById)
		var x = document.getElementById('sub-categories-list');
	else if (document.all)
		var x = document.all['sub-categories-list'];
	else return;	
			
	for (var i=0;i<x.length;i++)
	{
		/*
		x[i].onmouseover = function () {this.style.opacity="1"; alert("damn")}
		x[i].onmouseover = function () {this.style.filter="alpha(opacity=100)";}
		x[i].onmouseout = function () {this.style.opacity="0.7";}
		x[i].onmouseout = function () {this.style.filter="alpha(opacity=70)";}
		*/
		
		x[i].onmouseover = 'alert("bang")';
		alert("wa");
	}
}

function changeLanguage(link)
{	
	window.location = link;
}

function adjust_div()
{
	page_height = getPageSizeWithScroll();
	document.getElementById('main-wrapper').style.height = (page_height - 80) + "px";
}

function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight + document.body.offsetTop;
		xWithScroll = document.body.offsetWidth + document.body.offsetLeft; 		
  	}
	//arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	//return arrayPageSizeWithScroll;
	return yWithScroll;
}

