/*$.getScript('lib/jquery-validate/jquery.validate.pack.js');
IncludeJavaScript("http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAyWLB5-zkmE5DnypHZRv_ehQLU4atp3LAtBgg4rH9UdQFGkWXfhTCuEP80NghLB1zioz8OUDG0l8IYw&sensor=true");
$(document).ready(function() {
	$("#contactform").validate();
        initialize();
        
        //load validation translations
        $.get("actions.php", { action_type: "GET_LANG"}, function(data){
            if(data=="IT"){
                //alert(data);
                $.getScript('lib/jquery-validate/localization/messages_it.js');
            }
        } );
});


function initialize() {
    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        var info = "Studio De Luca<br>Galleria Passerella, 2<br>20122 Milano<br>Tel. +39023655651<br>Fax +390236556505<br>studiodeluca@studiodeluca.it";
        var point = new GLatLng(45.465677, 9.1972111);
        map.setCenter(point, 13);
        map.setUIToDefault();
        map.setCenter(point, 11);
        map.openInfoWindowHtml(map.getCenter(),info);
        map.addOverlay(new GMarker(point));
    }
}*/

IncludeJavaScript('lib/jquery-validate/jquery.validate.pack.js');
IncludeJavaScript("http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAyWLB5-zkmE5DnypHZRv_ehQLU4atp3LAtBgg4rH9UdQFGkWXfhTCuEP80NghLB1zioz8OUDG0l8IYw&sensor=true");
$().ready(function() {
        initialize();
        $("#contactform").validate();

        //load validation translations
        $.get("actions.php", { action_type: "GET_LANG"}, function(data){
            if(data=="IT"){
//                alert(data);
                $.getScript('lib/jquery-validate/localization/messages_it.js');
            }
        } );
});


function initialize() {
    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        var info = "Studio De Luca<br>Largo A. Toscanini, 1 (San Babila) – 20122 Milano<br>Tel. +39023655651<br>Fax +390236556505<br>studiodeluca@studiodeluca.it";
        //var point = new GLatLng(45.465677, 9.197757);
        var point = new GLatLng(45.465838,9.198003);
		map.setCenter(point, 13);
        map.setUIToDefault();
        map.openInfoWindowHtml(map.getCenter(),info);
        map.addOverlay(new GMarker(point));
    }
}
