
		jQuery.fn.linklook = function (opt) {
		
			$("a", this).each( function() {
				$(this).hover(
					function() {
					
						var top = $(this).offsetTop() + 20;
						var left = $(this).offsetLeft() + 15;
						var loaded = false;
					
						jQuery("<img>")
							.hide()
							.addClass("linklook")
							.insertAfter(this)
							.attr( { src: "http://www.allheadhunters.com/webshot.asp?url=" + jQuery(this).attr("href").replace("/http:\/\//", "" ) } )
							.bind( "load", function(){ 
								if (!loaded) {
									loaded = true;
									jQuery(this).fadeIn(800); 
								}
							})
							.css({ 
								position: "absolute", 
								top: jQuery(this).offsetTop() + 25 + "px", 
								left: jQuery(this).offsetLeft() + 60 + "px" 
								});
					},
					function() { 
						$(this).next().filter("img").fadeOut(600, function() { $(this).remove(); });
					}
				);
			});
		}
		
		/**
		by Peter-Paul Koch & Alex Tingle
		*/
		jQuery.fn.offsetLeft = function() {
		
			var e = $(this)[0];
			var curleft = 0;
			if ( e.offsetParent )
				while (1) {
					curleft += e.offsetLeft;
					if( !e.offsetParent )
						break;
					e = e.offsetParent;
				}
			else if (e.x)
				curleft += e.x;
			return curleft;
		}
		
		jQuery.fn.offsetTop = function() {
		
			var e = $(this)[0];
			var curtop = 0;
			if ( e.offsetParent )
				while (1) {
					curtop += e.offsetTop;
					if ( !e.offsetParent )
						break;
					e = e.offsetParent;
				}
			else if ( e.y )
				curtop += e.y;
			return curtop;
		}	
	
	$(function() {
		 $('#logo').pngFix( );
		 $('.block .content a[href^="http://"]').attr("target", "_blank");
		 $('.block .content a[href^="http://"]').click(function(e){
			var id = this.id.split("-")[1]; 
			//$.get("tel_hit.php?id=" + id);  			 
			_gaq.push(['_trackEvent', 'External Links', 'Click', $(this).attr('href')]);
		  });		 
		 
		 $(".block .content a.descr").click(function(e)
		  {
			  var id = this.id.split("-")[1]; 
			  $('#info-' + id + ' .screenshot img').removeAttr("width").removeAttr("height").attr("src",$('#info-' + id + ' .screenshot img').attr("rel"))			  
			  $('#info-' + id).modal({overlayClose:true,minHeight:360 ,  maxWidth:600}); 
			  e.preventDefault();

		  });

		 $(".block .content li").linklook();
		 $(".header-block.left li").linklook();	 
	
		$("#about-link").click(function(event) {
			$("#about").slideToggle("slow");
		});			  		
			
	});
