function closeSVGWindow(targetWindow) {
targetWindow.document.write('
SVG file printed. Please close this window.
');
targetWindow.close();
}
function svgembed_printContent(path) {
// Open window and load content
var svgembed_print = window.open('', '_printwindow', 'location=no,height=400,width=600,scrollbars=yes,status=no');
svgembed_print.document.write('');
svgembed_print.document.close();
// Print
setTimeout(function(){ svgembed_print.window.print(); }, 1000);
setTimeout(function(){ closeSVGWindow(svgembed_print); }, 2000);
}
function svgembed_onMouseOver(object_id) {
document.getElementById(object_id).className = document.getElementById(object_id).className + ' svgembed_print_border';
return false;
}
function svgembed_onMouseOut(object_id) {
document.getElementById(object_id).className = document.getElementById(object_id).className.replace(' svgembed_print_border', '');
return false;
}