﻿Ext.onReady(function() {
    Ext.select(".thumbimage").each(function(e) {
        var ProductID = e.dom.id.split("_")[1];
        new Ext.ToolTip({
            target: e.dom.id,
            anchor: 'left',
            html: null,
            showDelay: 150,
            width: 250,
            //trackMouse: true,
            contentEl: 'content-tip-' + ProductID
        });

        new Ext.ToolTip({
            target: "status_" + ProductID,
            anchor: 'left',
            html: null,
            showDelay: 200,
            contentEl: 'statustooltip_' + ProductID
        });
    });
    Ext.QuickTips.init();

    //    var sb = Ext.get("ctl00_SearchBox1_Txt_Search");
    //    sb.addKeyListener([13, 10], SearchBoxKeyPress);

});


function addeventtooltip(obj, idtext) {
   
        new Ext.ToolTip({
            target: obj.id,
            anchor: 'left',
            html: null,
            showDelay: 200,
            contentEl: 'statustooltip_' + idtext + 'amsterdam'
        });
}

//function SearchBoxKeyPress() {
//    try {
//        event.which = 0;
//    } catch (err) { ; }
//    try {
//        event.keyCode = 0;
//    } catch (err) { ; }
//    
//    event.returnValue = false;
//    return false;
//}

//Ext.ux.Lightbox.register('a.lightbox');