// JavaScript Documentvar fypPics;var tsPics;var gsPics;var pvPics;function initPics() {	fypPics = ['fypStart','fyp','fyp2','fyp3','fyp4','fyp5','fyp6'];	tsPics = ['tsStart','ts'];	gsPics = ['gsStart','gs','gs2','gs3','gs4'];	pvPics = ['pvStart','pv','pv2','pv3','pv4'];}function randomPics() {	initPics();	var rand;	rand=Math.floor(Math.random()*(fypPics.length-1));	var fyp = document.getElementById(fypPics[0]);	fyp.setAttribute('id',fypPics[rand+1]);		rand=Math.floor(Math.random()*(tsPics.length-1));	var ts = document.getElementById(tsPics[0]);	ts.setAttribute('id',tsPics[rand+1]);		rand=Math.floor(Math.random()*(gsPics.length-1));	var gs = document.getElementById(gsPics[0]);	gs.setAttribute('id',gsPics[rand+1]);		rand=Math.floor(Math.random()*(pvPics.length-1));	var pv = document.getElementById(pvPics[0]);	pv.setAttribute('id',pvPics[rand+1]);}