var _imgs = document.getElementsByTagName('img');
var _Index;
var _img;
for(var i=0;i<_imgs.length;i++) {
	if(_imgs[i].className=='swapImg') {
		//Define imagem de Swap
		_img = _imgs[i];
		if(!_img.swapSrc) {
			_Index = _img.src.lastIndexOf('.')
			_img.swapSrc = _img.src.substring(0,_Index) + 'Hover' + _img.src.substring(_Index, _img.src.length);
		}
		_img.onmouseover = function() {
			swapImage(this);
		}
		_img.onmouseout = function() {
			swapImage(this);
		}		
	}
}
function swapImage(sender) {
	var _srcAux = sender.src;
	sender.src = sender.swapSrc;
	sender.swapSrc = _srcAux;
}

if(window.screen.width<=1024) {
	document.body.style.backgroundImage = 'url(images/bk_2.gif)';
	document.getElementById('master').style.marginTop = '15px';
	if(document.getElementById('fla')) {
		document.getElementById('fla').style.marginTop = '129px';
	}
	if(document.getElementById('bot')) {
		document.getElementById('bot').style.marginTop = '650px';
	}
	if(window.screen.width>800 && (window.location.href.indexOf('default.aspx')>-1 || window.location.href.indexOf('.aspx') < 0)) {
		document.body.style.overflow = 'hidden';
	}
}
