﻿function PrintMe(ElementId) {
    var newwindow = window.open('', 'Natisni', 'menubar=1,scrollbars=1,height=700,width=800');

    newwindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">')
    newwindow.document.write('<html><head>');
    newwindow.document.write('<link href="/PrintBioLeks.css" rel="stylesheet" type="text/css" /></head><body>')
    newwindow.document.write(document.getElementById(ElementId).innerHTML);
    newwindow.document.write('<br /><br />');
    newwindow.document.write('<style> body{padding:5px;}</style>');
    newwindow.document.write('<div style="cursor:pointer; text-decoration:underline; color:blue;" onclick="this.style.display=&#39;none&#39;; window.print();" >Natisni</div>');
    newwindow.document.write('</body></html>');
    newwindow.document.close();
}

function OpenGallery() {
    if (document.getElementById('morePics').style.display == 'block') {
        document.getElementById('morePicsOverflow').style.display = 'none';
        document.getElementById('morePics').style.display = 'none';
    }
    else {
        document.getElementById('morePicsOverflow').style.display = 'block';
        document.getElementById('morePics').style.display = 'block';
    }
}
