dom = (document.getElementById)? true : false;
nn4 = (document.layers)? true : false;
ie4 = (!dom && document.all)? true : false;

bookmarkMain1=new Image(); bookmarkMain1.src="image/bookmarkMain1.gif";
bookmarkComp1=new Image(); bookmarkComp1.src="image/bookmarkComp1.gif";
bookmarkServ1=new Image(); bookmarkServ1.src="image/bookmarkServ1.gif";
bookmarkProd1=new Image(); bookmarkProd1.src="image/bookmarkProd1.gif";
bookmarkProj1=new Image(); bookmarkProj1.src="image/bookmarkProj1.gif";
bookmarkCont1=new Image(); bookmarkCont1.src="image/bookmarkCont1.gif";


bookmarkMain2=new Image(); bookmarkMain2.src="image/bookmarkMain2.gif";
bookmarkComp2=new Image(); bookmarkComp2.src="image/bookmarkComp2.gif";
bookmarkServ2=new Image(); bookmarkServ2.src="image/bookmarkServ2.gif";
bookmarkProd2=new Image(); bookmarkProd2.src="image/bookmarkProd2.gif";
bookmarkProj2=new Image(); bookmarkProj2.src="image/bookmarkProj2.gif";
bookmarkCont2=new Image(); bookmarkCont2.src="image/bookmarkCont2.gif";


function change(imgModule,imgObject) { 
document.images[imgModule].src = eval(imgObject + ".src"); 
//alert(document.images[imgModule].src);
}



function show(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='visible';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all)
        document.all[object].style.visibility = 'visible';
}


function hide(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='hidden';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}


function hideall() { hide('mopen1'); hide('mopen2'); hide('mopen3'); hide('mopen4'); hide('mopen5'); hide('mopen6');}


function photo(name, size) {
    window.open(name, '_blank', size)
}