	   $(document).ready(
				function(){
					$('#news').innerfade({
						animationtype: 'slide',
						speed: 750,
						timeout: 2000,
						type: 'random',
						containerheight: '1em'
					});
					
					$('ul#portfolio').innerfade({
						speed: 1000,
						timeout: 5000,
						type: 'sequence',
						containerheight: '220px'
					});
					
					$('div#infoslide').innerfade({
						speed: 1000,
						timeout: 5000,
						type: 'sequence',
						containerheight: '220px'
					});

					
					$('.fade').innerfade({
						speed: 1000,
						timeout: 6000,
						type: 'random_start',
						containerheight: '1.5em'
					});
					
					$('.adi').innerfade({
						speed: 'slow',
						timeout: 5000,
						type: 'random',
						containerheight: '150px'
					});

			});





function ahah(url, target) {
		  document.getElementById(target).innerHTML = ' <img class="load_indicator" src="images/loading.gif" />';
		  if (window.XMLHttpRequest) {
			req = new XMLHttpRequest();
		  } else if (window.ActiveXObject) {
			req = new ActiveXObject("Microsoft.XMLHTTP");
		  }
		  if (req != undefined) {
			req.onreadystatechange = function() {ahahDone(url, target);};
			req.open("GET", url, true);
			req.send("");
		  }
		}  
		
		function ahahDone(url, target) {
		  if (req.readyState == 4) { // only if req is "loaded"
			if (req.status == 200) { // only if "OK"
			  document.getElementById(target).innerHTML = req.responseText;
			} else {
			  document.getElementById(target).innerHTML=" XMLHttpRequest Error:\n"+ req.status + "\n" +req.statusText;
			}
		  }
		}
		
		function load(name, div) {
			ahah(name,div);
			return false;
		}
	
