// JavaScript Document
<!--
FRAMESET_TEMPLATE =
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">\
<html>\
<head>\
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\
<title>INE :: Sistema de Informaci&oacute;n Geogr&aacute;fica de las Cuencas H&iacute;dricas de M&eacute;xico</title>\
</head>\
<frameset cols="0,*" frameborder="no" border="0" framespacing="0">\
  <frame src="IDF/FMsetBK.htm" name="FMLF" frameborder="no" scrolling="no" noresize id="FMLF">\
  <frame src="__CONTENT_FRAME_URL__" name="FMMain" frameborder="no" scrolling="No" noresize id="FMMain">\
</frameset>\
</html>';

PARENTED_FLAG = "?a";

if( location.search != PARENTED_FLAG ){
   if (location.href.search(/#/i)==-1) {
	 var FMMainUrl = location.href + PARENTED_FLAG;
   }
   else {
	 var theLink = location.href.substring(location.href.lastIndexOf("/") + 1,location.href.lastIndexOf("#"));
	 var theMarca = location.href.substring(location.href.lastIndexOf("#"),location.href.length);
	 var FMMainUrl = theLink + PARENTED_FLAG + theMarca;
   }
   var framesetHtml = FRAMESET_TEMPLATE.
       replace(/__CONTENT_FRAME_URL__/, FMMainUrl);
   document.write(framesetHtml);
   document.close();
}
//-->
