$(window).load( function() {

$("#navmeny ul").lavaLamp({
	fx: "backout",
	speed: 700
	});

 })
 

$(document).ready(function() {
	
			
	$("#kontakt-kart img").hover(
		function() { $("#kontakt-kart .desc-box").eq($(this).index()).fadeIn('400')},
		function() {}
	);

	$("#kontakt-kart .desc-box").hover(
		function() {},
		function() { $(this).fadeOut('400') }
	);
	
	var $container = $('.slideshow').cycle({
		fx:					'fade',
		cleartype:			true,
		cleartypeNoBg:		true,
		timeout:			5000,
		pauseOnPagerHover:	1,
		next:   			'#slideshow-next',
		prev:				'#slideshow-prev',
		pager:				'#slideshow-pager',
        pagerAnchorBuilder: function(idx, slide) {
            return '#slideshow-pager li:eq(' + (idx) + ') a';
        },
		pagerEvent: 'mouseover',
		pause: 0
    });
    
    $(function(){
   
   		 $('#p-brazil').click(function(){
	        window.open("http://maps.google.com/maps?f=q&source=s_q&hl=no&geocode=&q=R.+Lauro+M%C3%BCller,+116+-+Leme,+Rio+de+Janeiro+-+RJ,+22290-160,+Brasil&aq=0&sll=29.757115,-95.401723&sspn=0.006436,0.013078&ie=UTF8&hq=&hnear=R.+Lauro+M%C3%BCller,+116+-+Leme,+Rio+de+Janeiro,+22290-160,+Brasil&z=17");
    	    return false;
    	});
    	
   		 $('#p-usa').click(function(){
	        window.open("http://maps.google.com/maps?f=q&source=s_q&hl=no&geocode=&q=3410+W+Dallas+St+%23200,+Houston,+TX+77019,+Amerikas+forente+stater&aq=0&sll=37.0625,-95.677068&sspn=47.751524,107.138672&ie=UTF8&hq=&hnear=3410+W+Dallas+St,+Houston,+Texas+77019&z=17");
    	    return false;
    	});
    	
   		 $('#p-norway').click(function(){
	        window.open("http://maps.google.com/maps?f=q&source=s_q&hl=no&geocode=&q=resman+trondheim&aq=&sll=-22.956501,-43.176591&sspn=0.006826,0.013078&g=R.+Lauro+M%C3%BCller,+116+-+Leme,+Rio+de+Janeiro+-+RJ,+22290-160,+Brasil&ie=UTF8&hq=resman&hnear=Trondheim,+S%C3%B8r-Tr%C3%B8ndelag,+Norge&ll=63.443756,10.428429&spn=0.051113,0.209255&z=13&iwloc=A");
    	    return false;
    	});    	    	
	});
	
});
