var printableUrl = '';
function switchTo2(element, idPhase, imageName, webPath, idNode)
{
document.getElementById('flat-image').src = webPath+'images/flat-2d/'+idPhase+'/'+imageName+'.jpg';
element.className = 'selected';
element.previousSibling.className = '';
printableUrl = webPath+'flat/view/'+idNode+'?printable=tech';
return false;
}
function switchTo1(element, idPhase, imageName, webPath, idNode)
{
document.getElementById('flat-image').src = webPath+'images/flat-3d/'+idPhase+'/'+imageName+'.jpg';
element.className = 'selected';
element.nextSibling.className = '';
printableUrl = webPath+'flat/view/'+idNode+'?printable=normal';
return false;
}
// uj popup ablak nyitasa
function OpenPage(url, wndname, width, height, center, scrollbars, resize)
{ 
var left = 25; 
var top = 25; 

if(center == true) 
{ 
left = (screen.width - width)/2; 
top = (screen.height - height)/2; 
} 

scrollbars = ( (scrollbars == undefined) || (scrollbars == false) ) ? 0 : 1;
resize = ( (resize == undefined) || (resize == false) ) ? 0 : 1;

var winStats='toolbar=no,location=no,directories=no,menubar=0,'; 
winStats+='scrollbars='+scrollbars+',resizable='+resize+',width='+width+',height='+height; 
if (navigator.appName.indexOf("Microsoft")>=0) 
{ 
winStats+=',left='+left+',top='+top; 
} 
else 
{ 
winStats+=',screenX='+left+',screenY='+top; 
} 

var apopup=window.open(url,wndname,winStats);/*
apopup.window.focus(apopup);
return apopup;*/
}

