/* Author: 

 */


var addthis_config = {
    ui_language: "en",
    ui_header_color: "#fff",
    ui_header_background: "#173259",
    ui_click: "true"
}





$('.ie7 .page_content > .for_ie7').each(function(){
   var qHeight = $(this).parent().find('q').height();
    $(this).css('margin-top', -qHeight - 50);
});





function playVideo() {
    $("#example").click();
}

$(document).ready(function() {
    $("#ajax-contact-form").submit(function() {

        var str = $(this).serialize();

        $.ajax({
            type: "POST",
            url: "/contact.php",
            data: str,
            success: function(msg) {

                $("#note").ajaxComplete(function(event, request, settings) {

                    if (msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
                    {
                        result = '<div class="succes_message">Your message has been sent.<br />Thank you!</div>';
                        $("#fields").hide();
                    }
                    else {
                        result = msg;
                    }

                    $(this).html(result);

                });

            }

        });

        return false;

    });

});

$('#gm1').click(function() {
    window.location.href = "http://maps.google.com.ua/maps/ms?hl=ru&ie=UTF8&msa=0&msid=116994749610013889520.000491c8e73e550723f5d&z=19";
});
$('#gm2').click(function() {
    window.location.href = "http://maps.google.com.ua/maps/ms?hl=ru&ie=UTF8&msa=0&msid=116994749610013889520.000491c972a29d565ef5d&ll=38.94893,-77.350874&spn=0.024598,0.055747&z=15";
});































