﻿$(document).ready(function () {
    var width = (Math.floor(((screen.width - 50) / 293)) * 293) + "px";
    var width2 = ((Math.floor(((screen.width - 50) / 293)) * 293) - 15) + "px";
    var width3 = ((Math.floor(((screen.width - 50) / 293)) * 293) - 15) - 150 + "px";
    document.getElementById('Content').style.width = width;
    document.getElementById('Header').style.width = width2;
    document.getElementById('Footer').style.width = width;
    document.getElementById('The').style.width = width3;

    $(".BigImage").fancybox({
        'overlayColor': '#000',
        'overlayOpacity': 0.7,
        'transitionIn': 'elastic',
        'padding': 0

    });
    $("a[rel=Contact]").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'type': 'iframe',
        'width': 350,
        'height': 300,
        'padding': 0
    });
    $(".Sss").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'type': 'iframe',
        'width': '100%',
        'height': '100%',
        'padding': 0
    });
    $('a[rel=logo]').hover(
                function () {
                    $('.Title').fadeIn(400);
                }
                , function () {
                    $('.Title').fadeOut(300);
                }
            );
});

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23026738-2']);
_gaq.push(['_trackPageview']);

(function () {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
