/*
 * class that holds all subs snippet javascript
 * @copyright Barcroft Digital 03/07/2009
*/
function subs()
{

/*
 * swaps the image source
*/
function swapImg(baseId,newSource,newTitle,newPdf)
	{
	var theImg = document.getElementById(baseId+'_img');
	var theLink = document.getElementById(baseId+'_link');
	//set the new link path
	theImg.src = newSource;
	theImg.title = newTitle;
	theLink.href = newPdf;
	}
//declare the function
this.swapImg = swapImg;



}

var subs = new subs();
