var DOM = (document.getElementById)?true:false;
var NN = (document.layers)?true:false;
var IE = (document.all)?true:false;
var NN6 = DOM;
var Opera = DOM && window.opera;
function getElement(objname)
{
  if (IE) return document.all[objname];
  if (NN) return getNNElement(null, objname);
  if (DOM) return document.getElementById(objname);
}

function high(which2){
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30	
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=1
else if (which2.filters)
which2.filters.alpha.opacity=100
} 
function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

function changeImg(url,name)
{
   el=getElement(name);
   el.src=url;
}
function openimgbig(x_size,y_size,url,pic_id)
        {
status_str='toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+x_size+'px,height='+y_size+'px';
wins='winpic'+pic_id;
winss=window.open('/img.php?url='+url, wins, status_str);
winss.focus();
        }
        
        function catalogmore(type,id)
	        {
	status_str='toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=800px,height=500px';
	wins='win'+id;
	window.open('/catalog_more.php?type='+type+'&id='+id, wins, status_str);
	//wins.focus();
        }

