function roll_over(img_name, img_src)
{
//element = document.getElementById(img_name);
//element.src='images/'+img_src;
   document[img_name].src = 'images/'+img_src;
}
function otworz(adres) {
noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no, width=360, height=720')
}

function otworzSize(adres, width, height) {
width+=30;
height+=30;
noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no, width='+width+', height='+height)
}

function otworz2(adres) {
adres = adres+"?img="+getElement('galBig').src;
adres = adres.replace(/prodmin/, "prod");
noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no, width=520, height=720')
}


function roll_over_id(img_id, img_src, imgName){
    getElement('img_info').innerHTML="<h1>"+imgName+"</h1>";
	getElement(img_id).src = img_src;
}


function getElement(id){
    if(document.getElementById){
        getElement = function(id){ return document.getElementById(id); }
    }else if(document.all){
        getElement = function(id){ return document.all[id]; };
    }else if(document.layers){
        getElement = function(id){ return document.layers[id]; };
    }else{
        getElement = function() { return null; }
    }

    // When we get here, the getElement function has been replaced.
    // So we return the result of the new function.
    return getElement(id);
}

var higlighted="";

function higlight(id){
	if(higlighted!=""){
		getElement(higlighted).style.backgroundColor= 'transparent';
		getElement(higlighted).style.color= '#ffffff';
	}
	higlighted=id;
	getElement(id).style.backgroundColor= '#fafafa';
	getElement(id).style.color= '#00AA44';
}
