/*
Copyright 2006 Laszlo Systems, Inc. All Rights Reserved.
*/
















var navbarHeight = 0; 
var footerHeight = 0;
var uploadInitialHeight = 0;



var printHeight = (navigator.userAgent.indexOf('Firefox') == -1
&& navigator.userAgent.indexOf('Safari') == -1) ? 0 : 1;


var gFrameRowsPrefix = (navbarHeight) ? (navbarHeight + ",") : "";

var gFrameRowsSuffix = ", *, 0, " + printHeight;

var gFramesetRows = gFrameRowsPrefix + uploadInitialHeight + gFrameRowsSuffix;

var gUploadDialogType = 1;
/* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. */




var useragent = window.navigator.userAgent;
if (useragent.indexOf("MSIE") != -1 && 
useragent.indexOf("Mac_PowerPC") != -1 &&
useragent.indexOf("Opera") == -1)
document.location = "html/iemacinfo.html";





var printnow = false;

var previewWidth = 600;
var previewHeight = 400;
var previewTop = 100;
var previewLeft = 100;



function lzPrint() { 

if (navigator.userAgent.indexOf("Safari") != -1 && window.top.frames.framePrint.document.body.innerHTML) {
window.top.frames.framePrint.document.body.innerHTML += 
'<form name="dummyform" style="margin-bottom:0;" ><input type="hidden" name="focushere"/></form>';
window.top.frames.framePrint.document.dummyform.focushere.focus();
} else {
window.top.frames.framePrint.focus(); 
} 
window.top.frames.framePrint.print();
printnow = false;
}





function printMessage(url) {

if (navigator.userAgent.indexOf("Mac") != - 1 && navigator.userAgent.indexOf("MSIE") != - 1) {
previewMessage(url);
} else {
window.top.printnow = true; 
window.top.frames.framePrint.location.href = url;
}
}





function previewMessage(url) {
var printWin = window.open(url, "_print", 
"width=" + previewWidth + 
",height=" + previewHeight + 
",top=" + previewTop + 
",left" + previewLeft+ 
",toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes");
}









function writeFrameset(appUrl, 
headerUrl, headerHeight, 
advertUrl, advertHeight, 
footerUrl, footerHeight) {



var printHeight = (navigator.userAgent.indexOf('Firefox') == -1
&& navigator.userAgent.indexOf('Safari') == -1) ? 0 : 1;

var includeHeader = (headerHeight > 0) && headerUrl;
var includeAdvert = (advertHeight > 0) && advertUrl;
var includeFooter = (footerHeight > 0) && footerUrl;

var framesetRows = "";

if (includeHeader) {
framesetRows += headerHeight + ",";
}
if (includeAdvert) {
framesetRows += advertHeight + ",";
}

framesetRows += "*,"; 
if (includeFooter) {
framesetRows += footerHeight + ",";
}
framesetRows += "0,"; 
framesetRows += printHeight; 






document.write('<frameset id="frameTop" ');
document.write('border="0" ');
document.write('frameborder="0" ');
document.write('framespacing="0" ');
document.write('rows="' + framesetRows + '" ');
document.write('> ');

if (includeHeader) { 
document.write('<frame id="frameNav" name="frameNav" ');
document.write('src="' + headerUrl + '" ');
document.write('border="0" ');
document.write('frameborder="no" '); 
document.write('marginwidth="0" '); 
document.write('marginheight="0" ');
document.write('noresize="1" ');
document.write('scrolling="no"/>');
}

if (includeAdvert) { 
document.write('<frame id="frameAd" name="frameAd" ');
document.write('src="' + advertUrl + '" ');
document.write('border="0" ');
document.write('frameborder="no" '); 
document.write('marginwidth="0" '); 
document.write('marginheight="0" ');
document.write('noresize="1" ');
document.write('scrolling="no"/>');
}












document.write('<frame id="frameApp" name="frameApp" ');
document.write('src="' + appUrl + '" ');
document.write('border="0" ');
document.write('frameborder="no" ');
document.write('marginwidth="0" ');
document.write('marginheight="0" ');
document.write('noresize="1" ');
document.write('scrolling="no"/> ');

if (includeFooter) {
document.write('<frame id="frameFooter" name="frameFooter" ');
document.write('src="' + footerUrl + '" ');
document.write('border="0" ');
document.write('frameborder="no" ');
document.write('marginwidth="0" ');
document.write('marginheight="0" ');
document.write('noresize="1" ');
document.write('scrolling="no"/> ');
}


document.write('<frame id="frameDownload" name="frameDownload" ');
document.write('src="994/html/zerobyte.html" ');
document.write('border="0" ');
document.write('frameborder="no" ');
document.write('marginwidth="0" ');
document.write('marginheight="0" ');
document.write('noresize="1" ');
document.write('scrolling="no"/> ');


document.write('<frame id="framePrint" name="framePrint" ');
document.write('src="994/html/zerobyte.html" ');
document.write('onload="if (printnow) lzPrint();" ');
document.write('border="0" ');
document.write('frameborder="no" ');
document.write('marginwidth="0" ');
document.write('marginheight="0" ');
document.write('noresize="1" ');
document.write('scrolling="no"/>');


document.write('</frameset>');
}

