function Menu_HLight(id){
document.getElementById(id).className = 'submenu_highlight';
}

function Menu_UnLight(id){
document.getElementById(id).className = 'submenu_unlight';
}

function Submenu_JumpTo(prevurlvalues){

value = document.getElementById('type').value;
if (value!="-1"){document.location.href = "index.php?"+prevurlvalues+"&type="+value;}
}

function DocGoTo(href){
document.location.href = href;
}

function SendCard(){
window.open("wizytowka.php", "bezet_wizytowka", "HEIGHT=330,resizable=no,WIDTH=330,toolbar=no,status=no");
}


function CenterWindow(){
x = (screen.width / 2) - (330 / 2);
y = (screen.height / 2) - (300 / 2);
window.moveTo(x,y);
}

function ToggleInfo(id,type){
infoid = id+'_info';
descid = id+'_description';

if (type=='description'){
document.getElementById(infoid).style.display = "none";
document.getElementById(descid).style.display = "";
}

if (type=='info'){
document.getElementById(infoid).style.display = "";
document.getElementById(descid).style.display = "none";
}
}

function TechDetails(id,mode){

if (mode=='more'){stylemode = "";}
if (mode=='less'){stylemode = "none";}

idname = "tech_"+id;
document.getElementById(idname).style.display = stylemode;
}
