var preloaded = [];

for (var i = 1; i <= 5; i++) {
	//preloaded[i] = [loadImage(i + "-0.gif"), loadImage(i + "-1.gif")];
}

function init() {
	//==========================================================================================
	if (mtDropDown.isSupported()) {
		mtDropDown.initialize();
		document.getElementById('main_menu').style.visibility = 'visible';
		document.getElementById('bottom').style.visibility = 'visible';
	}
}

if (document.images){
	SrcArr = new Array ("act_bg","sp");
	ImgArr = new Array ();
	j = 0;
	
	for (i in SrcArr)
	{
		ImgArr[j] = new Image ();
		ImgArr[j].src = "/images/" + SrcArr[i] + ".gif";
		j++;
	}
}

function ChgImg(ImNm, Pic){
	if (document.images) {
	    document.images[ImNm].src = "/images/"+ Pic + ".gif";
	}
}

// this is a crappy example preloader. Use whichever one you want.
function loadImage(sFilename) {
	var img = new Image();
	img.src ="/_images/nav/" + sFilename;
	return img;
}

// this is a crappy example image swapper. Use whichever you want.
function swapImage(imgName, sFilename) {
	document.images[imgName].src = sFilename;
}

function browse_h() {
 if (document.body.clientHeight) return document.body.clientHeight;
 return window.innerHeight;
}

function PlaceBottom() {
    height = browse_h();
	offsetTop =	document.getElementById('induk').offsetTop;
	if ( height > offsetTop ) {
		document.getElementById('bottom').style.position = 'absolute';
    	document.getElementById('bottom').style.top = height - 44 + 'px';
	} else {
		document.getElementById('bottom').style.position = 'static';
	}
	
}