
// KILL FRAMES
if( window.top != window ) {
	window.top.location.href	= window.location.href;
}

// init() FUNCTION FOR BODY ONLOAD HANDLER
function init() {
    createRollovers();
}
window.onload                           = init;

/*************************************************
**  AUTHOR: Kevin K. Nelson                     **
**  SITE:   http://www.flashfiredesigns.com/    **
**  DESCR:  JavaScript for dynamically creating **
**          rollovers                           **
**                                              **
** -- Copyright © 2003, All Rights Reserved --  **
** - Used by Permission by Taoti Enterprises -  **
*************************************************/
g_strImgClass                           = "imgButton";
g_strOver_ext                           = "_over";
g_strOut_ext                            = "_out";
function createRollovers() {
    if( document.getElementsByTagName ) {
        var arrIMGTags                      = document.getElementsByTagName("IMG");
        var arrPreloads                     = new Array();

        for(i=0,j=0;i<arrIMGTags.length;i++) {
            if( arrIMGTags[i].className == g_strImgClass ) {
                // PRELOAD _over IMAGES
                var strSrc                  = arrIMGTags[i].src;
                arrPreloads[j]              = new Image();
                arrPreloads[j++].src        = strSrc.replace( g_strOut_ext, g_strOver_ext );
                
                // ASSIGN EVENT HANDLERS
                arrIMGTags[i].onmouseover   = toggleImgOver;
                arrIMGTags[i].onmouseout    = toggleImgOver;
            }
        }
    }
}
function toggleImgOver(e) {
    if(!e) e=event;

    if( e.type == "mouseover" ) {
        this.src        = this.src.replace( g_strOut_ext, g_strOver_ext );
    }
    if( e.type == "mouseout" ) {
        this.src        = this.src.replace( g_strOver_ext,g_strOut_ext );
    }
}
function getTagByID( p_strID ) {
    return( document.all ? document.all[p_strID] : document.getElementById(p_strID) );
}
function getBody() {
	return( IS_COMPAT_MODE && IS_IE ? document.body.parentNode : document.body );
}