
$(document).ready
(
	
	function()
	{
		$('a[href^="http://"] ').attr("target", "_blank");
		$('a[href$=".pdf"]').attr("target", "_blank");//open pdfs in a new window
		
	}
);
if(!Array.indexOf){//index of breaks ie
	Array.prototype.indexOf = function(obj){
		for(var i=0; i<this.length; i++){
			if(this[i]==obj){
				return i;
			}
		}
		return -1;
	}
}

try {//ie6 image swap cache problem
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


function isset( variable )

{

	return( typeof( variable ) != 'undefined' );

}