ns4 = (document.layers)? true:false ;
ie4 = (document.all)? true:false ; 

function OpenWindow(Path) {
	window.open(Path,'','width=780,height=520,scrollbars=yes');
	return void(0);
}

function showWar() {
	if (ns4) document.layers.War.visibility = "show"
           else if (ie4) War.style.visibility = "visible"
}

function hideWar() {
	if (ns4) document.layers.War.visibility = "hide"
           else if (ie4) War.style.visibility = "hidden"
}


function showZoom1() {
	var x=window.location.href
	
	if (x.charAt(x.length-5)==".") { 
	y=x.substring(x.length-8,x.length-5)

	OpenWindow('images_zoom/'+y+'_1.jpg')
	} else {
	y=x.substring(x.length-9,x.length-6)

	OpenWindow('images_zoom/'+y+'_1.jpg') }
}


function showZoom2() {
	var x=window.location.href
	
	if (x.charAt(x.length-5)==".") { 
	y=x.substring(x.length-8,x.length-5)

	OpenWindow('images_zoom/'+y+'_2.jpg')
	} else {
	y=x.substring(x.length-9,x.length-6)

	OpenWindow('images_zoom/'+y+'_2.jpg') }
}


