// PÁGINAS COM URL LIMPA
var str_window_name = 'real_frameset';
var str_page_title = document.title;

if(typeof(bln_use_st) == 'undefined'){
	bln_use_st = false;
}

if(top.frames.length > 0){
	top.frames.location = document.location.toString().replace('/index.htm','/');
}

if(top.location.href.match(/\?.*/) && !bln_use_index_internas) top.location = top.location.href.replace(/\?.*/,'');

function getPage(str_url,bln_use_index_internas){
	this.url = str_url;
	this.useIndexInternas = bln_use_index_internas;
	
	function getFrameset(){
		var str_frameset = '';
		str_frameset += '	<frameset marginwidth=\"0\" marginheight=\"0\" rows=\"2000,*\" frameborder=\"no\" framesacing=\"0\" border=\"0\">';
		str_frameset += '			<frame marginwidth=\"0\" marginheight=\"0\" name=\"portal\" src=\"' + ((this.useIndexInternas != '' && this.useIndexInternas != null) ? '/index_internas.htm?s' + ((bln_use_st) ? 't' : '') + 'Url=' : '') + this.url + '\" frameborder=\"0\" framespacing=\"0\" scrolling=\"yes\" noresize>';
		str_frameset += '			<frame src=\"\" name=\"portal_blank\">';
		str_frameset += '			<noframes>';
		str_frameset += '				<body></body>';
		str_frameset += '			</noframes>';
		str_frameset += '		</frameset>';
		
		return str_frameset;
	}
	
	this.FrameSet = getFrameset;
}

getPageAsIndex = new getPage;

getPageAsIndex.url = str_document_url;
getPageAsIndex.useIndexInternas = bln_use_index_internas;