// Freecaps
function new_freecap()
{// loads new freeCap image
	if(document.getElementById)
	{// extract image name from image source (i.e. cut off ?randomness)
		thesrc = document.getElementById("freecap").src;
		thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
		// add ?(random) to prevent browser/isp caching
		document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
	}
	else
	{
		alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
	}
}


/*----------For Picture Slide Start--------------------*/


//specify interval between slide (in mili seconds)
var slidespeed = 5000;
//specify images
var slideimages = new Array(jspath+"images/pic1.jpg",jspath+"images/pic3.jpg",jspath+"images/pic6.jpg",jspath+"images/pic2.jpg",jspath+"images/pic5.jpg",jspath+"images/pic8.jpg",jspath+"images/pic9.jpg",jspath+"images/pic4.jpg",jspath+"images/pic7.jpg");
//specify corresponding links
//var slidelinks=new Array(jspath+"#ad1",jspath+"#ad2",jspath+"personal/loan/homeloan.php",jspath+"#ad4");

var imageholder=new Array();
var ie55=window.createPopup;
for (i=0;i<slideimages.length;i++)
{
	imageholder[i]=new Image();
	imageholder[i].src=slideimages[i];
}

function gotoshow()
{
	window.location=slidelinks[whichlink];
	//alert(jspath+slidelinks[whichlink]);
}

/*----------For Picture Slide End--------------------*/