var ImageSRC = function () {
	
	var divLogo = $('logo');
	var imageLogo = $$(divLogo.getElementsByTagName('img'));
	imageLogo.each(function(LOGO){
		var sourceCurrentLogo = LOGO.get('src');
		var sourceNewLogo = '../' + sourceCurrentLogo;
		LOGO.set('src', sourceNewLogo);
	});
	
	var divInfo = $('generic-info');
	var images = $$(divInfo.getElementsByTagName('img'));
	images.each(function(IMAGE){
		var sourceCurrent = IMAGE.get('src');
		if(sourceCurrent) {
			var sourceNew = '../' + sourceCurrent;
			IMAGE.set('src', sourceNew);
		}
	});
	
	var links = $$(divInfo.getElementsByTagName('a'));
	links.each(function(LINK){
		var linkCurrent = LINK.get('href');
		if(linkCurrent) {
			if(linkCurrent.test("uploads/")) {
				var linkNew = '../' + linkCurrent;
				LINK.set('href', linkNew)
			}
			if(linkCurrent.test("index.php")) {
				var linkNew = '../' + linkCurrent;
				if(linkNew.test("../index.php/home")) {
				
					var linkNew = '../index.php';
				
				}
				LINK.set('href', linkNew)
			}
		}
	});
}


window.addEvent('domready', function() {
	
	ImageSRC();	
	
});
