<!--






    addLoadEvent( opWin );
    addLoadEvent( findimg );


/**
 * on load handler, for more info see http://simon.incutio.com/archive/2004/05/26/addLoadEvent
 * 
 * func      = name of some function to run on page load
**/

    function addLoadEvent( func ) {
        var oldonload = window.onload;
        if (typeof window.onload != 'function') {
            window.onload = func;
        } else {
            window.onload = function() {
                oldonload();
                func();
            }
        }
    }



/**
#### IMAGE ROLL-OVER 
       
*/
    function findimg() {
        var imgs, i;
        imgs = document.getElementsByTagName('img');
        
        for( i = 0; i < imgs.length; i++ ) {
            if (/roll/.test( imgs[i].className )) {
                imgs[i].onmouseover = function() { roll( this ); };
                imgs[i].onmouseout = function() { roll( this ); };
                imgs[i].onclick = function() {  };
            }
        }
    }

    function roll( o ) {
        var src, newsrc;
        src = o.src;
        if (/_on/.test( src )) {
            newsrc = src.replace( '_on', '_off' );
        } else {
            newsrc = src.replace( '_off', '_on' );
        }
        o.src = newsrc;
    }
    






/**
#### OPEN BLANK BROWSER WINDOWS AND POP-UPS
       
*/
    function opWin() {
        var ashow = document.getElementsByTagName('a');
        for (var ai = 0; ai < ashow.length; ai++) {
            if (/popup/.test( ashow[ai].className )) {
                ashow[ai].onclick = function() { return( popUp(this) ); }
            }
            else if (/extern/.test( ashow[ai].className )) {
                ashow[ai].onclick = function() { return( extLink( this ) ); }
            }
        }
    }

    function popUp( o ) {
        var cArr, attArr, winWidth, winHeight, winName, winScroll, xPos, yPos, puFeat, puWin;

        cArr = o.className.split( ' ' );
        attArr = cArr[1].split( '##' );

        winWidth = attArr[0];
        winHeight = attArr[1];
        winName = attArr[2];
        winScroll = attArr[3] == 1 ? 'yes' : 'no';

        xPos = (screen.availWidth - winWidth) / 2;
        yPos = (screen.availHeight - winHeight) / 2;
        puFeat = 'width=' +winWidth+ ',height=' +winHeight+ ',toolbar=no,status=yes,scrollbars=' +winScroll+ ',resizable=yes,left=' +xPos+ ',top=' +yPos;
        puWin = window.open( o.href, winName, puFeat, false );
        return false;
    }
    
    function extLink( o ) {
        var newWin = window.open( o.href );
        return false;
    }


/**
#### CRYPT MAILTO FUNKTION
       
*/
    function CryptMailto()
    {
        var n = 0;
        var r = "";
        var s = "mailto:"+document.forms[0].emailField.value;
        var e = document.forms[0].emailField.value;

        e = e.replace( /@/, " [at] ");
        e = e.replace( /\./g, " [dot] ");

        for( var i=0; i < s.length; i++ )
        {
            n = s.charCodeAt( i );
            if( n >= 8364 )
            {
                n = 128;
            }
            r += String.fromCharCode(n+1);
        }
        document.forms[0].cyptedEmailField.value = r;
        document.forms[0].HTMLCyptedEmailField.value = "<a href=\"javascript:linkTo_UnCryptMailto('"+ r +"');\">"+ e +"</a>";
    }

    function UnCryptMailto( s )
    {
        var n = 0;
        var r = "";
        for( var i = 0; i < s.length; i++)
        {
            n = s.charCodeAt( i );
            if( n >= 8364 )
            {
                n = 128;
            }
            r += String.fromCharCode( n - 1 );
        }
        return r;
    }

    function linkTo_UnCryptMailto( s )
    {
        location.href=UnCryptMailto( s );
    }









-->
