// JavaScript Document
//window.onscroll = slideblock;

function slideblock()
{
	//alert('Sliding');
	var e = window.event;
	var oblock = document.getElementById('HL');
	var scrheight = screen.availHeight;
	var deltay = scrheight/2 - oblock.offsetTop;
	//alert(oblock.offsetTop);
	//oblock.style.top = 500;
	//alert(oblock.top);
	e.cancelBubble = true;
	if (e.stopPropagation) e.stopPropagation();

}

function onmenu(iid)
{
	var oitem = document.getElementById(iid);
	oitem.style.backgroundImage = 'url(images/'+iid+'_on.jpg)';
}

function outmenu(iid)
{
	var oitem = document.getElementById(iid);
	oitem.style.backgroundImage = 'url(images/'+iid+'.jpg)';
}


function openPicture (e, pname, wdth, hght)
	{
		   var dims;
		   if ( (screen.width <= wdth) || (screen.height <= hght) ) return 
		   else
		   dims = '"height='+hght+',width='+wdth+',';
		   window.open(pname,null,dims+'menubar=no,resizable=no,status=no,titlebar=no,toolbar=no"');
		if (!e) var e = window.event;
	  	// handle event
	  	e.cancelBubble = true;
	  	e.returnValue = false;
	 	 if (e.stopPropagation)
	  	 {
	       e.stopPropagation();
		   e.preventDefault();
	   	 }	
	}