var slideShowSpeed = 6000
var j =0;
var crossFadeDuration = 2
function startGame()
{
//function called onload of the body
setTimeout('runSlideShow()', 3000);
}

function runSlideShow(){
if (document.all)
{
	document.slideshow.style.filter="blendTrans(duration=-2)";
	document.slideshow.filters.blendTrans.Apply();
}
	document.slideshow.src = Pic[j].src;
	document.getElementById('quotation').innerHTML=Addr[j];
	document.getElementById('thelink').href = go_URL[j];
	document.getElementById('theprice').innerHTML = go_Price[j];
if (document.all)
{
	document.slideshow.filters.blendTrans.Play();
}
	setTimeout('runSlideShow()', slideShowSpeed)
j = j + 1
if (j == (0 + Pic.length))
j=0
}

function formatCurrency(num) {
	num = num.toString().replace(/\$|\,/g,'');
	if(isNaN(num))
		num = "0";
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num*100+0.50000000001);
		cents = num%100;
		num = Math.floor(num/100).toString();
	if(cents<10)
	cents = "0" + cents;
		for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
		num = num.substring(0,num.length-(4*i+3))+','+
		num.substring(num.length-(4*i+3));
	return (((sign)?'':'-') + '$' + num + '.' + cents);
}

