function randomImageClick (clickObj,imgObj,baseName)
{

	jQuery(clickObj).click(function() {

		switchImage = jQuery(imgObj)[0];
		
		imageNodes = (switchImage.src).split("/");
		nodeCount = imageNodes.length;
		
		maxRandom = 7;
		randomNum = Math.floor(Math.random()*maxRandom);


		oldImage = imageNodes[nodeCount-1];
		newImage = baseName + randomNum + ".gif";

		switchImage.src = switchImage.src.replace( oldImage, newImage );

  	});	
	
	
}


function randomTextClick (clickObj,replaceClassName,xmlDir,xmlFileName)
{

	jQuery(clickObj).click(function() {
									
		replaceObj = "." + 	replaceClassName;

		filePath = xmlDir + "/" + xmlFileName + ".xml";
		$(replaceObj).replaceWith('<span class="' + replaceClassName + '"></span>');
		$(replaceObj).randomContent({xmlPath: filePath, nodeName: "infp"});			

  	});	
	
	
}



/*  On DOM Ready
-------------------------------------------------------------------------------------------*/

