var p=0;
var time=0;
function moveSlider(div,maxp) {
	if(p>maxp+1) {
		p=50;
		//setTime();
	}
	show('loading');
	$(div).style.width=p+"%";
	p++;
	if(p>=100) {
		$(div).style.width=p+"%";
		hide('loading');
		//calcTime();
		return;
	}
	if(p<=maxp)
		setTimeout("moveSlider('"+div+"',"+maxp+");",4);
}
function setSlider(div,cp) {
	$(div).style.width=cp+"%";
}
function openPopup(text) {
	window.open(text,'','');
}
function setTime() {
	var date=new Date;
	time=parseInt(date.getTime());
}
function calcTime() {
	var date=new Date;
	var ntime=parseInt(date.getTime());
	var t=(ntime-time)/1000;
	alert(t);
}
setTime();