function hidePicture(hpp_no, _max, _strStart){
	for(var hpp_nn = 0; hpp_nn < _max; hpp_nn ++){
		var hpp_str	= _strStart + (hpp_nn + 1);
		if(hpp_no == hpp_nn)
			document.getElementById(hpp_str).style.visibility = "visible";
		else
			document.getElementById(hpp_str).style.visibility = "hidden";
	}
}

function hideArtPicture(hap_no){
	for(var hap_nn = 1; hap_nn < 7; hap_nn ++){
		var hap_str	= "art" + hap_nn;
		if(hap_no == hap_nn)
			document.getElementById(hap_str).style.visibility = "visible";
		else
			document.getElementById(hap_str).style.visibility = "hidden";
	}
}

function showLink(link_url){
  window.location.assign(link_url);
}

function changeImage(image_id, image_url){
 image_id.src = image_url;
}

function changeTextColor(style_id, color){
 document.getElementById(style_id).style.color= color;
}

function ShowPicturesFrame(){
  document.getElementById("pictures").style.visibility="visible";
  document.getElementById("strong_background").style.visibility="visible";
        
  document.getElementById("all_page").style.opacity=0.4;
  
  parent.document.getElementById("pictures").style.top  = (window.outerHeight/2 - 524/2) + "px";
  parent.document.getElementById("pictures").style.left = (window.outerWidth/2 - 419/2) + "px";
}

function HidePicturesFrame() {
    if (IsNetscape()) {
        parent.document.getElementById("pictures").style.visibility = "hidden";
        parent.document.getElementById("strong_background").style.visibility = "hidden";

        parent.document.getElementById("all_page").style.opacity = 1;
        HideCloseHint();
    }
    else {
        history.back();
    }
}

function ShowCloseHint(event){
  document.getElementById("close_hint").style.visibility="visible";
  document.getElementById("close_hint").style.left = (event.clientX - 250) + "px" ; //"1px";
  document.getElementById("close_hint").style.top  = (event.clientY + 10)  + "px";  
}

function HideCloseHint(){
  document.getElementById("close_hint").style.visibility="hidden";
}

var show_next_picture_index = 0;
function ShowNextPicture(image_id) {
    ++show_next_picture_index;
    if (show_next_picture_index >= 9) {
        show_next_picture_index = 0;
    }
    changeImage(document.getElementById(image_id), "images2/big_img_0" + show_next_picture_index + ".jpg");
    var tmpHeight = document.getElementById(image_id).height;
    var tmpWidth = document.getElementById(image_id).width;
    var tmpAdjHeight = 528 - 500;
    var tmpAdjWidth = 424 - 375;
    if (IsNetscape()) {
        window.resizeTo(tmpAdjHeight + tmpHeight, tmpAdjWidth + tmpWidth);
    }
}

function IsNetscape() {
    var browser = navigator.appName;
    return (browser.toLowerCase() == 'netscape')
}

