	function BrowserCheckPDR() {
		var b = navigator.appName;
		if (b=="Netscape") this.b = "ns";
		else if (b=="Microsoft Internet Explorer") this.b = "ie";
		else this.b = b;
		this.version = navigator.appVersion;
		this.v = parseInt(this.version);
		this.ns = (this.b=="ns" && this.v>=4);
		this.ns4 = (this.b=="ns" && this.v==4);
		this.ns5 = (this.b=="ns" && this.v==5);
		this.ie = (this.b=="ie" && this.v>=4);
		this.ie4 = (this.version.indexOf('MSIE 4')>0);
		this.ie5 = (this.version.indexOf('MSIE 5')>0);
		this.min = (this.ns||this.ie);
	}
	var browserCheckPDR = new BrowserCheckPDR();
	
	function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MMH_swapImgRestore() { //v3.0
  var i,x,a=document.MMH_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MMH_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MMH_p) d.MMH_p=new Array();
    var i,j=d.MMH_p.length,a=MMH_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MMH_p[j]=new Image; d.MMH_p[j++].src=a[i];}}
}

function MMH_findObj(n, d) { //v4.01
  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=MMH_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MMH_swapImage() { //v3.0
  var i,j=0,x,a=MMH_swapImage.arguments; document.MMH_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MMH_findObj(a[i]))!=null){document.MMH_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function CB_WriteButton(pActive) {
	var vPixels = 0;
	var button = "";
	var vineta = "";
	var imgPath = "http://www.amarillas.cl/dbproductos/library/img/";
	//vPixels = (((pActive-1)*148)+(76.5));
	if(browserCheckPDR.ie){
		vPixels = (((pActive-1)*142)+(84.5)) + "px;bottom:8";
		if (pActive==5){
			vPixels = (((pActive-1)*142)+(73.5)) + "px;bottom:8";
		}
	}
	else{
		vPixels = (((pActive-1)*148)+(83.5));
		if (pActive==5){
			vPixels = (((pActive-1)*142)+(71.5));
		}
	}
	button += "<table width=\"740\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
	if (pActive == 1) {
		vineta = "<img src=\""+ imgPath +"btn_home_arrow.gif\" />";
		button += "	<td width=\"185\"><a href=\"http://www.amarillas.cl\" target=\"_top\" onclick=\"MM_nbGroup('down','group1','btnamarillas3','"+ imgPath +"btn_amarillas_pdr.gif',1)\" onmouseover=\"MM_nbGroup('over','btnamarillas3','"+ imgPath +"btn_amarillas2_pdr.gif','',1)\" onmouseout=\"MM_nbGroup('out')\"><img src=\""+ imgPath +"btn_amarillas3_pdr.gif\" alt=\"Amarillas.cl de Publigu&iacute;as\" name=\"btnamarillas3\" width=\"185\" height=\"23\" border=\"0\" id=\"btnamarillas3\" /></a></td>";
	}
	else {
		button += "	<td width=\"185\"><a href=\"http://www.amarillas.cl\" target=\"_top\" onclick=\"MM_nbGroup('down','group1','btnamarillas','"+ imgPath +"btn_amarillas3_pdr.gif',1)\" onmouseover=\"MM_nbGroup('over','btnamarillas','"+ imgPath +"btn_amarillas2_pdr.gif','',1)\" onmouseout=\"MM_nbGroup('out')\"><img src=\""+ imgPath +"btn_amarillas_pdr.gif\" alt=\"Amarillas.cl de Publigu&iacute;as\" name=\"btnamarillas\" width=\"185\" height=\"23\" border=\"0\" id=\"btnamarillas\" /></a></td>";
	}

	button += "	<td width=\"185\"><a target=\"_blank\" href=\"http://www.planos.cl\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image2','','"+ imgPath +"btn_planos2_pdr.gif',1)\"><img src=\""+ imgPath +"btn_planos_pdr.gif\" alt=\"Planos.cl de Publigu&iacute;as\" name=\"Image2\" width=\"185\" height=\"23\" border=\"0\" id=\"Image2\" /></a></td>";
	button += "	<td width=\"185\"><a target=\"_blank\" href=\"http://www.blancas.cl\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image3','','"+ imgPath +"btn_blancas2_pdr.gif',1)\"><img src=\""+ imgPath +"btn_blancas_pdr.gif\" alt=\"P&aacute;ginas Blancas Interactivas de Publigu&iacute;as\" name=\"Image3\" width=\"185\" height=\"23\" border=\"0\" id=\"Image3\" /></a></td>";


	if (pActive == 5) {
		vineta = "<img src=\""+ imgPath +"btn_figure_arrow.gif\" />";
		button += "	<td><a href=\"http://www.amarillas.cl/dbproductos/figure/index.htm\" target=\"_top\" onclick=\"MM_nbGroup('down','group1','btnfigure3','"+ imgPath +"btn_figure_pdr.gif',1)\" onmouseover=\"MM_nbGroup('over','btnfigure3','"+ imgPath +"btn_figure2_pdr.gif','',1)\" onmouseout=\"MM_nbGroup('out')\"><img src=\""+ imgPath +"btn_figure3_pdr.gif\" alt=\"Figure con nosotros\" name=\"btnfigure3\" width=\"185\" height=\"23\" border=\"0\" /></a></td>";
	}
	else {
		button += "	<td><a href=\"http://www.amarillas.cl/servicios/inscripcion/\" target=\"_top\" onclick=\"MM_nbGroup('down','group1','btnfigure','"+ imgPath +"btn_figure3_pdr.gif',1)\" onmouseover=\"MM_nbGroup('over','btnfigure','"+ imgPath +"btn_figure2_pdr.gif','',1)\" onmouseout=\"MM_nbGroup('out')\"><img src=\""+ imgPath +"btn_figure_pdr.gif\" alt=\"Figure con nosotros\" name=\"btnfigure\" width=\"185\" height=\"23\" border=\"0\" /></a></td>";
	}

	button += "</tr>";
	button += "<tr>";
	button += "	<td colspan=\"4\">";
	button += "<div id=\"divVineta\" style=\"position:relative;visibility:visible;left:"+ vPixels +"px;\">";
	button += vineta;
	button += "		</div>";
	button += "	</td>";
	button += "</tr>";

	button += "</table>";

	document.write(button);
}