function openImgPopUp(imgUrl, imgName){
	MyWindow = window.open(imgUrl,"Picture","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=400,height=400");
	MyWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
	MyWindow.document.write('<html>');
	MyWindow.document.write('<head>');
	MyWindow.document.write('	<script type="text/javascript">');
	MyWindow.document.write('		function resizePopUp() {');
	MyWindow.document.write('			iWidth = document.documentElement.clientWidth;');
	MyWindow.document.write('			iHeight = window.innerHeight;');
	MyWindow.document.write('			if(iHeight == undefined) { iHeight = document.documentElement.clientHeight; }');
	MyWindow.document.write('			iWidth = document.images[0].width - iWidth;');
	MyWindow.document.write('			iHeight = document.images[0].height - iHeight;');
	MyWindow.document.write('			window.resizeBy(iWidth, iHeight);');
	MyWindow.document.write('		};');
	MyWindow.document.write('	</script>');
	MyWindow.document.write('	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
	MyWindow.document.write('	<title>'+imgName+'</title>');
	MyWindow.document.write('</head>');
	MyWindow.document.write('<body style="margin:0; padding:0;" onLoad="resizePopUp();">');
	MyWindow.document.write('	<img src="'+imgUrl+'" alt="'+imgName+'" />');
	MyWindow.document.write('</body>');
	MyWindow.document.write('</html>');
	MyWindow.document.close();
	return(false);
}

function open_gallery(gallery_id, pic_id){
	window.open(g_web_url+'gallery.php?gallery_id='+gallery_id+'&pic_id='+pic_id, "Gallery", "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=640,height=545");
	return false;
}

function firstpage_highlight_sax(sax_nr){
	var oPics = document.getElementById('sax_pic');
	var oImg = oPics.getElementsByTagName('img');
	for(var i=0; i < oImg.length; i++){
		if(i+1 == sax_nr){
			oImg[i].style.display = "block";
		}
		else{
			oImg[i].style.display = "none";
		}
	}
}
function firstpage_highlight_clear(){
	var oPics = document.getElementById('sax_pic');
	var oImg = oPics.getElementsByTagName('img');
	for(var i=0; i < oImg.length; i++){
		oImg[i].style.display = "block";
	}
}

function saveLanguageCookie(lang){
	var date = new Date();
	date.setTime(date.getTime()+(3600 * 24 * 30 * 1000)); //30 days
	var expires=date.toGMTString();
	
	document.cookie = 'language_ISWEB=' + lang + '; expires=' + expires + '; path=/';
}

/*  */
function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
//thisfield.value = "";
thisfield.select();
}
}
function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}

function menuActionShow()
{
	document.getElementById("lang1").className = "visible"; 
}
function menuActionHide()
{
	document.getElementById("lang1").className = "hidden";
}

