var	th1	=	new	Image();
var	th2	=	new	Image();
var	th3	=	new	Image();
var	th4	=	new	Image();
var	th5	=	new	Image();
var	th6	=	new	Image();
var	th7	=	new	Image();
var	th8	=	new	Image();
var	th9	=	new	Image();
var	th10	=	new	Image();
var	th11	=	new	Image();
var	th12	=	new	Image();
var	th13	=	new	Image();
var	th14	=	new	Image();
var	th15	=	new	Image();
var	th16	=	new	Image();
var	th17	=	new	Image();
var	th18	=	new	Image();
var	th19	=	new	Image();
var	th20	=	new	Image();
var	th21	=	new	Image();
var	th22	=	new	Image();
var	th23	=	new	Image();
var	th24	=	new	Image();
var	th25	=	new	Image();
var	th26	=	new	Image();
var	th27	=	new	Image();
var	th28	=	new	Image();
var	th29	=	new	Image();
var	th30	=	new	Image();
var	th31	=	new	Image();
var	th32	=	new	Image();
var	th33	=	new	Image();
var	th34	=	new	Image();
var	th35	=	new	Image();
var	th36	=	new	Image();
var	th37	=	new	Image();
var	th38	=	new	Image();
var	th39	=	new	Image();
var	th40	=	new	Image();
var	th41	=	new	Image();
var	th42	=	new	Image();
var	th43	=	new	Image();
var	th44	=	new	Image();
var	th45	=	new	Image();
var	th46	=	new	Image();
var	th47	=	new	Image();
var	th48	=	new	Image();
var	th49	=	new	Image();
var	th50	=	new	Image();
var	th51	=	new	Image();
var	th52	=	new	Image();
var	th53	=	new	Image();
var	th54	=	new	Image();
var	th55	=	new	Image();
var	th56	=	new	Image();
var	th57	=	new	Image();
var	th58	=	new	Image();
var	th59	=	new	Image();
var	th60	=	new	Image();
var	th61	=	new	Image();
var	th62	=	new	Image();
var	th63	=	new	Image();
var	th64	=	new	Image();
var	th65	=	new	Image();
var	th66	=	new	Image();
var	th67	=	new	Image();
var	th68	=	new	Image();
var	th69	=	new	Image();
var	th70	=	new	Image();
var	th71	=	new	Image();
var	th72	=	new	Image();
var	th73	=	new	Image();
var	th74	=	new	Image();
var	th75	=	new	Image();
var	th76	=	new	Image();
var	th77	=	new	Image();
var	th78	=	new	Image();
var	th79	=	new	Image();
var	th80	=	new	Image();
var	th81	=	new	Image();
var	th82	=	new	Image();
var	th83	=	new	Image();
var	th84	=	new	Image();
var	th85	=	new	Image();
var	th86	=	new	Image();
var	th87	=	new	Image();
var	th88	=	new	Image();
var	th89	=	new	Image();
var	th90	=	new	Image();
var	th91	=	new	Image();
var	th92	=	new	Image();
var	th93	=	new	Image();
var	th94	=	new	Image();
var	th95	=	new	Image();
var	th96	=	new	Image();
var	th97	=	new	Image();
var	th98	=	new	Image();
var	th99	=	new	Image();
var	th100	=	new	Image();
var	th101	=	new	Image();
var	th102	=	new	Image();
var	th103	=	new	Image();
var	th104	=	new	Image();
var	th105	=	new	Image();
var	th106	=	new	Image();
var	th107	=	new	Image();
var	th108	=	new	Image();
var	th109	=	new	Image();
var	th110	=	new	Image();
var	th111	=	new	Image();
var	th112	=	new	Image();
var	th113	=	new	Image();
var	th114	=	new	Image();
var	th115	=	new	Image();
var	th116	=	new	Image();
var	th117	=	new	Image();
var	th118	=	new	Image();
var	th119	=	new	Image();
var	th120	=	new	Image();
var	th121	=	new	Image();
var	th122	=	new	Image();
var	th123	=	new	Image();
var	th124	=	new	Image();
var	th125	=	new	Image();
var	th126	=	new	Image();
var	th127	=	new	Image();
var	th128	=	new	Image();
var	th129	=	new	Image();
var	th130	=	new	Image();
var	th131	=	new	Image();
var	th132	=	new	Image();
var	th133	=	new	Image();
var	th134	=	new	Image();
var	th135	=	new	Image();
var	th136	=	new	Image();
var	th137	=	new	Image();
var	th138	=	new	Image();
var	th139	=	new	Image();
var	th140	=	new	Image();
var	th141	=	new	Image();
var	th142	=	new	Image();
var	th143	=	new	Image();
var	th144	=	new	Image();
var	th145	=	new	Image();
var	th146	=	new	Image();
var	th147	=	new	Image();
var	th148	=	new	Image();
var	th149	=	new	Image();
var	th150	=	new	Image();
var	th151	=	new	Image();
var	th152	=	new	Image();
var	th153	=	new	Image();
var	th154	=	new	Image();
var	th155	=	new	Image();

th1=th1.jpg;
th2=th2.jpg;
th3=th3.jpg;
th4=th4.jpg;
th5=th5.jpg;
th6=th6.jpg;
th7=th7.jpg;
th8=th8.jpg;
th9=th9.jpg;
th10=th10.jpg;
th11=th11.jpg;
th12=th12.jpg;
th13=th13.jpg;
th14=th14.jpg;
th15=th15.jpg;
th16=th16.jpg;
th17=th17.jpg;
th48=th48.jpg;
th49=th49.jpg;
th50=th50.jpg;
th51=th51.jpg;
th52=th52.jpg;
th53=th53.jpg;
th54=th54.jpg;
th55=th55.jpg;
th56=th56.jpg;
th57=th57.jpg;
th58=th58.jpg;
th59=th59.jpg;
th60=th60.jpg;
th61=th61.jpg;
th62=th62.jpg;
th63=th63.jpg;
th64=th64.jpg;
th65=th65.jpg;
th66=th66.jpg;
th67=th67.jpg;
th68=th68.jpg;
th69=th69.jpg;
th70=th70.jpg;
th71=th71.jpg;
th72=th72.jpg;
th73=th73.jpg;
th74=th74.jpg;
th75=th75.jpg;
th76=th76.jpg;
th77=th77.jpg;
th78=th78.jpg;
th79=th79.jpg;
th80=th80.jpg;
th81=th81.jpg;
th82=th82.jpg;
th83=th83.jpg;
th84=th84.jpg;
th85=th85.jpg;
th86=th86.jpg;
th87=th87.jpg;
th88=th88.jpg;
th89=th89.jpg;
th90=th90.jpg;
th91=th91.jpg;
th92=th92.jpg;
th93=th93.jpg;
th94=th94.jpg;
th95=th95.jpg;
th96=th96.jpg;
th97=th97.jpg;
th98=th98.jpg;
th99=th99.jpg;
th100=th100.jpg;
th101=th101.jpg;
th102=th102.jpg;
th103=th103.jpg;
th104=th104.jpg;
th105=th105.jpg;
th106=th106.jpg;
th107=th107.jpg;
th108=th108.jpg;
th109=th109.jpg;
th110=th110.jpg;
th111=th111.jpg;
th112=th112.jpg;
th113=th113.jpg;
th114=th114.jpg;
th115=th115.jpg;
th116=th116.jpg;
th117=th117.jpg;
th118=th118.jpg;
th119=th119.jpg;
th120=th120.jpg;
th121=th121.jpg;
th122=th122.jpg;
th123=th123.jpg;
th124=th124.jpg;
th125=th125.jpg;
th126=th126.jpg;
th127=th127.jpg;
th128=th128.jpg;
th129=th129.jpg;
th130=th130.jpg;
th131=th131.jpg;
th132=th132.jpg;
th133=th133.jpg;
th134=th134.jpg;
th135=th135.jpg;
th136=th136.jpg;
th137=th137.jpg;
th138=th138.jpg;
th139=th139.jpg;
th140=th140.jpg;
th141=th141.jpg;
th142=th142.jpg;
th143=th143.jpg;
th144=th144.jpg;
th145=th145.jpg;
th146=th146.jpg;
th147=th147.jpg;
th148=th148.jpg;
th149=th149.jpg;
th150=th150.jpg;
th151=th151.jpg;
th152=th152.jpg;
th153=th153.jpg;
th154=th154.jpg;
th155=th155.jpg;




var n=document.layers;
var ie=document.all;
var moz=document.getElementById;

function getObj(id){
    var obj;
    if(document.getElementById){
        /* Prefer the widely supported W3C DOM method, if
           available:-
        */
        obj = document.getElementById(id);
    }else if(document.all){
        /* Branch to use document.all on document.all only
           browsers. Requires that IDs are unique to the page
           and do not coincide with NAME attributes on other
           elements:-
        */
        obj = document.all[id];
    }else if(document.layers){
        /* Branch to use document.layers, but that will only work for
           CSS positioned elements and LAYERs that are not nested. A
           recursive method might be used instead to find positioned
           elements within positioned elements but most DOM nodes on
           document.layers browsers cannot be referenced at all.
        */
        obj = document.layers[id];
    }
    /* If no appropriate/functional element retrieval mechanism
       exists on this browser this function returns null:-
    */
    return obj;
}

function changeImage() {
var pic1, pic2, pic3;

//Varje ruta måste visa unik bild
/*while(pic1 == pic2 || pic1 == pic3 || pic2 == pic3){
*/
 pic3 = "http://www.gullhov.se/images/gallerier/terraengridning/th" + (Math.round(Math.random()*154)+1) +".jpg";
 pic2 = "http://www.gullhov.se/images/gallerier/narven/th" + (Math.round(Math.random()*9)+1) + ".jpg";
 pic1 = "http://www.gullhov.se/images/gallerier/gullhov/th" + (Math.round(Math.random()*17)+1) +".jpg";
/*}*/
  getObj("img1a").src = pic1;
  getObj("img1b").src = pic2;
  getObj("img1c").src = pic3;
  getObj("img1a").alt = pic1;
  getObj("img1b").alt = pic2;
  getObj("img1c").alt = pic3;
  getObj("img1a").title = pic1;
  getObj("img1b").title = pic2;
  getObj("img1c").title = pic3;
}

var clockID = 0;

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   var tDate = new Date();

   document.theClock.theTime.value = "" 
                                   + tDate.getHours() + ":" 
                                   + tDate.getMinutes() + ":" 
                                   + tDate.getSeconds();
   
   clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

function KillClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }
}