﻿$(document).ready(function () {
    $("a.venice_florence").fancybox({
        'zoomSpeedIn': 500,
        'zoomSpeedOut': 500,
        'frameWidth': 540,
        'frameHeight': 304,
        'hideOnContentClick': false
    });

    $("a.relinquish_mummery_part6").fancybox({
        'zoomSpeedIn': 500,
        'zoomSpeedOut': 500,
        'frameWidth': 720,
        'frameHeight': 480,
        'hideOnContentClick': false
    });


    $("a.pneumaton_presentation").fancybox({
        'zoomSpeedIn': 500,
        'zoomSpeedOut': 500,
        'frameWidth': 720,
        'frameHeight': 540,
        'hideOnContentClick': false
    });





    $("a.artadida2").fancybox({
        'padding': 7,
        'zoomSpeedIn': 500,
        'zoomSpeedOut': 500,
        'frameWidth': 800,
        'frameHeight': 640,
        'hideOnContentClick': false
    });


    $("a.selected_works").fancybox({
        'zoomSpeedIn': 500,
        'zoomSpeedOut': 500,
        'frameWidth': 540,
        'frameHeight': 360,
        'hideOnContentClick': false
    });


    $("a.the_bright_field").click(function () {
        $.fancybox({
            'padding': 7,
            'autoScale': false,
            'transitionIn': 'none',
            'transitionOut': 'none',
            'title': this.title,
            'width': 640,
            'height': 385,
            'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
            'type': 'swf',
            'swf': {
                'wmode': 'transparent',
                'allowfullscreen': 'true'
            }
        });

        return false;
    });


    $("a.aesthetic_ecstasy").click(function () {
        $.fancybox({
            'padding': 0,
            'autoScale': false,
            'transitionIn': 'none',
            'transitionOut': 'none',
            'title': this.title,
            'width': 425,
            'height': 344,
            'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
            'type': 'swf',
            'swf': {
                'wmode': 'transparent',
                'allowfullscreen': 'true'
            }
        });

        return false;
    });


    $("a.perfect_abstraction").click(function () {
        $.fancybox({
            'padding': 0,
            'autoScale': false,
            'transitionIn': 'none',
            'transitionOut': 'none',
            'title': this.title,
            'width': 425,
            'height': 344,
            'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
            'type': 'swf',
            'swf': {
                'wmode': 'transparent',
                'allowfullscreen': 'true'
            }
        });

        return false;
    });




});
