// ferdinandcc.org copyright 2009// @author Josh Pope / joshpope.net// pass an array of image paths and preload them to the cachefunction imagePreloader(imageArray)			{				for(var i=0;i<imageArray.length;i++)				{				this["preloaded_"+i] = new Image();				this["preloaded_"+i].src = imageArray[i];				}			}			// just a basic prototype-like function to grab elements as an array based on class namefunction getElementsByClassName(class_name)      {        var all_obj,ret_obj=new Array(),j=0,teststr;        if(document.all)all_obj=document.all;        else if(document.getElementsByTagName && !document.all)          all_obj=document.getElementsByTagName("*");        for(i=0;i<all_obj.length;i++)        {          if(all_obj[i].className.indexOf(class_name)!=-1)          {            teststr=","+all_obj[i].className.split(" ").join(",")+",";            if(teststr.indexOf(","+class_name+",")!=-1)            {              ret_obj[j]=all_obj[i];              j++;            }          }        }        return ret_obj;      }       // pass in a class name and make all text within that element uppercase function makeUpperCase(els)      	{      						for(var i = 0; i<els.length; i++)					{						var q = els[i].innerHTML;						var j = q.toUpperCase();											els[i].innerHTML = j;					}      	}      			// this is how we make sure the badge on the top-right tout is placed in the correct place.		// this is sort of experimental and hackish but its a decent solution.function setCalloutReadMore(negValue)	{		var el = document.getElementById("toutimage");		var q = document.getElementById("toutcontent");				el.style.position = "absolute";		//el.style.top = (q.offsetHeight-22)+"px";		document.getElementById("image-callout").style.top = (q.offsetHeight+27)+"px";			}	function emailSignupClick(el)	{		var response = el.value == "Email Address" ? "" : el.value;		el.value = response;	}function emailSignupRelease(el)	{		var response = el.value == "" ? "Email Address" : el.value;		el.value = response;	}function emailSignupClick_two(el)	{		var response = el.value == "Search" ? "" : el.value;		el.value = response;	}function emailSignupRelease_two(el)	{		var response = el.value == "" ? "Search" : el.value;		el.value = response;	}