var origHeight=0;var equalHeight=function($el,r){if($el.length<=0){return false;}var h=0,tmp=0,len=$el.length;if(r===true){setHeight($el,0);}for(var i=0;i<len;i++){tmp=$el[i].getHeight();h=tmp>h?tmp:h;}if(origHeight===0){origHeight=h;}h=h+"px";setHeight($el,h);};var setHeight=function($el,h){var i=0,len=$el.length;if(navigator.userAgent.match(/msie 6\.0/ig)){for(i=0;i<len;i++){$el[i].setStyle({"height":h});}}else{for(i=0;i<len;i++){$el[i].setStyle({"minHeight":h});}}};document.observe("dom:loaded",function(){equalHeight($$('.catagories > li.parents-category'));equalHeight($$('.footer-container .footer-second-blocks > li'));equalHeight($$('.product-view .product-list-second'));equalHeight($$('.products-grid .product-list-second'));});

function showSubChildren(s,a){

var e = $('category-'+a);
if (e !==null){
if(e.style.display == 'none'){
e.style.display='inline';
equalHeight($$('.catagories > li.parents-category'));
s.innerHTML = "<a href = 'javascript:void(null)'><span class='icon-close'>-</span></a>";
//equalHeight($$('.les-categoies .catagories > li'));
}else{
e.style.display='none';
equalHeight($$('.catagories > li.parents-category'),true);
s.innerHTML = "<a href = 'javascript:void(null)'><span class='icon-open'>+</span></a>";
}
}
}

function addQty(){
$$('.product-qty-box').each(function (e){
e.value++;
})
}
function minusQty(){
$$('.product-qty-box').each(function (e){
if(e.value>1){
e.value--;
}
})
}

