// JavaScript Document
function change(id){
	$("#intro_image div.slider").fadeOut("slow");
	$("#intro_image img.slider").fadeOut("slow");
	var div = "#t"+id;
	var img = "#i"+id;
	var icmd = " $('"+img+"').fadeIn('slow');";
	var tcmd = " $('"+div+"').fadeIn('slow');";
	//alert(cmd);
	var idelay = setTimeout(tcmd,700);
	var tdelay = setTimeout(icmd,700);
	//$(img).fadeIn('slow');
	//var idelay = setTimeout(tcmd,700);
	if(current<smax){ current += 1; } else { current = 1; }	
	}

$(document).ready(function(){

current = 2;
smax = 5;

$('#loading').css('display','none');
//var introdelay = setTimeout("",500);
//$('#p1').fadeIn('slow');


$('#t1').fadeIn('slow');
$('#i1').fadeIn('slow');
setInterval("change(current)",10000);
		
});


