function show_biophantom_demo() {
var h = screen.height; var z = 100;
if (!h) { } 
else if (h <= 800) { z = 50; }
else if (h < 1200) { z = 75; }
window.open('biophantom_demo.php?zoom='+z+'','Biophantom_Demo','width='+Math.round(z*1280/100)+',height='+Math.round(z*1024/100)+',toolbar=0,resizable=1,location=0');
}
function demo_s(i) { demo_closep(); MM_swapImage('fe1_image', '', i, 1); }
function demo_p(i) { document.getElementById(i).style.zIndex = 4; }
function demo_c(i) { document.getElementById(i).style.zIndex = -1; }
function demo_closep() { demo_c('fe1_process'); demo_c('overall'); demo_c('login'); demo_c('history_compare'); removeHistoryCompare(); addFeTabs(); }
function removeHistoryCompare() { document.getElementById('area_history_compare').style.display = 'none'; }
function removeFeTabs() { document.getElementById('area_fe2_tab').style.display = 'none'; }
function setSize(width,height) {
if (window.innerWidth) { window.innerWidth = width; window.innerHeight = height; }
else if (window.resizeTo) { window.resizeTo(width+15,height+75); }
}
function addHistoryCompare() { document.getElementById('area_history_compare').style.display='block'; }
function addFeTabs() { document.getElementById('area_fe2_tab').style.display='block'; }
function demo_tab(tab) {
if ('fe1' == tab) { document.getElementById('fe1').style.display = 'block'; document.getElementById('fe2').style.display = 'none'; }
else { document.getElementById('fe2').style.display = 'block'; document.getElementById('fe1').style.display = 'none'; }
}
