﻿// JScript File
function showmenu(obj)
    {
      if(obj != null)
      {
          var el = document.getElementById(obj);
          var im = el.id + "i";
          //alert(obj);
          //alert(im);
          var oim = document.getElementById(im);
          if(el.style.display =="block")
          {
            el.style.display="none";
            oim.src="images/plus.gif";
          }
          else if(el.style.display =="none")
          {
            el.style.display="block";
            oim.src="images/minus.gif";
          }
      }
    }

///////////////////OH I Want That code here is for sliding show ///////////
function new_arrivals_products_roll(dir) {
				if(dir == "left") new_arrivals_marquee(3000,484,0,'new_arrivals_product_flash','left');	
				if(dir == "right") new_arrivals_marquee(3000,484,0,'new_arrivals_product_flash','right');		
			}

			function new_arrivals_marquee(delay, liHeight, toAlign, lyorderID,dir){	
				var o=document.getElementById(lyorderID);
				if(o==null) return;
				if(dir == "left") new_arrivals_scrollup(o,liHeight,toAlign);
				if(dir == "right") new_arrivals_scrollup1(o,liHeight,toAlign);	
				
			}
			function new_arrivals_scrollup(o,h,d){
					if(h==d){
					   //for(i=0;i<4;i++){
						   var t=o.firstChild.cloneNode(true);
						   o.removeChild(o.firstChild);o.appendChild(t);
						   t.style.marginLeft=o.firstChild.style.marginLeft='0px';
					  //}
					}else{
					   var s=50,d=d+s,l=(d>=h?d-h:0);
					   o.firstChild.style.marginLeft=-d+l+'px';
					   window.setTimeout(function(){new_arrivals_scrollup(o,h,d-l)},20);
					}
			}
			
			function new_arrivals_scrollup1(o,h,d){
					if(h==d){
					   //for(i=0;i<4;i++){
						   var t=o.lastChild.cloneNode(true);
						   var l=o.firstChild;
						   o.removeChild(o.lastChild);o.insertBefore(t,l);
						   t.style.marginLeft=o.firstChild.style.marginLeft='0px';
					  //}
					}else{
					   var s=50,d=d+s,l=(d>=h?d-h:0);
					  
					   o.firstChild.style.marginLeft=d-l+'px';
					   window.setTimeout(function(){new_arrivals_scrollup1(o,h,d-l);},20);
					}
			}
			
/////////////////////////////////////////////			