$(document).ready(function() {
	
	$('div[class~="jobb"] > a').click(function (e) {
	    // e == our event data
	    e.preventDefault();
	});
	
	
	
	$('.joblink').tooltip({events: {def:'mousedown,mouseleave'}, offset: [0, 0], effect: 'slide'}).dynamic({ bottom: { direction: 'down', bounce: true } });
	
	jQuery.each(jQuery.browser, function(i) {
	   if($.browser.msie){
	      
	   }
	
	else{

	   }
	
	 });
	
	
	$('div[class~="jobb"] > img').load(function() {
	  $('div[class~="jobb"]').fadeIn("slow");
	});
	

	
	$('li > a').click(function(){
		var filterstrang = $(this).attr('title');
			if(filterstrang=="visaallt") {
				$('div[class~="jobb"]').fadeIn('slow');
			}
		
			else {
				$('div[class~="jobb"]').fadeOut('fast');
				$('div[class~="'+filterstrang+'"]').delay(200).fadeIn('slow');
			}
	}).stop();
	
	
	
	
	(function ($) {
	if (!$) return;
	$.fn.extend({
	    fixPNG: function(sizingMethod, forceBG) {
	            if (!($.browser.msie)) return this;
	            var emptyimg = "blank.gif"; //Path to empty 1x1px GIF goes here
	            sizingMethod = sizingMethod || "scale"; //sizingMethod, defaults to scale (matches image dimensions)
	            this.each(function() {
	                    var isImg = (forceBG) ? false : jQuery.nodeName(this, "img"),
	                            imgname = (isImg) ? this.src : this.currentStyle.backgroundImage,
	                            src = (isImg) ? imgname : imgname.substring(5,imgname.length-2);
	                    this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";
	                    if (isImg) this.src = emptyimg;
	                    else this.style.backgroundImage = "url(" + emptyimg + ")";
	            });
	            return this;
	    }
	});
	})(jQuery);
});
