// JavaScript Document

var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'ban1.jpg'
theImages[1] = 'ban2.jpg'
theImages[2] = 'ban3.jpg'
theImages[3] = 'ban4.jpg'
theImages[4] = 'ban5.jpg'
theImages[5] = 'ban6.jpg'
theImages[6] = 'ban7.jpg'
theImages[7] = 'ban8.jpg'
theImages[8] = 'ban9.jpg'
// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img class="imgrandom"  src="images/'+theImages[whichImage]+'">');
}





function sudeep(a,b,c){
	
	if(a!="" && a!="null")
	   {
	   
	document.getElementById("zpubimage").innerHTML= "<img class='zpubimg' width='100px' src='"+a+"' /><br/><a  class='zpub2' href='index.php?page=publicationdetail&amp;pid="+b+"&amp;id="+c+"'>read more</a>";
	   }
	   else
	   {
		document.getElementById("zpubimage").innerHTML= "No Image";   
	   }
	   
	
}


function thapa(d,e,f){
	if(d!="" && d!="null")
	   {
	   
	
	   
	document.getElementById("zpubimage").innerHTML= "<img class='zpubimg' width='100px' src='"+d+"' /><br/><a  class='zpub2' href='index.php?page=publicationdetail&amp;pid="+e+"&amp;id="+f+"'>read more</a>";
	 
	}
	   else
	   {
		document.getElementById("zpubimage").innerHTML= "No Image";   
	   }   
	
}






