﻿$(document).ready(function() {
    $(".caseportf").click(function() {
        var oUrl = $(this).children("a").attr("href");
        location.href = oUrl;
    });

    $("a.lbox").lightBox();

    $(".caseportf").mouseover(function() {
        $(this).children("a").css("color", "#04cbce");
        $(this).children("div").show();
    });
    $(".caseportf").mouseout(function() {
        $(this).children("a").css("color", "#fff");
        $(this).children("div").hide();
    });

    $(".caseportf").each(function() {
        $(this).append("<div>&nbsp;</div>");
    });

    $("#menu li a").text("&nbsp;");


    $("select[name='cat']").change(function() {
        if ($(this).val() == "4") {
            $("#vimeo").fadeOut();
            $("#imginfo").fadeIn();
        } else {
            $("#vimeo").fadeIn();
            $("#imginfo").fadeOut();
        }
    });


    if ($("div.panel").size() < 2) {
        $("div.coda-nav-left").hide();
        $("div.coda-nav-right").hide();
    }
});

sIFR.fromLocal = true;
sIFR.isEnabled = true;

var vag = {
	src: '/Flash/caecilia.swf'
};

sIFR.activate(vag);

sIFR.replace(vag, {
	selector: 'h2',
	wmode: 'transparent',
	css: ' .sIFR-root { font-size: 24px; color: #FFFFFF; font-weight: bold;}'
});

sIFR.replace(vag, {
	selector: 'h3',
	wmode: 'transparent',
	css: ' .sIFR-root { font-size: 13px; color: #03cdd1; font-weight: bold;}'
});

