

// checks the name of your browser

// isIE or isNN are boolean varibles identeficated this



isNN=navigator.appName.indexOf('Netscape')>=0;

isIE=navigator.appName.indexOf('Explorer')>=0;



var bV=parseInt(navigator.appVersion);

NS4=(document.layers) ? true : false;

IE4=((document.all)&&(bV>=4))?true:false;

ver4 = (NS4 || IE4) ? true : false;



// -------------------------------------------

// open extra window

// usage: openWindow("test.htm") or openWindow("test.jpg", 200, 120)



function openWindow(filename, w, h, winname)

{

    var nWidth;

        var nHeigth;

				if(filename.match(/\?/)){
					         filename += '&'+Math.random();
				}else{
					         filename += '?'+Math.random();
				}

        if (h) nHeigth = h; else nHeigth = 500;

        if (w) nWidth = w; else nWidth = 700;

        if (!winname) winname = "_blank";
        var desktop = window.open(filename, winname,

    "width="+nWidth+",height="+nHeigth+",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");

};










function mousePageXY(e)
{
    if (!e) e = window.event;
    if (e.pageX || e.pageY)
    {
      mouse_x = e.pageX;
      mouse_y = e.pageY;
    }
    else if (e.clientX || e.clientY)
    {
      mouse_x = e.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft) - document.documentElement.clientLeft;
      mouse_y = e.clientY + (document.documentElement.scrollTop || document.body.scrollTop) - document.documentElement.clientTop;
    }

}
document.onmousemove = function(e){var mCur =mousePageXY(e);}

function out_big_photo(filename){
		//alert(filename);
		var par=document.getElementById('bigimage');
		var bigimage_div=document.createElement('div');
		bigimage_div.innerHTML="<img src='photos/"+filename+"'>"+filename;
		par.appendChild(bigimage_div);
		bigimage_div.style.position='absolute';
    bigimage_div.style.top=mouse_y+15+'px';
    bigimage_div.style.left=mouse_x+5+'px';		

}

function erase_big_photo(){
	document.getElementById('bigimage').innerHTML='';
}