$(document).ready(function() {
$(".video").click(function() {
$.fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'width' : 640,
'height' : 385,
'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type' : 'swf',
'swf' : {
'wmode' : 'transparent',
'allowfullscreen' : 'true'
}
});
return false;
});
$("a[rel=group]").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return 'Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '';
}
});
$("a[rel=fancy]").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return 'Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '';
}
});
$("a[rel=fancy-2]").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return 'Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '';
}
});
$("a[rel=fancy2]").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over'
});
$("a[rel=login]").fancybox({
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
'padding' : 0
});
$("a[rel=finance-central-demo-english]").fancybox({
'width' : '940px',
'height' : '564px',
'padding' : 0,
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
$("a[rel=finance-central-demo-spanish]").fancybox({
'width' : '940px',
'height' : '564px',
'padding' : 0,
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
$("a[rel=migration-demo]").fancybox({
'width' : '772px',
'height' : '564px',
'padding' : 0,
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
});