$(document).ready(function() {
   


     $(document).pngFix(); 


     $('.visa').hover(function(){
       
       $(this).css("background", "#dddddd");
       $(this).css("border", "2px solid black");


     },

     function(){
       $(this).css("background", "#eeeeee");
       $(this).css("border", "1px solid #cccccc");

     }

     );

 


 $('.miniatyrer img').hover(function(){

 	$(this).css("border", "3px solid #00aa00");
 	$(this).css("padding", "0px");

 
 	}
 	, 
      function () {
        $(this).css("border", "0px");
        $(this).css("padding", "3px");
      }

 	

 	);
 	
 $('.miniatyrer img').click(function(){
 	
 	
 	var test="/viewrefimg.php?thumb=1&image_id="+$(this).attr("rel");

 	$('#referensbild').fadeOut(1000, function() { 
 		
 		
 	$('#referensbild').attr("src", test).fadeIn(1000);	
 	
 	
 	
 	});
 	
 		
 	

 });
 

 $('#slide_holder').agile_carousel({
	first_last_buttons: "no",
    hover_next_prev_buttons: "yes",
    next_prev_buttons: "no",
    pause_button: "yes",
    slide_buttons: "no",
	//slide_captions: "JQuery Carousel Plugin|Agile Slide Types|JQuery UI Effects Available|Agile Settings|Carousel That's Built to Order", 
    slide_directory: "/media/slides/",
 	//slide_links: "http://code.google.com/p/agile-carousel/downloads/list,http://code.google.com/p/agile-carousel/downloads/list,http://code.google.com/p/agile-carousel/downloads/list,http://code.google.com/p/agile-carousel/downloads/list,http://code.google.com/p/agile-carousel/downloads/list",
    slide_number_display: "no",
    timer_length: "7000",
	transition_duration: 1000,
		
    transition_type: "carousel",
	water_mark: "yes"
	 });
 
 
 
		
 });
