function addToCartConfirm (success, element) {
    window.addEvent('domready', function () {
        $(element).highlight();
    });
}



window.addEvent(
    'domready', function(){
        if($('flashPlaceHolder')){
            $('flashPlaceHolder')
                .grab(
                    new Swiff(
                        '/userfiles/flash/slideShow.swf', {
                            "width":  "620px",
                            "height": "312px",
                            "align":  "middle",
                            "params": {
                                "wmode":   "opaque",
                                "bgcolor": "#FFF"
                            }
                        }));
        }

        new Lightbox();

        // Print links 
        $$('a.print').addEvent('click', function (e) {
            e.stop(); 
            window.print();
        });


        // Email links obfuscation
        $$('p.email').each(function (el) {
            var text = el.get('text') 
                .replace(/\(at\)/, "@")
                .replace(/\(dot\)/g, "."),

            link = new Element('a', {'href': 'mailto:' + text, 'text': text});
            link.replaces(el);
        });

    });

