// Copyright (c) 2001 - 2005 Province of British Columbia, Canada // All Rights Reserved // // This material is owned by the Government of British Columbia and protected // by copyright law. It may not be reproduced or redistributed in whole or in // part without the prior written permission of the Province of British Columbia. function iz(iz_what) { if (!iz_what) return navigator.appName+'; '+ navigator.userAgent+'; '+ navigator.vendor; var iz_wot = iz_what.toLowerCase(); var iz_agnt = navigator.userAgent.toLowerCase(); var iz_name = navigator.appName.toLowerCase(); switch (iz_wot) { case 'cw': return !!(document.body.clientWidth); case 'iw': return !!(window.innerWidth); case 'df': return !!(document.createDocumentFragment); case 'dom': return !!(document.createElement); case 'all': return !!(document.all); case 'id': return !!(document.getElementById); case 'lyrs': return !!(document.layers); case 'ie': return !!(iz_agnt.indexOf('msie') != -1); case 'ns': return !!(iz_name.indexOf("netscape") != -1); case 'opera': return !!(iz_agnt.indexOf('opera') != -1); case 'moz': return !!(iz_agnt.indexOf('gecko') != -1); case 'safari': return !!((iz_agnt.indexOf('safari') != -1) || (document.childNodes && !document.all && !navigator.taintEnabled && !accentColorName)); case 'khtml': return !!((navigator.vendor == 'KDE')||(document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)); case 'agt': return iz_agnt; default: return !!(iz_agnt.indexOf(iz_wot) != -1); } } function iz_version(iz_ver_string, iz_test_ie) { if (iz_ver_string == null) { return 0.0; } else { if (iz_test_ie) { iz_ver_string = iz_ver_string.substring(iz_ver_string.indexOf("MSIE ") + 5); } var iz_tmp0 = ""; var iz_tmp1 = ""; var iz_tmp2 = "01234567890."; var iz_start = false; for (iz_ndx = 0; iz_ndx < iz_ver_string.length - 1; iz_ndx++) { iz_tmp1 = iz_ver_string.substring(iz_ndx, iz_ndx + 1); if (iz_tmp2.indexOf(iz_tmp1) != -1) { iz_tmp0 = iz_tmp0 + iz_tmp1; iz_start = true; } else { if (iz_start) { break; } } } if (iz_tmp0.length == 0) { return 0.0; } else { return parseFloat(iz_tmp0); } } } function getDocumentWidth() { var iz_w = 300; if (self.innerWidth) { iz_w = self.innerWidth; } else if (document.documentElement && document.documentElement.clientWidth) { iz_w = document.documentElement.clientWidth; } else if (document.body) { iz_w = document.body.clientWidth; } //if (iz_w > 1024) iz_w = 1024; return iz_w; } function getDocumentHeight() { var iz_h = 300; if (self.innerHeight) { iz_h = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { iz_h = document.documentElement.clientHeight; } else if (document.body) { iz_h = document.body.clientHeight; } //if (iz_h > 768) iz_h = 768; return iz_h; }