var mobj_PostToUrl_old;


//Implicit Override with code
function wes_override(){

	try{
		if(PostToUrl != null){
			mobj_PostToUrl_old = PostToUrl;
			PostToUrl = wes_PostToUrl;
			
		}else{
	
		}

	}catch(err){
		//alert("ERROR:  " + err.toString());
	}
}

function wes_PostToUrl(url){
	if(url == null || url.length <=0){
		return;
	}
	
	document.location.href = url;

}


//Explicit override.  this fixes the activex name.dll install dialog that appears for windows vista.
//function ProcessImn(){}
//function ProcessImnMarkers(){}
//---------------------------------------------------------

function ProcessDefaultOnLoad(onLoadFunctionNames)
{
	//** Uncomment this to see when this runs
	//alert('Fixing the Issue');
	
	ProcessPNGImages();
	UpdateAccessibilityUI();
	
	//** We comment out the offending ootb function
	//** and leave the rest of the functions as they were
	//ProcessImn();
	for (var i=0; i < onLoadFunctionNames.length; i++)
	{
		var expr="if(typeof("+onLoadFunctionNames[i]+")=='function'){"+onLoadFunctionNames[i]+"();}";
		eval(expr);
	}
	if (typeof(_spUseDefaultFocus)!="undefined")
		DefaultFocus();
}

_spBodyOnLoadFunctionNames.push("wes_override");

