$(document).ready(function() {
$("a.fbx-thmb").fancybox({
'titleShow': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'titlePosition': 'outside',
'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';} });
$("a.fbx-thmbt").fancybox({
'titleShow': true,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'titlePosition': 'outside',
'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';} });
$("a.fbx-if95").fancybox({
'width':'95%',
'height':'95%',
'autoScale':false,
'transitionIn':'none',
'transitionOut':'none',
'type':'iframe'});
$('a.fbx-ifpx').each(function(){  
        var dWidth  = parseInt($(this).attr('href').match(/width=[0-9]+/i)[0].replace('width=',''));  
        var dHeight     =  parseInt($(this).attr('href').match(/height=[0-9]+/i)[0].replace('height=',''));  
$(this).fancybox({  
    'width':dWidth,  
    'height':dHeight,  
    'autoScale'         : false,  
    'transitionIn'      : 'elastic',  
    'transitionOut'     : 'elastic',  
    'type'          : 'iframe'  }); });  
});
