
var BtnNo = 1;

function createmenu(Banner,Style,Btn){
BtnNo = Btn;
Btn="Btn\\"+Btn;
//alert(Btn);

document.write ("<DIV ID=myMenu0 CLASS=Menu1>");


document.write ("<table border=0 height=22px cellspacing=0 cellpadding=0 STYLE=cursor: hand>");
document.write ("<tr>");
document.write ("<td width=117px onmouseover=\"doShowX(\'myMenu1\',25,92,\'About\');\" valign=top><img ID=About border=0 src="+Btn+"About.gif></td>");
document.write ("<td width=117px onmouseover=\"doShowX(\'myMenu2\',150,92,\'Product\');\" valign=top><img ID=Product border=0 src="+Btn+"Product.gif></td>");
document.write ("<td width=122px onmouseover=\"doShowX(\'myMenu3\',275,92,\'Contact\');\" valign=top><img ID=Contact border=0 src="+Btn+"Contact.gif></td>");
document.write ("</tr></table>");
document.write ("</DIV>");


document.write ("<DIV ID=myMenuBG CLASS=Menu0>");
document.write ("<table border=0 cellspacing=0 cellpadding=0>");
document.write ("<tr>");
document.write ("<td><img border=0 src="+Btn+"bgmenu.gif></td>");
document.write ("</tr></table>");
document.write ("</DIV>");




document.write ("<DIV ID=myMenu1 CLASS=Menu1>") ;
document.write ("<table border=0 width=170px cellspacing=0 cellpadding=0>");
document.write ("<tr>");

document.write ("<td CLASS=MenuStyleOut>");
document.write ("<table border=0 width=100% cellspacing=0 cellpadding=5 CLASS=MenuStyle bgcolor=#EEEEEE>");
document.write ("<tr>"); 
document.write ("<td>");

document.write ("<a href=Page.asp?Page=1&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Introduction</a>");
document.write ("<hr />");
document.write ("<a href=Page.asp?Page=2&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> About the Group</a>");
document.write ("<hr />");
document.write ("<a href=Page.asp?Page=9&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> NEWS</a>");
document.write ("<br />");
document.write ("</td></tr></table>");
document.write ("</td></tr></table>");
document.write ("</DIV>");





document.write ("<DIV ID=myMenu2 CLASS=Menu1>") ;
document.write ("<table border=0 width=200 cellspacing=0 cellpadding=0>") ;
document.write ("<td CLASS=MenuStyleOut>") ;
document.write ("<table border=0 width=100% cellspacing=0 cellpadding=5 CLASS=MenuStyle bgcolor=#EEEEEE>") ;
document.write ("<tr>") ;
document.write ("<td>") ;


document.write ("<a href=Page.asp?Page=10&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> PrePress</a>") ;
document.write ("<hr />") ;
document.write ("<a href=Page.asp?Page=30&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Rubber covering</a>") ;
document.write ("<hr />") ;
document.write ("<a href=Page.asp?Page=40&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> MillBlade<sup>®</sup></a>") ;
document.write ("<hr />");
document.write ("<a href=Page.asp?Page=50&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Hand stamps</a>");
document.write ("<br />");


document.write ("</td></tr></table>");
document.write ("</td></tr></table>");
document.write ("</DIV>");





document.write ("<DIV ID=myMenu3 CLASS=Menu1>") ;

document.write ("<table border=0 width=500px cellspacing=0 cellpadding=1>") ;

document.write ("<tr><td CLASS=MenuStyleOut>") ;

document.write ("<table CLASS=MenuStyle border=0 width=100% cellspacing=0 cellpadding=1>") ;

document.write ("<tr><td align=center>") ;

document.write ("<b>Production sites</b>&nbsp;&nbsp;&nbsp;") ;

document.write ("<a href=Page.asp?Page=100&MAP=yes&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> MAP&gt;&gt;&gt;</a><br /><br /></td>") ;

document.write ("</tr>") ;
document.write ("<tr><td align=center>") ;
document.write ("<table border=0 width=100% cellspacing=0 cellpadding=0>") ;
document.write ("<tr>") ;

document.write ("<td valign=top>") ;
document.write ("      <a href=Page.asp?Page=101&Contact=Roeselare&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Belgium, Roeselare</a>") ;
document.write ("<br /><a href=Page.asp?Page=110&Contact=Schoten&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Belgium, Schoten</a>") ;
document.write ("<br /><a href=Page.asp?Page=120&Contact=Haverhill&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> UK, Haverhill</a>") ;
document.write ("<br /><a href=Page.asp?Page=130&Contact=Apeldoorn&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Holland, Apeldoorn</a>") ;

document.write ("</td>") ;
document.write ("<td valign=top>") ;

document.write ("      <a href=Page.asp?Page=201&Contact=Sunne&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Sweden, Sunne</a>") ;
document.write ("<br /><a href=Page.asp?Page=210&Contact=Norrk&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Sweden, Norrköping</a>") ;
document.write ("<br /><a href=Page.asp?Page=220&Contact=Piet&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Finland, Pietarsaari</a>") ;
document.write ("<br /><a href=Page.asp?Page=230&Contact=Poznan&Style=" + Style + "&Banner=" + Banner + "><IMG border=0 src=btn/2btn.gif> Polen, Posnan</a>") ;

document.write ("</td>") ;
document.write ("<td valign=top>") ;
document.write ("      <a href=Page.asp?Page=301&Contact=Limoges&Style=" + Style + "><IMG border=0 src=btn/2btn.gif> France, Limoges</a>") ;
document.write ("<br /><a href=Page.asp?Page=310&Contact=Beauvais&Style=" + Style + "><IMG border=0 src=btn/2btn.gif> France, Beauvais</a>") ;
document.write ("<br /><a href=Page.asp?Page=320&Contact=Torigni&Style=" + Style + "><IMG border=0 src=btn/2btn.gif> France, Torigni-sur-Vire</a>") ;
document.write ("<br /><a href=Page.asp?Page=330&Contact=Flassans&Style=" + Style + "><IMG border=0 src=btn/2btn.gif> France, Flassans</a>") ;
document.write ("<br /><a href=Page.asp?Page=340&Contact=Lyon&Style=" + Style + "><IMG border=0 src=btn/2btn.gif> France, Lyon</a>") ;

document.write ("<br /><br />") ;

document.write ("</td>") ;

document.write ("</tr></table>") ;

document.write ("</td>") ;

document.write ("</tr></table>") ;

document.write ("</td></tr></table>") ;

document.write ("</DIV>") ;





}





function doShowX(who,X,Y,Img){
	doMoveXY('myMenu1',-1000,64)
	doMoveXY('myMenu2',-1000,64)
	doMoveXY('myMenu3',-1000,64)

	if (who>''){	
		doMoveXY(who,X,Y)
	}
		doNewImg('About',0)
		doNewImg('Product',0)
		doNewImg('Contact',0)
	if (who>''){	
		doNewImg(Img,1)
	}
}


function doNewImg(Img1,on){
//alert('btn/'+BtnNo+Img1+'_on.gif');

var myImg = new Image();
if (on==1){
	myImg.src = 'btn/'+BtnNo+Img1+'_on.gif';
}else{
	myImg.src = 'btn/'+BtnNo+Img1+'.gif';
}

if (document.all)					//Explorer 4,5
{
	document.images[Img1].src=myImg.src;
}
else if (document.layers)				//Netscape 4
{
	document.layers[Img1].left = Img1;
}
else if (document.getElementById)			//Netscape 6
{
	document.getElementById(WImg1).style.left = Img1;
}
}



function doMoveXY(Who2,X2,Y2){

if (document.all)					//Explorer 4,5
{
	document.all[Who2].style.pixelLeft=X2;
	document.all[Who2].style.pixelTop=Y2;
}
else if (document.layers)				//Netscape 4
{
	document.layers[Who2].left = X2;
	document.layers[Who2].top = Y2;
	//Även detta skulle fungera: document.lager.moveTo(w,h);
}
else if (document.getElementById)			//Netscape 6
{
	document.getElementById(Who2).style.left = X2;
	document.getElementById(Who2).style.top = Y2;
}
}




function getWidth() {

var ScreenWidth = 800;

if (document.layers) {
	ScreenWidth =innerWidth;
}

if (document.all) {
	ScreenWidth = document.body.offsetWidth;
}

//alert(ScreenWidth);

return ScreenWidth;
}

function getHeight() {

var ScreenHeight = 500;

if (document.layers) {
	ScreenHeight =innerHeight;
}

if (document.all) {
	ScreenHeight = document.body.offsetHeight;
}

//alert(ScreenHeight);

return ScreenHeight;
}




function tillRGB(r,g,b){
r=((r<16)?"0":"") + r.toString(16);
g=((g<16)?"0":"") + g.toString(16);
b=((b<16)?"0":"") + b.toString(16);
document.bgColor = "#" + r + g + b;

}

function toning(rfran,gfran,bfran,rtill,gtill,btill,antalSteg){
	for (i=0;i<= antalSteg;i++){
r=Math.round(rfran * (antalSteg - i) / antalSteg + rtill * i / antalSteg);
g=Math.round(gfran * (antalSteg - i) / antalSteg + gtill * i / antalSteg);
b=Math.round(bfran * (antalSteg - i) / antalSteg + btill * i / antalSteg);
tillRGB(r,g,b);
}
}


