// JavaScript Document
$(document).ready(function() {
							   
		$('#experience').before($('#portfolio'));
		$('.experience').each(function() { 

			$('.description',$(this)).after($('.tasks',$(this)));
			
									   
		 });				   
	
		doautolink();
	
}); // End Document Ready


// create auto-links. Replace any url to cliquable urls. All existing clickable urls are left as is.
// we assume we have a form with a text area whose name is "body"
//
// S.Rodriguez. August 5, 2003.
//
// supported browsers : Netscape, Mozilla, Internet Explorer
//
function autolink(s) 
{   
   var hlink = /\s(ht|f)tp:\/\/([^ \,\;\:\!\)\(\"\'\<\>\f\n\r\t\v])+/g;
   return (s.replace (hlink, function ($0,$1,$2) { s = $0.substring(1,$0.length); 
                                                   // remove trailing dots, if any
                                                   while (s.length>0 && s.charAt(s.length-1)=='.') 
                                                      s=s.substring(0,s.length-1);
                                                   // add hlink
                                                   return " " + s.link(s); 
                                                 }
                     ) 
           );
}

function doautolink()
{
   $('body').html(autolink($('body').html()));
}
