function Bilde( v1, v2, v3, v4, v5, v6, v7, v8 )
{
		this.title           = v1;
		this.tech           = v2;
		this.size           = v3;
		this.price         = v4;
		this.width        = v5;
		this.height       = v6;
		this.width_s    = v7;
		this.height_s   = v8;
}

var bilder = new Array( NUM_IMAGES );

bilder[1]= new Bilde( "Pilgrimsm&aring;let", 									"Etsning", "25x25", "Utsolgt", 450, 453, 120,  121);
bilder[2]= new Bilde( "Foynland", 																		"Etsning", "25x25", "Utsolgt",  450, 446, 120,  118);
bilder[3]= new Bilde( "Haabet", 																				"Etsning", "40x50", "Utsolgt", 450, 336, 140,  105);
bilder[4]= new Bilde( "M&oslash;te", 																"Etsning", "25x25", "Utsolgt",  450, 448, 120,  119);
bilder[5]= new Bilde( "P&aring; landet", 														"Litografi", "25x25", "Utsolgt", 450, 452, 120,  119);
bilder[6]= new Bilde( "Vestskogen", 																"Etsning", "40x50", "Utsolgt", 450, 335, 140,  105);
bilder[7]= new Bilde( "5 &aring;r", 																	"Litografi", "25x25", "1000 kr", 450, 452, 140,  141);
bilder[8]= new Bilde( "Huset og oretreet", 											"Etsning", "20x25", "Utsolgt", 450, 352, 120,  97);
bilder[9]= new Bilde( "En rose", 																			"Etsning", "25x25", "Utsolgt",  450, 444, 120,  115);
bilder[10]= new Bilde( "Nidarosdomen", 													"Etsning", "25x25", "Utsolgt",  450, 457, 120,  121);
bilder[11]= new Bilde( "Mikaelsberg", 															"Litografi", "55x65", "Utsolgt",  450, 363, 140,  111);
bilder[12]= new Bilde( "Ved sj&oslash;bodene", 							"Etsning", "20x25", "Utsolgt",  450, 356, 120,  97);
bilder[13]= new Bilde( "Fulehuk", 																			"Etsning", "25x25", "Utsolgt",  450, 404, 120,  108);
bilder[14]= new Bilde( "Svend Foyns have", 											"Etsning", "", "",  							450, 357, 120,  95);
bilder[15]= new Bilde( "Vestfjorden", "															Etsning", "25x25", "Utsolgt", 450, 401, 120,  107);
bilder[16]= new Bilde( "D&oslash;pefonten", 											"Etsning", "", "",						450, 359, 120,  96);
bilder[17]= new Bilde( "Prinsessen i t&aring;rnet", 					"Etsning", "10x15", "Utsolgt", 404, 263,  140, 91);
bilder[18]= new Bilde( "Balderbra", 																	"Etsning", "10x15", "Utsolgt", 404, 264, 140,  91);
bilder[19]= new Bilde( "Prester&oslash;dskogen", "					Litografi", "50x40", "1800 kr", 450, 613, 120,  163);
bilder[20]= new Bilde( "Gokstadskipet",													 "Etsning", "25x25", "Utsolgt",   450, 448, 120,  119);
bilder[21]= new Bilde( "Pilgrimsbyen II", 												"Etsning", "25x25", "Utsolgt",  450, 443, 120,  118);
bilder[22]= new Bilde( "&Aring;r 2000", 													"Litografi", "40x50", "Utsolgt",  450, 336, 140,  105);
bilder[23]= new Bilde( "Mellom bakkar og berg", 							"Etsning", "40x50", "Utsolgt",   450, 336, 140,  105);
bilder[24]= new Bilde( "Portrett i gr&oslash;nt", 						"Etsning", "50x40", "Utsolgt", 450, 608, 120,  162);
bilder[25]= new Bilde( "Fulehuk", 																		"Etsning", "40x50", "1800 kr",  450, 336, 140,  105);
bilder[26]= new Bilde( "Svend Foyns have", 											"Litografi", "40x50", "Utsolgt",   450, 339, 140,  105);
bilder[27]= new Bilde( "New York", 																	"Etsning", "20x25", "1300 kr",   450, 361, 120,  96);
bilder[28]= new Bilde( "Sommernatt", 															"Etsning", "40x50", "Utsolgt", 450, 325, 120,  87);
bilder[29]= new Bilde( "Sommermorgen", 													"Etsning", "25x25", "Utsolgt", 450, 426, 120,  114);
bilder[30]= new Bilde( "Med blyant", 																"Etsning", "15x10", "Utsolgt",450, 679, 120,  162);
bilder[31]= new Bilde( "Kvarten", 																		"Etsning", "25x25", "1300 kr",   450, 442, 120,  118);
bilder[32]= new Bilde( "Blikkstille", 																"Etsning", "25x25", "Utsolgt", 450, 441, 120,  115);
bilder[33]= new Bilde( "&Oslash;lmhus", 													"Etsning", "25x25", "Utsolgt", 450, 435, 120,  118);
bilder[34]= new Bilde( "Kirkeberg i Valdres II", 							"Etsning", "25x25", "1300 kr",  450, 438, 140,  135);
bilder[35]= new Bilde( "Junikveld", 																	"Litografi", "40x50", "1800 kr", 450, 338, 140,  105);
bilder[36]= new Bilde( "M&oslash;te ved Olavskirken", 		"Litografi", "40x50", "1800 kr", 450, 333, 140,  104);
bilder[37]= new Bilde( "Morgenbad", 																"Litografi", "40x50", "1800 kr",  450, 358, 140, 105);
bilder[38]= new Bilde( "August", 																"Litografi", "40x50", "1800 kr",  450, 342, 140, 106);
bilder[39]= new Bilde( "6 sm&aring; lito", 					"Litografi", "5x12", "350 kr pr. stk",  450, 568, 140, 177);
bilder[40]= new Bilde( "På fjorden", 													"Etsning", "25x25", "Utsolgt",  450, 439, 120,  117);
bilder[41]= new Bilde( "Skytsengel", 													"Etsning", "25x25", "1300 kr",  450, 435, 140,  135);
bilder[42]= new Bilde( "Høyt over havet", 													"Etsning", "25x25", "1300 kr",  450, 435, 120,  116);
bilder[43]= new Bilde( "Mellom syrin", 													"Etsning", "25x25", "1300 kr",  450, 446, 140,  139);
bilder[44]= new Bilde( "Fossan mølle", 													"Etsning", "25x25", "1300 kr",  450, 439, 140,  137);
bilder[45]= new Bilde( "Spor", 													      "Etsning", "25x25", "1300 kr",  450, 446, 140,  139);
bilder[46]= new Bilde( "4 små lito", 													"Litografi", "5x12", "350 kr pr stk",  450, 799, 120,  213);
bilder[47]= new Bilde( "Det var en gang", 												"Litografi", "40x50", "1800 kr",  450, 340, 140,  106);
bilder[48]= new Bilde( "Sommermorgen", 													"Litografi", "40x50", "1800 kr",  450, 339, 140,  105);
bilder[49]= new Bilde( "Nattbadere", 													"Etsning", "25x25", "1300 kr",  450, 443, 140,  138);
bilder[50]= new Bilde( "Desember", 													"Etsning", "25x25", "1300 kr",  450, 444, 140,  138);
bilder[51]= new Bilde( "Akebrettføre", 													"Etsning", "25x25", "1300 kr",  450, 445, 140,  138);
bilder[52]= new Bilde( "1 år", 													        "Etsning", "25x25", "1300 kr",  450, 445, 140,  138);
bilder[53]= new Bilde( "I det grønne", 													"Etsning", "25x25", "1300 kr",  450, 435, 140,  135);
bilder[54]= new Bilde( "Den sorte katten", 												"Etsning", "25x25", "1300 kr",  450, 440, 140,  137);
bilder[55]= new Bilde( "I haven", 													"Etsning", "25x25", "1300 kr",  450, 447, 140,  139);
bilder[56]= new Bilde( "Tredje klasse", 												"Litografi", "25x25", "1300 kr",  450, 444, 140,  138);
bilder[57]= new Bilde( "Mellom åker og brisk", 												"Etsning", "25x25", "1300 kr",  450, 443, 140,  138);
bilder[58]= new Bilde( "Du og jeg", 													"Etsning", "25x25", "1300 kr",  450, 441, 140,  137);

function no2imgtitle( n )  {return bilder[n].title;}

function no2imgwidth( n ) {return bilder[n].width;}

function no2imgheight( n ) { return bilder[n].height;}

function no2imgwidth_s( n ) {return bilder[n].width_s;}

function no2imgheight_s( n ) { return bilder[n].height_s;}

function no2size_str( n ) {return bilder[n].size + " cm";}

function no2type_str( n ){ return  bilder[n].tech;}

function no2price_str( n ){ return bilder[n].price;}

function no2imgfile( n )
{
		if(n<10)
				pre="00";
    else 
        pre="0";

	    image_file1 = "bilder/" + pre + n + ".jpg"

   return image_file1
}

function no2imgfile_s( n )
{
		if(n<10)
				pre="s00";
    else 
        pre="s0";

	    image_file1 = "bilder/" + pre + n + ".jpg"

   return image_file1
}

function no2imglink( n )
{
		if(n<10)
				pre="00";
    else 
        pre="0";

	  image_link1 = "plakat"  + pre + n + ".html"

   return image_link1
}

function replace_page_below( n )
{
    n2 = n - NUM_MENU_PAGES
    if(n2==6||n2==9||n2==18||n2==21||n2==28||n2==31||n2==36||n2==40||n2==42)
	page=n2-1;
    else if(n2==12||n2==13||n2==14||n2==15)
	page=11;
    else if(n2==23||n2==24)
	page=22;
    else 
        page=n2;

    page2 = page + NUM_MENU_PAGES
    return page2
}

function replace_page_above( n )
{
    n2 = n - NUM_MENU_PAGES
    if(n2==6||n2==9||n2==18||n2==21||n2==28||n2==31||n2==36||n2==40||n2==42)
	page=n2+1;
    else if(n2==12||n2==13||n2==14||n2==15)
	page=16;
    else if(n2==23||n2==24)
	page=25;
    else 
        page=n2;

    page2 = page + NUM_MENU_PAGES
    return page2
}

function write_prev_next(page_no)
{
document.write("<br><table WIDTH=543 HEIGHT=25 BORDER=0  cellspacing=0 cellpadding=2  bckground=bilder/hback.jpg bcolor=#dddddd><tr>")
		if (page_no==(NUM_MENU_PAGES+1)){
				prev_page = page_no2link( page_no+1 )
				next_page = page_no2link( NUM_PAGES )
		}
		else if (page_no==NUM_PAGES){
				prev_page = page_no2link( NUM_MENU_PAGES+1 )
				next_page = page_no2link( page_no-1 )
		}
		else{
				prev_page = page_no2link( replace_page_above(page_no+1) )
				next_page = page_no2link( replace_page_below(page_no-1) )
		}

				page_title = page_no2title( page_no)

      document.write( " <td width=200 align=right>")
      document.write(  "<a href=" + prev_page + "><font FACE='Ariel, Helvetica' size=1 COLOR=#aaaaaa>forrige bilde</a></td>")

     document.write( "<td width=143 align=center>")
     document.write(  "<font FACE='Ariel, Helvetica' size=1 COLOR=#aaaaaa>" +  page_title +"</font></td>")

      document.write( " <td width=200 align=left>")
      document.write(  "<a href=" + next_page + "><font FACE='Ariel, Helvetica' size=1 COLOR=#aaaaaa>neste bilde</a></td>")

document.write("</tr></table>")
}

function plot_frame_s( image_no )
{
image_text = no2imgtitle( image_no );
price_text = no2price_str( image_no );
w = no2imgwidth_s( image_no );
h = no2imgheight_s( image_no );
d          = 2
w2        = w + d
h2         = h + d

font_str1   = "<font COLOR=#aaaaaa FACE='Ariel, Helvetica' size=1>"
image_file = no2imgfile_s( image_no )
image_link = no2imglink( image_no )

document.write("<TABLE cellpadding=0 cellspacing=0 BORDER=0 WIDTH=" + w2 + " HEIGHT=" + h2 + " bgcolor=#eeeeee ><TR><TD><CENTER>")
 document.write("<center><A HREF=" + image_link1 + "><IMG SRC=" + image_file1 + " WIDTH=" + w + " HEIGHT=" + h + " BORDER=0 ALT='" + image_text + "'></A><br>") 
document.write("</CENTER></TD></TR></TABLE>")

//document.write("<TABLE cellpadding=0 cellspacing=0 BORDER=0 WIDTH=" + w2 + " HEIGHT=" + 10 + " bgcolor=#212140 ><TR><TD><CENTER>")
if (image_no >= 100)
{
		document.write( "<img src=bilder/ny.gif>")
}
  document.write(   font_str1 + image_text + "</font>")
//  document.write(   "<br>" + font_str1 + price_text + "</font>")
//document.write("</CENTER></TD></TR></TABLE>")

}

function write_image_text1(text)
{
  font_str = "<b><font COLOR=#aaaaaa FACE='Ariel, Helvetica' size=2>"

		document.write( font_str + text + "</font></b>")
}

function write_image_text2(text)
{
  font_str = "<font COLOR=#aaaaaa FACE='Ariel, Helvetica' size=1>"

		document.write( font_str + text + "</font>")
}

function max2random( max ){
  var n =  Math.round(max*Math.random(1)+0.5);
  return n
}

function plot_frame( image_no, mode)
{

image_text = no2imgtitle( image_no );
image_type = no2type_str( image_no );
image_size = no2size_str( image_no );
image_price = no2price_str( image_no );
w = no2imgwidth( image_no );
h = no2imgheight( image_no );

col1       = "#eeeeee"
d          = 3
image_file = no2imgfile( image_no )
image_file_s = no2imgfile_s( image_no )

rand_img = max2random( NUM_IMAGES )
next_image = page_no2link( NUM_MENU_PAGES + rand_img )


document.write("<TABLE WIDTH=543 cellpadding=0 cellspacing=0 border=0><TR><TD valign=top align=center>")
		document.write("<TABLE cellpadding=0 cellspacing=0 BORDER=0><TR><TD>")
	  		document.write("<TABLE cellpadding=" + d + " cellspacing=0 BORDER=0 bgcolor=" + col1 + "><TR><TD align=right>")
            document.write("<A BORDER=0 HREF=" + next_image + ">")
		  			document.write("<IMG SRC=" + image_file + " LOWSRC=" + image_file_s + " WIDTH=" + w + " HEIGHT=" + h + " border=1 ALT='" + image_text + "'>")
            document.write("</A>")
  			document.write("</TD></TR></TABLE>")
		document.write("</TD></TR></TABLE>")
		document.write("<TABLE WIDTH=543 cellpadding=5 cellspacing=0 BORDER=0><TR><TD align=center>")
				write_image_text2("Tittel: ")
				write_image_text1(image_text)
				write_image_text2("  Teknikk: ")
				write_image_text1(image_type)
				write_image_text2("  St&oslash;rrelse: ")
				write_image_text1(image_size)
//				write_image_text2("  Pris: ")
//				write_image_text1(image_price)
		document.write("</TD></TR></TABLE>")
		if (mode==0)
		document.write("<br><br>")

document.write("</TD></TR></TABLE>")
}

function plot_frame_s_table1(mode)
{
   document.write("<TABLE bgcolor=#212140 width=543 BORDER=0  cellspacing=28 cellpadding=0><tr>")
								document.write("<TD valign=top align=center>"); plot_frame_s(34); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(41); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(7); document.write("</TD>")
			document.write("</TR><TR>")
								document.write("<TD valign=top align=center>"); plot_frame_s(44); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(54); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(43); document.write("</TD>")
			document.write("</TR><TR>")
								document.write("<TD valign=top align=center>"); plot_frame_s(57); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(49); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(50); document.write("</TD>")
			document.write("</TR></TABLE>")
}

function plot_frame_s_table2(mode)
{
   document.write("<TABLE bgcolor=#212140 width=543 BORDER=0  cellspacing=28 cellpadding=0><tr>")
								document.write("<TD valign=top align=center>"); plot_frame_s(45); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(56); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(51); document.write("</TD>")
			document.write("</TR><TR>")
								document.write("<TD valign=top align=center>"); plot_frame_s(38); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(11); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(48); document.write("</TD>")
			document.write("</TR><TR>")
								document.write("<TD valign=top align=center>"); plot_frame_s(3); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(22); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(47); document.write("</TD>")
			document.write("</TR></TABLE>")
}

function plot_frame_s_table3(mode)
{
   document.write("<TABLE bgcolor=#212140 width=543 BORDER=0  cellspacing=28 cellpadding=0><tr>")
								document.write("<TD valign=top align=center>"); plot_frame_s(55); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(52); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(53); document.write("</TD>")
			document.write("</TR><TR>")
								document.write("<TD valign=top align=center>"); plot_frame_s(35); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(36); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(37); document.write("</TD>")
			document.write("</TR><TR>")
								document.write("<TD valign=top align=center>"); plot_frame_s(39); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(46); document.write("</TD>")
								document.write("<TD valign=top align=center>"); plot_frame_s(58); document.write("</TD>")
			document.write("</TR></TABLE>")
}


function write_kunstno_text()
{
col_str = "<font COLOR=#be9231>"
  
document.write("<TABLE  width=100% height=75 cellspacing=0 cellpadding=0 ><TR><td ><center>")
		document.write(col_str + "<font FACE='Ariel, Helvetica' size=1><br>Copyright © Astrid Skaaren-Fystro</font><br>")
		document.write("<font FACE='Ariel, Helvetica' size=5><b>astridsfystro.com</b></font>")
		document.write("<font FACE='Ariel, Helvetica' size=3><br><b>E-post: astridsfystro@gmail.com Tlf: 33 39 97 81</b><br><br></font>")
document.write("</td></TR></TABLE>")
}

function write_store_link(gno)
{
  if (gno <= 3) 
	{ 
		  if (gno == 1) { 
						link = "plakat_alle.html"}
 		  else if (gno == 2){ 
						link = "plakat_alle2.html"}
 		  else if (gno == 3){ 
						link = "plakat_alle3.html"}

      document.write(  "<a href=" + link + "><img src=bilder/store.gif width=100 height=17 border=0></a>")
		}
}


function write_galleri_info(galleri_no)
{   
document.write("<table border=0>")

document.write("<tr><td align=center width=543>")
document.write("<font COLOR=#cccccc FACE='Ariel, Helvetica' size=2>")
document.write("Astrid Skaaren-Fystro er medlem av Tegnerforbundet og Norske Billedkunstnere. <br>Mer informasjon finner du i vita og avisomtaler.")
document.write("</font></td></tr>")

document.write("<tr><td align=center width=543>")
document.write("<font COLOR=#cccccc FACE='Ariel, Helvetica' size=2>")
document.write("</font></td></tr>")

document.write("<tr><td align=center width=543>")
document.write("<font COLOR=#be9231 FACE='Ariel, Helvetica' size=1>")
//document.write( "31.09.2006: Lagt inn tre nye bilder: <a href=plakat046.html>1</a> <a href=plakat047.html>2</a> <a href=plakat048.html>3</a><br> ")
//document.write( "03.11.2005: Lagt inn tre nye bilder: <a href=plakat043.html>1</a> <a href=plakat044.html>2</a> <a href=plakat045.html>3</a><br> ")
//document.write( "06.10.2003: Lagt inn tre nye bilder: <a href=plakat042.html>1</a> <a href=plakat041.html>2</a> <a href=plakat040.html>3</a><br> ")
//document.write( "16.01.2003: Lagt inn to nye bilder: <a href=plakat039.html>1</a> <a href=plakat038.html>2</a><br> ")
//document.write( "21.06.2002: Lagt inn fem nye bilder: <a href=plakat037.html>1</a> <a href=plakat036.html>2</a> <a href=plakat035.html>3</a> <a href=plakat034.html>4</a> <a href=plakat033.html>5</a><br> ")
document.write("<br>Flere bilder finnes i mappene Grafikk1, Grafikk 2 og Grafikk 3.<br>")
document.write("For &aring; se alle bildene i dette galleriet som store bilder, velg store bilder nedenfor!<br><br>")
write_store_link(galleri_no);
document.write("</font></td></tr>")

document.write("</font></td></tr>")

document.write("</table><br>")

write_kunstno_text()

}


function write_plakat( plakat_no )
{
   page_no   = plakat_no+NUM_MENU_PAGES
   image_no = plakat_no
document.write("<center>")
  write_heading( page_no, 1 )
document.write("<TABLE WIDTH=730 cellspacing=0 cellpadding=0 border=0><TR>")
document.write("<TD valign=top  width=187 background=bilder/hback.gif>")
  write_galleries(1)
document.write("</TD>")
document.write("<TD valign=top align=center  width=543 bgcolor=#212140>")
	write_prev_next( page_no )
  plot_frame( image_no, 1)

write_kunstno_text()

document.write("</TD>")
document.write("</TR></TABLE>")
  write_menu( page_no, 2 )
document.write("</center>")
}






