// GET OBJECT
var getObj = function(sName){
	if (document.getElementById)
		return document.getElementById(sName);
	else if (document.all)
		return document.all[sName];
	else if (document.layers)
		return document.layers[sName];
	else
		return false;
}


var findResolution = function(){
	if (getObj('swf_site') != null){
		var iWidth = document.documentElement.scrollWidth;
		var iHeight = document.documentElement.scrollHeight;

		// FIREFOX
		if (navigator.userAgent.indexOf('MSIE') == -1){
			iWidth = document.body.scrollWidth;
			iHeight = document.body.scrollHeight;
		}

		if (iWidth <= 1002)
			getObj('swf_site').width = '1002';
		else
			getObj('swf_site').width = '100%';

		if (iHeight <= 598)
			getObj('swf_site').height = '598';
		else
			getObj('swf_site').height = '100%';
	}
}


var PopRegulamento = function(){
	var iLargura = 417;
	var iAltura = 550;
	var iPosX = (window.screen.width - iLargura - 16) / 2;
	var iPosY = (window.screen.height - iAltura) / 2;

	var wPop = window.open('pop_regulamento.htm','regulamento','width=' + iLargura + ',height=' + iAltura + ',top=' + iPosY + ',left=' + iPosX + ',status=no,toolbar=no,menubar=no,location=no,scrollbars=yes');
		wPop.focus();
}


window.status = 'Lojas Renner';