function popup(source, height, width){
	xl = (screen.availWidth/2)-(width/2)
	tt = (screen.availHeight/2)-(height/2)
	picture=window.open(source,'showSearch','toolbar=no,scrolling=auto,resizable=no,location=no,directories=no,status=no,scrollbars=auto,menubar=no,width='+width+',height='+height+',left='+xl+',top='+tt);
	picture.focus()
}

function showMLDiv(divId){
	if(document.getElementById(divId).style.display == 'none') {
		document.getElementById(divId).style.display = 'inline';
		document.getElementById('image_'+divId).src = 'images/minus.gif';
	}	
	else {
		document.getElementById(divId).style.display = 'none';
		document.getElementById('image_'+divId).src = 'images/plus.gif';
	}	
}
function showDiv(item){
	e = document.getElementById(item)
	if(e.style.display == 'none') e.style.display = 'inline';
	else e.style.display = 'none';
}

function changeClass(id, className){
	document.getElementById(id).className = className;
}
function frameInit() {
	var checkStr = navigator.appVersion

	if(document.getElementById('ifrmDownload') && checkStr.indexOf('Safari') > 0){
		document.getElementById('ifrmDownload').style.height = document.body.clientHeight - 160
	}
}

function init() {
	imagesInit();
	frameInit();
}