Event.observe(window, 'load', function() {    //CENTER ALIGN    centerAlign($$('.col2-left-layout .product-img-box img'));    centerAlign($$('.panels .product-image img'));    //BASKET PREVIEW WIDGET    $$(".bskt a").invoke("observe", "click", expander, false);    $$(".close a").invoke("observe", "click", expander, false);    //EQUAL HEIGHTS    equalize($$('.f-left ul'));    equalize($$('.products-grid .item_cont'));    equalize($$('.mini-products-grid .item'));    //LIGHTBOX    $$(".add-to-box p a").invoke("observe", "click", openMosBox, false);    //LIGHTBOX DEFAULTS    $$("a.mos_box_close").invoke("observe", 'click', closeMosBox, false);	//PROTOSLIDER CONFIG    var paused = false;	if($('slider')) {        var slider = new ProtoSlider("slider", {            navigation:		false, //true            //navId:			'myNavigation',            effect:			'corner:o:a',            //random:			"straight:och:seat[0.15] straight:ocw:seat[0.5]",            //random:			"straight:oc swirl:ohl grid:ovt",            duration:		2500,            columns:		9, //9            rows:			5, // 5            seat:			0.35,            speedup:		1,            fps:			50,            interval:		3500        });    }	if($('mens-slider')) {        var slider = new ProtoSlider("mens-slider", {            navigation:		false, //true            //navId:			'myNavigation',            effect:			'corner:o:a',            //random:			"straight:och:seat[0.15] straight:ocw:seat[0.5]",            //random:			"straight:oc swirl:ohl grid:ovt",            duration:		2500,            columns:		9, //9            rows:			5, // 5            seat:			0.35,            speedup:		1,            fps:			50,            interval:		3500        });    }    if($('cat-carousel'))   {        var catSlider = new ProtoSlider("cat-carousel", {            navigation:		false, //true            navId:			'cat-carousel-nav',            effect:			'corner:o:a',            //random:			"straight:och:seat[0.15] straight:ocw:seat[0.5]",            //random:			"straight:oc swirl:ohl grid:ovt",            duration:		2500,            columns:		9, //9            rows:			5, // 5            seat:			0.35,            speedup:		1,            fps:			50,            interval:		3500        });    }});function equalize(group)   {    tallest = 0;    group.each(function(el, index){        h = el.getHeight();        if(h > tallest)    {            tallest = h;        }    });    group.invoke('setStyle', {        height: tallest + 'px'    })}function centerAlign(group) {    w = 0;    group.each(function(el, index){       w = el.getWidth();    })    group.invoke('setStyle', {        width: w + 'px',        //display: 'block',        margin: '0px auto'    })}function expander(e) {    target = this.readAttribute('href').replace('#', '');    Effect.toggle(target, 'appear', { duration: 0.5 });    Event.stop(e);}function openMosBox(el) {    target = this.readAttribute('href').replace('/', '');    Effect.toggle(target, 'appear', { duration: 0.5 });    Event.stop(el);}function closeMosBox(el)    {    target = $$('.mos_box');    target.invoke('fade');    Event.stop(el);}
