﻿//   MAXIMIZA LA VENTANA
top.window.moveTo(0,0);if (document.all) {top.window.resizeTo(screen.availWidth,screen.availHeight);}else if (document.layers||document.getElementById) {if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){top.window.outerHeight = screen.availHeight;top.window.outerWidth = screen.availWidth;}}

function headbody() {document.write('<table width="860" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td width="360" align="left" valign="bottom" class="hora"><script>fecha()</script></td><td width="140" height="73" style="background-image:url(images/logoppc.jpg); background-repeat:no-repeat"><a href="index.html" target="_parent"><img src="images/logo.gif" border="0" /></a></td><td width="360" align="right" valign="bottom"><a href="index.html" target="_parent"><img src="images/i_1.gif" width="11" height="12" hspace="14" border="0" /></a><a href="#"><img src="images/i_2.gif" alt="" width="15" height="12" hspace="6" border="0" /></a><a href="#"><img src="images/i_3.gif" alt="" width="13" height="12" hspace="10" border="0" /></a></td></tr></table>')}
function footbody() {document.write('<table width="860" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td height="25" colspan="5"></td></tr><tr><td width="6" height="40" bgcolor="#f4f7aa"></td><td width="15"></td><td width="294"><span class="texto1">Ll&aacute;menos</span><br /><span class="Titulos">902 678 007</span></td><td width="45"></td><td class="texto3">Copyright &copy; 2006 Power PC Barcelona S.L.</td></tr></table>')}
function footbody2() {document.write('<table width="860" border="0" cellspacing="0" cellpadding="0"><tr><td height="25" colspan="5" align="right" valign="bottom"><img src="images/indi.gif" /><a href="javascript:solicitud()" class="texto2">solicitar presupuesto</a><img src="images/enviar.gif" width="20" /></td></tr><tr><td width="6" height="40" bgcolor="#f4f7aa"></td><td width="15"></td><td width="294"><span class="texto1">Ll&aacute;menos</span><br /><span class="Titulos">902 678 007</span></td><td width="45"></td><td class="texto3">Copyright &copy; 2006 Power PC Service, S.L.</td></tr></table>')}

//   IM?GENES ALEATORIA DEL HOME     /////////////////////////////////////////////////////////////////////////
var rand1 = Math.round((3-1)*Math.random())+1;
images=new Array
images[1]="images/pdp71.jpg"
images[2]="images/ldk400.jpg"
images[3]="images/slmr12.jpg";
var fondo=images[rand1];
function RD_Imagen1() {document.write('<td width="315" align="right" valign="top" style="background-image:url('+fondo+'); background-repeat:no-repeat"></td>')}
//document.write('<img src="'+fondo+'">')


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_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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.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];}
}

//   ANULA LA PULSACI?N DEL BOT?N DCHO. DEL RAT?N
var message="";function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}document.oncontextmenu=new Function("return false")

//   ANULA LOS ERRORES JAVASCRIPT     /////////////////////////////////////////////////////////////////
function stoperror(){
return true
}
window.onerror=stoperror


//   FECHA     /////////////////////////////////////////////////////////////////////////////////////////////
var hoy = new Date();
var dias = new Array('DOM','LUN','MAR','MI?','JUE','VIE','S?B');
var meses = new Array('01','02','03','04','05','06','07','08','09','10','11','12');
var suma = "&nbsp;&nbsp;"+dias[hoy.getDay()]+" | "+hoy.getDate()+"."+meses[hoy.getMonth()];
function fecha(){document.write(suma)}

//   ELIMINA MENSAJES EN LA BARRA DE ESTADO     /////////////////////////////////////////////////////////////////////////
function hidestatus(){
window.status='Power PC Service   [ 902 678 007 ]'
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
