//Browsererkenneung



var ns4 = document.layers?1:0;

var ie  = document.all?1:0;

var ns6 = document.styleSheets&&!document.all?1:0;



// -----------------------------------------------------------------

var tab ="";



tab  = '<table width="124" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff"><tr>';

tab += '<td colspan="3" align="center"><a href="index.html" onfocus="this.blur()"><img src="images/logo.gif" width="124" height="51" border="0"></a><br>';

tab += '<img src="images/1x1.gif" width="10" height="22" border="0"></td></tr>';

tab += '<tr><td></td>';

tab += '<td valign="top"><br>';

tab += '';

tab += '';

tab += '<a href="empresa.html">';

tab += '<img src="images/empresa_off.gif" width="123" height="18" border="0"></a>';

tab += '<br>';

tab += '<a href="#">';

tab += '<img src="images/nuestros_productos_off.gif" width="123" height="15" border="0"></a>';

tab += '<br>';

tab += '<a href="producto01.html">';

tab += '<img src="images/silicona.gif" width="123" height="11" border="0"></a>';

tab += '<br>';

tab += '<a href="producto02.html">';

tab += '<img src="images/2c.gif" width="123" height="10" border="0"></a>';

tab += '<br>';

tab += '<a href="producto03.html">';

tab += '<img src="images/salas_limpias.gif" width="123" height="16" border="0"></a>';

tab += '<br>';

tab += '<a href="calidad.html">';

tab += '<img src="images/calida_off.gif" width="123" height="18" border="0"></a>';

tab += '<br>';

tab += '<a href="contacto.html">';

tab += '<img src="images/contacto_off.gif" width="123" height="21" border="0"></a>';

tab += '<br>';

tab += '<a href="#">';

tab += '<img src="images/1x1.gif" width="120" height="18" border="0"></a>';

tab += '<br>';

tab += '<a href="http://www.silcotech.ch" target="_top" style="text-decoration: none"><span class="texto2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Suiza</span></a><br />';

 

tab += '<a href="http://www.silcotech.net" target="_blank" style="text-decoration: none"><span class="texto2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;España</span></a><br />';

tab += '<a href="http://www.silcotech.cn" target="_blank" style="text-decoration: none"><span class="texto2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;China</span></a><br />';

tab += '<a href="http://www.silcotech.eu/" target="_blank" style="text-decoration: none"><span class="texto2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bulgara</span></a><br />';

 

tab += '<a href="#">';

tab += '<img src="images/1x1.gif" width="120" height="18" border="0"></a>';

tab += '<br>';

tab += '<a href="index.html">';

tab += '<img src="images/home.gif" width="49" height="7" border="0"></a>';

tab += '<br>';

tab += '<a href="#">';

tab += '<img src="images/1x1.gif" width="58" height="10" border="0"></a>';

tab += '<br>';

tab += '<a href="eng/index.html">';

tab += '<img src="images/en.gif" width="58" height="7" border="0"></a>';

tab += '<br>';

tab += '</table>';



// ----------------



//substitute 135 and 40 with the width and height of your logo image, respectively

if (document.images){

var staticlogo=new Image(156,107);



//change the image path to reflect the path of your logo image

staticlogo.src="../pic/logo.gif";}



//Change url below to the target URL of the logo

//var logolink="#";



//change the alttext variable to reflect the text used for the "alt" attribute of the image tag

var alttext="";

var delta1=0; 

var deltaX=120; //dieser Wert muss mit top in der <div> übereinstimmen.

//alert(document.body.offsetWidth);

//deltaX = ((document.body.offsetWidth / 2) - (768 / 2) - 20) ;

//if (ie) {deltaX = (document.body.offsetWidth / 2) - (768 / 2) - 20 ; }

// else {deltaX = (window.innerWidth / 2) - (768/2) - 20; }

var scrollbild='<div id="logo" style="position:absolute;top:0; left:' + deltaX +'; width:139;height:588; visibility:hidden">' + tab + '</div>';

//-------------------------Do not edit below this line------------------------



function regenerate(){



if (ie){

NEleft = (document.body.offsetWidth/2) - (768/2) - 20 ;

//alert('hallo Regenerate IE');

if(NEleft <= 0){NEleft = 10; }

logo.style.left = NEleft;

logo.style.visibility="visible";

} else {

NEleft= (window.innerWidth/2) - (768/2) - 20;

//NEleft= 30;

if(NEleft <= 0){NEleft = 10; }

//alert('hallo NE');

staticimage.left = NEleft;

staticimage.visibility="visible";

}



}



if (ie){document.write(scrollbild);}



function createlogo(){

//staticimage=new Layer(300);

//staticimage.document.write(scrollbild);

//staticimage.document.close();

//staticimage.visibility="show";

//regenerate();

//staticitns2();

//document.open();

//document.write(scrollbild);

//document.close();

//clickwas();

alert('hallo-slider');

}



function createlogo2(){

staticimage = document.getElementById("logo").style;

staticitns();

regenerate();

//clickwas();

//alert('createlogo2(){');

}



function logoit(){

var w2=document.body.scrollLeft+delta1;

var h2=document.body.scrollTop+delta1;

//logo.style.left=w

logo.style.top=h2

// ? braucht nman diese Function noch

regenerate();

//alert('logoit(){');

}



function logoit2(){

if(ie){

staticimage.top=document.body.scrollTop+delta1;}

else {staticimage.top=pageYOffset+delta1;}

}



function logoit3(){

staticimage.top=(pageYOffset+2);

}



function staticitns(){

setInterval("logoit2()",80);

}

function staticitns2(){

setInterval("logoit3()",80);

}



//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

//alert(navigator.appName);

if (ns4) {

//window.onload=createlogo;

// Do nothing

}else

{ 

if (ns6){document.write(scrollbild); window.onload=createlogo2; window.onresize=regenerate}else	

{

// Hier ist das onResize Ereignis

//alert('Hier ist das onResize Ereignis IExplorer' + innerWidth +'');

// alert(document.body.offsetWidth);

w = (document.body.offsetWidth/2) - (768/2) - 20;

if (w <=0) {w=8;}

//alert(w);

//w=deltaX;

h=delta1;

//logo.style.left=800;

logo.style.top=h;

window.onscroll=logoit;

//window.onresize=new Function("window.location.reload()");

window.onresize=regenerate;

window.onload=createlogo2;



}

}


