// The dispatcher function calls all the functions. 
// It will be only this function that shall be attached to the onLoad event.
// The name of the function to dispatch with MATCH the .js file name.


dispatcher = function attachTheseFunctions(){
	striplinks();
	}

// Attach dispatcher to onload event


/*if(window.attachEvent) { // win/ie
	window.attachEvent('onload', dispatcher);
} else { // mac/ie5
	if(typeof window.onload == 'function') {
		var existing = onload;
		window.onload = dispatcher;
	} else {
		window.onload = dispatcher;
	}
}*/


//setup onload function
if(typeof window.addEventListener != 'undefined')
{
	//.. gecko, safari, konqueror and standard
	window.addEventListener('load', dispatcher, false);
}
else if(typeof document.addEventListener != 'undefined')
{
	//.. opera 7
	document.addEventListener('load', generic, false);
}
else if(typeof window.attachEvent != 'undefined')
{
	//.. win/ie
	window.attachEvent('onload', dispatcher);
}

//** remove this condition to degrade older browsers
else
{
	//.. mac/ie5 and anything else that gets this far
	
	//if there's an existing onload function
	if(typeof window.onload == 'function')
	{
		//store it
		var existing = onload;
		
		//add new onload handler
		window.onload = function()
		{
		dispatcher;
		};
	}
	else
	{
		//setup onload function
		window.onload = dispatcher;
	}
}
function striplinks(){
	var linkArray = document.getElementsByTagName("img");
	for (var i=1; i<linkArray.length; i++){
		if (linkArray[i].parentNode){
			var parent=linkArray[i].parentNode;
		}

		if (parent.getAttribute("href")){
			parent.setAttribute("href","");
		}
	}
}

