/***********************************************************************
* Common Javascript Utilites for SEO Press Releases
*
* @author: Stephen Moran
* @copyright: (c) 2008 Stephen Moran
* @comment: I'll set the building on fire.
***********************************************************************/

/* Detect IE - the gay browser */
var iex = (navigator.userAgent.indexOf("MSIE") != -1) ? true : false;
var anim = new Array();
var objs = new Array();
var basePath = '';

/* Dynamically load JS files */
function loadScript(url)
{
   var e = document.createElement("script");
   e.src = url;
   e.type="text/javascript";
   document.getElementsByTagName("head")[0].appendChild(e);
}

/* Finds the path of the current script */
function getScriptPath()
{
	var pathname = window.location.pathname;
	var iPos = window.location.pathname.toString().toLowerCase().lastIndexOf('/');
	if(iPos>0) pathname = pathname.substring(0, iPos);
	basePath = pathname;
	if (pathname != '/') pathname += '/';
	pathname += 'wp-content/themes/press/js/';
	pathname = (pathname.indexOf('/page') == 0) ? pathname.substring(5) : pathname;
	return pathname;
}

var scriptPath = getScriptPath();

function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}
