/*//////////////////////////////////////////////////////////// JavaScript Code Library Developed by GrafX Design Division Pty Ltd http://www.grafx.com.au Last Checked In By : Richard Czeiger Public Revision No : 1.0 The software and related user documentation are protected under copyright laws and remain the sole property of GrafX Design Division. Full license is available on the GrafX Design Division web site or in the original download. Technical support is available via the GrafX web site at http://www.grafx.com.au ////////////////////////////////////////////////////////////*/ // Get the hacked stylesheet document.write(''); // Suppress JavaScript Errors window.onerror=new Function("return true") // Set the Status Bar Message var statusMsg = 'Apostille Australia'; window.defaultStatus=statusMsg; // Fixes IE6 CSS Rendering Bug if (document.all && window.attachEvent) window.attachEvent("onload", fixWinIE); function fixWinIE() { if (document.body.scrollHeight < document.body.offsetHeight) { document.body.style.display = 'block'; } } // Spam Suppression for Emails function stopSpam(name, domain, subject) { var symbol = '@'; // Took out the Subject due to MS fault in Outlook Express (Source - http://support.microsoft.com/kb/q182985/ ) // document.write('' + name + symbol + domain + ''); document.write('' + name + symbol + domain + ''); } // Roll Over Nav sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i'; // Firefox if (navigator.userAgent.indexOf("Gecko")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) { document.getElementById("marquee").innerHTML = "
"+img+" <\/span>"+img+"<\/td><\/tr><\/table>"; tickerSupported = true; } // IE if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) { document.getElementById("marquee").innerHTML = "
"+img+"<\/span>"+img+"<\/div>"; tickerSupported = true; } if(!tickerSupported) document.getElementById("marquee").outerHTML = ""; else { document.getElementById("marquee").scrollLeft = marqueeRightToLeft ? document.getElementById("marquee").scrollWidth - document.getElementById("marquee").offsetWidth : 0; document.getElementById("marqueeBody").innerHTML = marqueeContent; document.getElementById("marquee").style.display="block"; marqueeTick(); } } function tickerAction(state) { if (!marqueePaused) { marqueePaused = true; } else { marqueePaused = false; } return marqueePaused; } function speedUpDown() { if (marqueeSpeed==1) { marqueeSpeed=3; document.getElementById('speedUpDown').innerHTML= '›››' // 'Fast'; } else if (marqueeSpeed==3) { marqueeSpeed=5; document.getElementById('speedUpDown').innerHTML= '›' // 'Slow'; } else if (marqueeSpeed==5) { marqueeSpeed=1; document.getElementById('speedUpDown').innerHTML= '››' // 'Medium'; } } function marqueeTick() { if(!marqueePaused) document.getElementById("marquee").scrollLeft += marqueeSpeed * (marqueeRightToLeft ? -1 : 1); if(marqueeRightToLeft && document.getElementById("marquee").scrollLeft <= 0) document.getElementById("marquee").scrollLeft = document.getElementById("marquee").scrollWidth - document.getElementById("marquee").offsetWidth; if(!marqueeRightToLeft && document.getElementById("marquee").scrollLeft >= document.getElementById("marquee").scrollWidth - document.getElementById("marquee").offsetWidth) document.getElementById("marquee").scrollLeft = 0; window.setTimeout("marqueeTick()", 30); } flip="Stop"; // Global to save state function toggleStartStop() { if (flip=="o") { flip= "ø"// "Stop"; document.getElementById('toggleStartStop').innerHTML=flip; tickerAction(); } else { flip="o"; // "Start"; document.getElementById('toggleStartStop').innerHTML=flip; tickerAction(); } } // Attach Event function addEvent(obj, evType, fn, useCapture){ if (obj.addEventListener){ obj.addEventListener(evType, fn, useCapture); return true; } else if (obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r; } else { alert("Handler could not be attached"); } } addEvent(window, 'load', initializeScroller, false); // Multiple Onload Functions to be called function multipleOnload() { externalLinks(); inputFocus(); } window.onload = multipleOnload;