if(top.location.href!='http://www.fisioburgocentro.com/'){
//	top.location.href='http://www.fisioburgocentro.com/';
//the_string.substring(from, to);

}
if(top.location.href.indexOf("http://www.fisioburgocentro.com/index.htm")!=0){
//	top.location.href='http://www.fisioburgocentro.com/index.htm';
}

/**************** ESTAS DEBEN SER DE PABLO *****************************/

function overTD(td,color){td.style.cursor='hand';td.bgColor=color;}
function outTD(td,color){td.style.cursor='default';td.bgColor=color;}


/**************** ESTAS SON GENERALES DEL DREAMWEAVER *****************************/


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}


/********** ESTAS SON DE GUS PARA EL TAMAÑO DE LAS FUENTES ******************/

function getProp(objName,theProp) { //v0.1 by GuS
  var obj = MM_findObj(objName);
  var prop;
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) {
	  eval("prop=obj."+theProp);
  }
  return prop;
}

fontsizes=new Array('xx-small','x-small','small');

function increaseSize(objName,fontsizes) { //v0.1 by GuS
	var obj = MM_findObj(objName);
	var newindex=1;
	var currentFontSize=(getProp(objName,'style.fontSize')!="")?getProp(objName,'style.fontSize'):"x-small";
	for (var i = 0; i < fontsizes.length; i++) {	
		if (fontsizes[i]==currentFontSize){
			newindex=(i+1<fontsizes.length)?i+1:i;
			//alert("Encontrado :"+i+" / "+fontsizes[i]+" / "+newindex+" / "+fontsizes[newindex]);
		}
	}
	var newFontSize=fontsizes[newindex];
	//alert("Encontrado :"+currentFontSize+" / "+newindex+" / "+fontsizes[newindex]);
	MM_changeProp(objName,'','style.fontSize',newFontSize,'SPAN')
}

function decreaseSize(objName,fontsizes) { //v0.1 by GuS
	var obj = MM_findObj(objName);
	var newindex=1;
	var currentFontSize=(getProp(objName,'style.fontSize')!="")?getProp(objName,'style.fontSize'):"x-small";

	for (var i = 0; i < fontsizes.length; i++) {	
		if (fontsizes[i]==currentFontSize){
			newindex=(i-1>=0)?i-1:i;
			//alert("Encontrado :"+i+" / "+fontsizes[i]+" / "+newindex+" / "+fontsizes[newindex]);
		}
	}
	var newFontSize=fontsizes[newindex];
	MM_changeProp(objName,'','style.fontSize',newFontSize,'SPAN')
}

function subir(){
	increaseSize('texto',fontsizes);
	increaseSize('texto2',fontsizes);
	increaseSize('texto3',fontsizes);
	increaseSize('texto4',fontsizes);
}

function bajar(){
	decreaseSize('texto',fontsizes);
	decreaseSize('texto2',fontsizes);
	decreaseSize('texto3',fontsizes);
	decreaseSize('texto4',fontsizes);
}

/********** ESTA ES PARA DESACTIVAR EL BOTON DERECHO ******************/
/*
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2)) {
alert("Heraldo.es\nCopyright ® 2003 Todos los derechos reservados.");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("fisioburgocentro.com\nCopyright ® 2003 Todos los derechos reservados.");
return false;
}
return true;
}
 
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;//  End -->
*/
/********** ESTA ES PARA DESACTIVAR LA BARRA DE ESTADO ******************/

//Hide status bar msg II script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

function hidestatus(){
window.status='fisioburgocentro.com'
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

