/* ################################################################# */
/*                                                                   */
/*  TITLE:        INDEX.JS                                           */
/*  SITE:         style.com                                          */
/*  AUTHOR:       Brian Maniere                                      */
/*  VERSION:      0.03                                               */
/*  LAST UPDATED: 2008/06/24                                         */
/*                                                                   */
/*  NAMESPACE: IDX                                                   */
/*                                                                   */
/*  PUBLIC FUNCTIONS:                                                */
/*    prepareHeroLink()                                              */
/*                                                                   */
/*  PREREQUISITES:                                                   */
/*    CN.isDomBrowser                                                */
/*    CN.$                                                           */
/*    CN.getElementsByClassName                                      */
/*    CN.toggleClass                                                 */
/*    CN.addEvent                                                    */
/*                                                                   */
/* ################################################################# */



/* replaced IDX contents with jQuery-based solution 
 * -Russ
 */

jQuery(function ($) {
    $('#heroLink a:first').bind('hover',
        function() {
            return $(this).toggleClass('hover2');
        },
        function() {
            return $(this).toggleClass('hover2');
    });
})

if(typeof CN === 'undefined' || !CN){
    CN=[];
}

/*
 * getElementById wrapper - for backward compatibility with olf CN namespace for style.
 */

CN.$ = function(id){
    return document.getElementById(id);

}
