$(document).ready(function(){
	$('#slider1').tinycarousel({rewind: true, display: 1, interval: true, duration: 3000, intervaltime: 5000});	
	/*$("#sliderevent").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		auto:800,
		speed:1000
    });*/
});

// LOAD DETAIL
function file(url, target) {
  document.getElementById(target).innerHTML = '<img id="loading" src="images/loading.gif" width="31" height="31" alt="Loading Shop Info..." />';
  if (window.XMLHttpRequest) {
	req = new XMLHttpRequest();
  } else if (window.ActiveXObject) {
	req = new ActiveXObject("Microsoft.XMLHTTP");
  }
  if (req != undefined) {
	req.onreadystatechange = function() {fileDone(url, target);};
	req.open("GET", url, true);
	req.send("");
  }
}  

function fileDone(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=" Load Error:\n"+ req.status + "\n" +req.statusText;
	}
  }
}

function load(name, div) {
	file(name,div);
	return false;
}
