function checkInput()
{
	if (document.searchform.as_q.value == '') document.searchform.as_q.value = 'facts';
}
function setDiv(id, def)
{
	var elm = document.getElementById(id);
	elm.style.display = def;
}
function toggleDiv(id, def)
{
	var elm = document.getElementById(id);
	if (elm.style.display)
	{
		if (elm.style.display == 'none')
		{
			elm.style.display = 'inline';
		}
		else
		{
			elm.style.display = 'none';
		}
	}
	else
	{
		elm.style.display = def;
	}
	if (elm.style.display == 'none')
	{
		return 0;
	}
	else
	{
		return 1;
	}
}
var books = new Array('<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=books&search=norway&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=music&search=norway&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=books&search=scandinavian+recipes&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=jewelry&search=norway&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=music&search=norwegian&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=dvd&search=norway&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=music&search=sissel&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=apparel&search=norway&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=software&search=learn+norwegian&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=music&search=a-ha&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=dvd&search=norwegian&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>',
'<iframe src="http://rcm.amazon.com/e/cm?t=helpfulfredslogc&o=1&p=16&l=st1&mode=books&search=rosemaling&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>');
var d = new Date();
var i_book = parseInt((d.getMilliseconds() * books.length) / 1000);
function loadBooks()
{
	var elm = document.getElementById('books-content');
	i_book = i_book + 1;
	if (i_book >= books.length) i_book = 0;
	elm.innerHTML = books[i_book];
}
function toggleBooks(def)
{
	if (toggleDiv('books-box', def) != 0)
	{
		loadBooks();
		setDiv('picture-box', 'none');
		setDiv('help-box', 'none');
	}
	return false;
}
function toggleHelp(def)
{
	if (toggleDiv('help-box', def) != 0)
	{
		setDiv('picture-box', 'none');
		setDiv('books-box', 'none');
	}
	return false;
}
var pictures = new Array('<img src="http://www.thu.no/aircraft/airc0053.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/Svalbard/Svalbard_08_Monacobreen_11.juli/IMG_1239.jpg" border="0" width="338" height="192" alt="">',
'<img src="http://www.thu.no/Svalbard/Svalbard_06_Liefdefj_10.juli/IMG_1312.jpg" border="0" width="338" height="228" alt="">',
'<img src="http://www.thu.no/domanimal/hdyr0001.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/domanimal/hdyr0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/domanimal/hdyr0005.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/domanimal/hdyr0006.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/domanimal/hdyr0008.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/architecture/arch0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/architecture/arch0007.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/architecture/arch0008.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0003.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/birds/bird0009.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0010.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/birds/bird0012.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0013.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0014.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0018.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0020.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0024.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0029.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0030.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0033.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/birds/bird0034.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/bridges/brid0001.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/bridges/brid0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/bridges/brid0004.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/bridges/brid0006.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/bridges/brid0008.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/bridges/brid0009.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/cityscape/town0005.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/cityscape/town0027.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/cityscape/town0035.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/cityscape/town0037.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/communication/comm0005.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/communication/comm0010.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/communication/comm0014.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/communication/comm0015.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/communication/comm0018.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/flowers/blom0003.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/flowers/blom0007.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/flowers/blom0009.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/flowers/blom0010.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/flowmacro/flow0001.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/flowmacro/flow0003.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/flowmacro/flow0005.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/flowmacro/flow0014.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/flowmacro/flow0015.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/flowmacro/flow0017.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/flowmacro/flow0029.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/geology/geol0003.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/geology/geol0005.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/geology/geol0008.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0002.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/landscape/land0006.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/landscape/land0010.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0026.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0027.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0028.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0029.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0030.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0031.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0034.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0035.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0037.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0039.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0043.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0047.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0051.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/landscape/land0068.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/lysoen/lyso0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/farms/gard0001.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/farms/gard0005.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/farms/gard0008.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/farms/gard0016.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0004.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0013.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0014.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0016.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0019.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0020.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0026.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/femunden/femu0027.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/grip/grip0003.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/grip/grip0004.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/grip/grip0005.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/grip/grip0006.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/grip/grip0012.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/grip/grip0013.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/lighthouses/ligh0006.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/lighthouses/ligh0007.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/lighthouses/ligh0008.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/lighthouses/ligh0017.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/lighthouses/ligh0020.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/power/powe0005.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/power/powe0006.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/power/powe0007.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/roros/roro0006.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/roros/roro0007.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/roros/roro0016.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/roros/roro0028.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/roros/roro0030.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/roros/roro0036.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sea/ocea0001.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/sea/ocea0004.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/sea/ocea0005.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sea/ocea0006.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/sea/ocea0007.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/sea/ocea0012.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/skudeneshavn/skud0001.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/skudeneshavn/skud0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/skudeneshavn/skud0003.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/skudeneshavn/skud0008.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/skudeneshavn/skud0011.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/parashutes/para0010.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/sykling/bicy0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/sykling/bicy0005.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/riding/ridi0002.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/riding/ridi0003.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/rafting/raft0004.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/rafting/raft0005.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/rafting/raft0008.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/sport/surfing/surf0001.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/sport/surfing/surf0004.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0011.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0033.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0050.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0081.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0087.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0090.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0091.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker01/stav0095.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0134.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0141.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0143.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0147.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0166.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0174.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0186.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0190.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0208.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0221.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0227.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0228.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/stavkirker02/stav0164.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/telemark/tele0007.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/telemark/tele0011.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/winter/wint0017.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/winter/wint0018.jpg" border="0" width="338" height="218" alt="">',
'<img src="http://www.thu.no/winter/wint0052.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/winter/wint0053.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/winter/wint0054.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/winter/wint0060.jpg" border="0" width="338" height="219" alt="">',
'<img src="http://www.thu.no/aalesund/aale0002.jpg" border="0" width="338" height="219" alt="">');
function loadPicture()
{
	var d = new Date();
	var i = parseInt((d.getMilliseconds() * pictures.length) / 1000);
	var elm = document.getElementById('picture-content');
	elm.innerHTML = pictures[i];
}
function togglePicture(def)
{
	if (toggleDiv('picture-box', def) != 0)
	{
		setDiv('help-box', 'none');
		setDiv('books-box', 'none');
		loadPicture();
	}
	return false;
}
