/* ****************************************************************** */ /* COPYRIGHT NOTICE */ /* This script is the property of guyslink.com */ /* It may be copied in whole or in part, free of charge, for use */ /* on any other web site, provided that - */ /* (a) This copyright notice is left intact at the beginning of */ /* every script file containing any or all of the script code */ /* copied from this file, AND, */ /* (b) Any web site using such a script file displays a banner link */ /* to the guyslink.com web site, in the manner described on the */ /* guyslink.com site, in the Information/Links section. */ /* ****************************************************************** */ var popupfail=0; function popuperror(msg,url,lno) { popupfail=1; return true; } function popup(link,tgt) { /* open profile/pager popup */ popupfail=0; window.onerror=popuperror profWindow=window.open(link.href,tgt,'height=400,width=800,screenX=20,screenY=50,menubar=no,personalbar=no,resizable=yes,scrollbars=yes,toolbar=no'); window.onerror=null; if ( (popupfail==1) || (profWindow==null) ) { link.target=tgt; return true; } return false; } function popup2(link,tgt) { /* open profile/pager popup */ popupfail=0; window.onerror=popuperror profWindow=window.open(link.href,tgt,'height=400,width=800,screenX=20,screenY=100,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes'); window.onerror=null; if ( (popupfail==1) || (profWindow==null) ) { link.target=tgt; return true; } return false; } function popupmap(link,tgt) { /* open map popup */ popupfail=0; window.onerror=popuperror profWindow=window.open(link.href,tgt,'height=820,width=800,screenX=20,screenY=1,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes'); window.onerror=null; if ( (popupfail==1) || (profWindow==null) ) { link.target=tgt; return true; } return false; } function showdist(loc,dist) { /* show distance in status bar */ window.status=loc+' is '+dist+' from your location'; return true; } /* Function called by navequalize (below) to equalize size of buttons within a single navigation set */ function navequalizeset(odiv) { var cdiv=document.getElementById&&!document.all? odiv.getElementsByTagName('*'):odiv.all var maxwidth=0; var maxheight=0; for (var cdividx=0; cdividxmaxwidth) maxwidth=ospan.offsetWidth if (ospan.offsetHeight>maxheight) maxheight=ospan.offsetHeight } } maxwidth+=1 for (var cdividx=0; cdividx for windows containing IFRAMES */ /* (which Netscape/Opera doesn't resize automatically when window is resized */ function resizereload() { if (navigator.userAgent.indexOf("MSIE") >= 0 && navigator.userAgent.indexOf("Opera") < 0) return; /*action not required for IE, but needed for Netscape and Opera */ window.onresize=resizeiframes; if (navigator.userAgent.indexOf("Opera") >= 0) setTimeout(resizeiframes,500); } /* Function to navigate to child frame of specified name, even when name is that of a DOM property */ function childframe(oframe,childname) { if (!oframe) return null; cframe=oframe.frames; for (var cframeidx=0; cframeidxximage.width) document.images[imageid].width=document.images[imageid].height*ximage.width/ximage.height; else if (ximage.height