//function to_shopping_cart(){
//    var target = $('target');
//    var box = $('to_shopping_cart_wrapper');
//    var coord = box.getCoordinates ();
//
//    target.setStyles({
//        'top': (coord['top'])+"px",
//        'left': (coord['left'])+"px",
//        'visibility' : 'visible',
//        'opacity' : '1',
//        'filter' :'alpha(opacity=100)',
//        'height' : '295px',
//        'width' : '295px',
//        'z-index' : '100'
//    });
//
//    var img = $('target_img');
//    var zoom = $('zoom');
//    img.src =  zoom.src;
//
//
//    var fx = new Fx.Styles(target, {
//        duration: 700,
//        wait: false,
//        transition : Fx.Transitions.Quad.easeIn,
//        onComplete: function(){
//            //close_cart();
//            add_to_cart();
//        }
//    });
//
//    box = $('cart');
//    coord = box.getCoordinates ();
//
//    fx.start({
//        'top': (coord['top']+(coord['height']/2))+"px",
//        'left': (coord['left']+(coord['width']/2))+"px",
//        'width':0+"px",
//        'height':0+"px",
//        'opacity' : '0',
//        'filter' :'alpha(opacity=0)'
//    });
//}

//function add_to_cart(){
//    var url = window.location.href.substring(0,window.location.href.lastIndexOf("/", 0)) + 'ajax_add_products.php';
//
//    var products_id = $('products_id').value;
//
//
//    var request = new Ajax(url,
//    {
//        method:'post',
//        update:'cart_wrapper',
//        data:'action=add_product&products_id='+products_id,
//        onComplete:function(){
//            //open_cart();
//        }
//    });
//
//    request.request();
//}




function dump (sObjName, sTab) {
    var Obj = eval (sObjName);
    //
    if (sTab==null) sTab='';
    if (typeof(Obj)!='object')
        return sTab+sObjName+': '+typeof(Obj)+' = '+Obj+'\n';
    else if (Obj.length!=null)
        var sResult = sTab+sObjName+': array length '+Obj.length+'\n';
    else
        var sResult = sTab+sObjName+': object\n';
    //
    for (sProp in Obj)
        sResult += dump (sObjName+'[\''+sProp+'\']', sTab+'  ');
    return sResult;
}