	
	/**
	 * 图片局部放大脚本
	 
	
	zoomImg.src = srcImg.src;
	srcImg.height = srcImg.height/2;
	var zoomRate = 2;	// 放大的倍数
	zoomImg.height = srcImg.height*zoomRate;
	zoomImg.parentNode.style.width = srcImg.width;
	zoomImg.parentNode.style.height = srcImg.height;
	
	
	function zoom(){
		var elm = event.srcElement;
		h = elm.offsetHeight/zoomRate/2;
		w = elm.offsetWidth/zoomRate/2;
		var x = event.x-elm.offsetLeft;
		x=x<(elm.offsetWidth-w)?x<w?w:x:elm.offsetWidth-w;
		zoomImg.style.marginLeft=(w-x)*zoomRate;
		var y = event.y-elm.offsetTop;
		y=y<(elm.offsetHeight-h)?y<h?h:y:elm.offsetHeight-h;
		zoomImg.style.marginTop=(h-y)*zoomRate;
	}
	*/
	
	/**
	 * 获取类别树
	 */
	function getCategoryTree(remoteUrl,callBack){
		 new Ajax.Request(remoteUrl + "?action=getCategoryTree",
		 {
		     method:'get',
		     onSuccess: callBack,
		     onFailure: function(){ alert('Something went wrong...')}
		 });
    }
    
    /**
	 * 获取类别树
	 */
	function getCategoryTree(remoteUrl,callBack){
		 new Ajax.Request(remoteUrl + "?action=getCategoryTree",
		 {
		     method:'get',
		     onSuccess: callBack,
		     onFailure: function(){ alert('Something went wrong...')}
		 });
    }
    
    
    /**
     * 转化json字符串到json对象
     */
    function change(json)
 	{
 		var arr = eval('(' + json + ')');
	    return arr;
 	}
