/**
 * @author Michal Mutryn - yellowmonkey.pl
 */

function mapaStart(){
    	
		var wspolrzedne = new google.maps.LatLng(50.2675687, 18.9365671);
		var ustawienia = {
		zoom: 14,
		center: wspolrzedne,
		mapTypeControl: true,
		mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
		navigationControl: true,
		navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
		mapTypeId: google.maps.MapTypeId.ROADMAP };
		
		var mapa = new google.maps.Map(document.getElementById("mapa"), ustawienia);
		
		var ustawieniaMarkera = {
			position: wspolrzedne,
			map: mapa,
			title: "OST-Engineer"
		}
		
		
		var marker = new google.maps.Marker(ustawieniaMarkera);
}

function cycleStart(){
		$("#partnerzy > div").cycle({
			fx: "scrollLeft",
			speed: 5000,
			timeout: 1000,
			delay: -3000,
			random: 1
		});
	};
	
function overlayStart(){
        $('img.news_image').overlay({
            mask: {
                color: "#ccc",
                loadSpeed: 600,
                opacity: 0.8
            },
            top: "center"
        });
        $('.galeria').click(function(){
            $('.close').click();
        });
    }

function logotypy (){
	$('.uslugi img:nth-child(1)').delay(1000).fadeIn(1000);
	$('.uslugi img:nth-child(2)').delay(2000).fadeIn(1000);
	$('.uslugi img:nth-child(3)').delay(3000).fadeIn(1000);
	$('#kompetencje').delay(1000).fadeIn(1000);
}	
$(document).ready(function() {
	
	$("a.menu_foto2").mouseover(function(){
		$(this).children().stop(true,true).fadeOut();
	});
	$("a.menu_foto2").mouseleave(function(){
		$(this).children().stop(true,true).fadeIn();
	});
});
