// JavaScript Document
var progImgName = 'progImg';  //name of the image on the "program" pages
var progImgLinkName = 'progImgLink';  //name of the image on the "program" pages

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function swapProgImage(fileName,width,height){
	document.images[progImgName].src = '../imgUser/big/'+fileName;
	document.images[progImgName].width = width;
	document.images[progImgName].height = height;
	//setting the link to the big image
	element = null;
	if(document.getElementById(progImgLinkName)){
		element = document.getElementById(progImgLinkName); //explorer
	}else{
		element = document.links[progImgLinkName]; //mozilla
	}
	element.href = '../imgUser/raw/'+fileName;
}