/**
* Common Javascript Methods
*
* @author 		Zone
* @email		info@zonecontent.com
* @url 			http://www.zonecontent.com/
* @copyright 	Copyright (c) 2009, zonecontent.com. All rights reserved.
* @version		0.0.1
*/
var CLASSES = {
    "focus": "focus",
    "hover": "hover",
    "selected": "selected"
}

// MSIE

if ($.browser.msie) {

    try {
        // Hover
        $("#categories > li").hover(function() {
            $(this).addClass(CLASSES.hover);
        }, function() {
            $(this).removeClass(CLASSES.hover);
        });

        $("#left_nav > li > ol > li").hover(function() {
            $(this).addClass(CLASSES.hover);
        }, function() {
            $(this).removeClass(CLASSES.hover);
        });

        $("#categories li ol li:first-child").addClass("first_child");
        $("#categories li ol li:last-child").addClass("last_child");
        $("div.grid_row div[@class*='grid']:first-child").addClass("first_child");
        $("div.grid_row div[@class*='grid']:not(:only-child):last-child").addClass("last_child");
        $("#sizing_chart table tr:last-child").addClass("last_child");
        $("#sizing_chart table tr td:last-child").addClass("last_child");
        $("#sizing_chart table tr:first-child td").addClass("first_child");
        $("#sizing_chart table tr:last-child td").addClass("last_child");
        $("input[@type=text]").addClass("text");
        $("input[@type=password]").addClass("password");
    } catch (e) {

    }

}

// Hover
$("#homepage a.promo_box").hover(function() {
    $("a.promo_box").addClass(CLASSES.hover);
    $(this).removeClass(CLASSES.hover);
    }, function() {
    $("a.promo_box").removeClass(CLASSES.hover);
});