﻿/// <reference path="../js/jquery.vsdoc.js" />
var popUp = function(Uri, w, h) {
    w = (w) ? w : 500;
    h = (h) ? h : 400;
    var l = $(window).width() / 2 - w / 2;
    var t = $(window).height() / 2 - h / 2 - 20;
    var opt = "left=" + l + ",top=" + t + ",height=" + h + ",width=" + w + ",status=no,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no";
    window.open(Uri, "", opt);
    return false;
}
$(function() {
    $(window).load(function() {
        var pcHeight = parseFloat($(".PageContent").height());
        if (pcHeight > 604) {
            var middleHeight = parseFloat($(".middle").height());
            $(".middle").height(middleHeight + pcHeight - 604);
            if (jQuery.browser.msie && parseFloat(jQuery.browser.version) < 7) {
                var cntHeight = parseFloat($(".centerframe").height()) - 23;
                $(".leftshadow").height(cntHeight);
                $(".rightshadow").height(cntHeight);
            }
        }
    });
    var grayshadow = {
        left: 4,
        top: 4,
        blur: 2,
        opacity: 0.5,
        color: "#003300"
    }
    $(".shadow").each(function() {
        //   $(this).live(function() {
        $(this).dropShadow(grayshadow);
        //   });
    });

    $(".products .descr").each(function() {
        $(this).hover(
        function() {
            var txt = $(".hidden", $(this)).html();
            $(".popup").css("opacity","0.9").html(txt).show().dropShadow(grayshadow);
        },
        function() { $(".popup").removeShadow().hide() }
        );

    })

    $('#flash').flash({
        src: 'files/flash/praxis.swf',
        width: 430,
        height: 400,
        version: '6.0.65',
        wmode: 'transparent'
    });



});