/*

  eGV.js -- eGV Web Mapping framework

  Copyright 2010 Geodata Sistemas SL, released under the GNU/GPL v3 license.
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/
var eGV={singleFile:true};var singleFile=(typeof eGV=="object"&&eGV.singleFile);var eGVInit={scriptName:(!singleFile)?"egv-init.js":"egv-init-c.js",scriptRoot:"",_getScriptLocation:function(){var scriptLocation="";var scriptName=this.scriptName;var scripts=document.getElementsByTagName('script');for(var i=0,len=scripts.length;i<len;i++){var src=scripts[i].getAttribute('src');if(src){var index=src.lastIndexOf(scriptName);var pathLength=src.lastIndexOf('?');if(pathLength<0){pathLength=src.length;}
if((index>-1)&&(index+scriptName.length==pathLength)){scriptLocation=src.slice(0,pathLength-scriptName.length);break;}}}
return scriptLocation;},includeScript:function(filename,id){if(id)id=" id='"+id+"'";document.write("<script src='"+filename+"'"+id+"></script>");}}
eGVInit.scriptRoot=eGVInit._getScriptLocation();if(!singleFile){eGVInit.includeScript(eGVInit.scriptRoot+"egv/lib/egv.js","scripteGV");eGVInit.includeScript(eGVInit.scriptRoot+"egv/lib/egv-libs.js","scripteGV");}else{eGVInit.includeScript(eGVInit.scriptRoot+"egv/egv.js","scripteGV");}
