ddsmoothmenu.arrowimages.down = ['downarrowclass', 'views/css/i/dd_menu_thumb.png', 23];
ddsmoothmenu.init({
    //arrowimages: {down:['downarrowclass', '/views/css/i/dd_menu_thumb.png', 23], right:['rightarrowclass', 'images/dd_menu_thumb_hover.png']},
	mainmenuid: "topmenu", //Menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'topmenu', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
});

$(function() {
    $('.productBox .product').add('.categoryBox .product').hover(function() {
        $(this).addClass('hover');
    }, function() {
        $(this).removeClass('hover');
    });
});



function get_form( element )
{
    while( element )
    {
        element = element.parentNode;
        if( element.tagName.toLowerCase() == "form" )
        {
            //alert( element ) //debug/test
            return element
        }
    }
    return 0; //error: no form found in ancestors
}

