function my_custom_onclick_function(info)
{
  var index = info.index;    
  var linkURL = info.linkURL;
  var thumbURL = info.thumbURL;
  var thumbWidth = info.thumbWidth;
  var thumbHeight = info.thumbHeight;
  
  var _split = thumbURL.split('blogitems/');
  var blogid = _split[1].split('/');
  blogid = blogid[0];
  loadLytebox('slideshow' + blogid + '_'+index);
}


function var_dump(obj) {
    var out = '';
    for (var i in obj) {
        out += i + ": " + obj[i] + "\n";
    }

    alert(out);

    // or, if you wanted to avoid alerts...

    var pre = document.createElement('pre');
    pre.innerHTML = out;
    document.body.appendChild(pre)
}


var timeoutID;

function loadLytebox(id) 
{
    if (typeof myLytebox != 'undefined') {
        // if the myLytebox object exists, start it up!
        myLytebox.start(document.getElementById(id), true);
    } else {
        // wait 1/10th of a second and attempt loading again...
        if (timeoutID) { clearTimeout(timeoutID); }
        timeoutID = setTimeout('loadLytebox("'+id+'")', 100);
    }
}
