<!-- funktioner for Hovedmenu begynd -->

function Menu_1(){
 parent.location.href='../index.php';}

function Menu_2(){
 parent.location.href='../adresse.php';}

function Menu_3(){
 parent.location.href='../programmer.php';}


function Menu_4(){
 parent.location.href='../dki/historie.php';}


function Menu_5(){
parent.location.href='../diverse.php';}


function Menu_6(){
 parent.location.href='../links.php';}

function Menu_7(){
 parent.location.href='../nyheder.php';}


<!-- funktioner for Hovedmenu slut -->
<!-- funktioner for 1. undermenu begynd -->

function Menu_V1_1(){
 parent.body_menu.location.href='./menu_v1_2.htm'; 
 parent.side.location.href='http://www.degulesider.dk/vbw/kort/resultat.do?g=Skovfaldet%2011&b=Hammel&z=8450&PartnerID=Kortlink' ;}

function Menu_V1_2(){
 parent.body_menu.location.href='./menu_v1_1.htm'; 
 parent.side.location.href='../adresse.htm' ;}

<!-- funktioner for 1. undermenu slut -->
<!-- funktioner for 2. undermenu begynd -->

function Menu_V2_1(){
 parent.body_menu.location.href='./menu_v2_1.htm';
 parent.side.location.href='../automail.htm' ;}

function Menu_V2_2(){
 parent.body_menu.location.href='./menu_v2_2.htm';
 parent.side.location.href='../banko.htm' ;}

function Menu_V2_3(){
 parent.body_menu.location.href='./menu_v2_3.htm';
 parent.side.location.href='../farveskala.htm' ;}

function Menu_V2_4(){
 parent.body_menu.location.href='./menu_v2_4.htm';
 parent.side.location.href='../ordrestyring.htm' ;}

<!-- funktioner for 2. undermenu slut -->
<!-- funktioner for 3. undermenu begynd -->

function Menu_V3_1(){
 parent.body_menu.location.href='./menu_v3_1.htm';
 parent.side.location.href='http://www.myip.dk/' ;}

function Menu_V3_2(){
 parent.body_menu.location.href='./menu_v3_2.htm';
 parent.side.location.href='http://www.ec.kingston.com/ecom/config/default.asp?referid=589' ;}

function Menu_V3_3(){
 parent.body_menu.location.href='./menu_v3_3.htm'; 
 parent.side.location.href='http://us.mcafee.com/root/mfs/default.asp?cid=9435' ;}


function Menu_V4_1(){
 parent.body_menu.location.href='./menu_v4_1.htm';
 parent.side.location.href='../ean13.htm' ;}
<!-- funktioner for 3. undermenu slut -->

function refresch() {
document.location.reload()}

function skaermtest(bredde,hoejde){
//  var bredde=1024
// var højde=768
 var sb=screen.width
 var sh=screen.height
   if (sb<bredde||sh<hoejde){
   new pausescroller(pausecontent2, "pscroller2", "someclass", 3000) ;}
  else {if ((navigator.appName == "Microsoft Internet Explorer") && (aar < 2000)) aar="200" + aar;
  if (navigator.appName == "Netscape") aar=1900 + aar;
 <!-- document.writeln('<font face="Arial" size="2" color="#000000">'); -->
document.writeln('<small>');
  document.writeln("Siden er opdateret "+ DagNavn[TID.getDay()] + " d. " + TID.getDate() + ". " +  MaanedNavn[TID.getMonth()] + " " + aar +"");
  document.writeln('</small><br />&copy;&nbsp;<small>webmaster &nbsp;'+'• '+'&nbsp;');
  document.writeln(' <a href="#" onclick="parent.location='+"'"+'http://sr-trade.dk/'+"'"+'; return false;">sr trade</a>');
  }
  }


var TID = new Date(document.lastModified);
var aar=TID.getYear();


function checkside(side){
  if (parent.location.href == self.location.href && side == 1)
    {parent.location.href='./index.html';}

if (parent.location.href == self.location.href && side == 2)
    {parent.location.href='./adresse.html';}

if (parent.location.href == self.location.href && side == "3_0")
    {parent.location.href='./programmer.html'; }

if (parent.location.href == self.location.href && side == "3_1")
    {parent.location.href='./programmer.html'; }

if (parent.location.href == self.location.href && side == "3_2")
    {parent.location.href='./programmer.html'; }

if (parent.location.href == self.location.href && side == "3_3")
    {parent.location.href='./programmer.html'; }

if (parent.location.href == self.location.href && side == "3_4")
    {parent.location.href='./programmer.html'; }

if (parent.location.href == self.location.href && side == "4_0")
    {parent.location.href='./tools.html'; }

if (parent.location.href == self.location.href && side == "5_0")
    {parent.location.href='./diverse.html'; }

if (parent.location.href == self.location.href && side == "6_0")
    {parent.location.href='./links.html'; }

if (parent.location.href == self.location.href && side == "7_0")
    {parent.location.href='./nyheder.html'; }
}



function right_click(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3 || event.button == 1)) {
          if (event.button == 2 || event.button == 3 ) {alert("Materiale fra siden kan udleveres på opfordring. \n"+"kontakt os på mail-adressen info@sr-trade.dk ");}
          if (event.button == 1) {}
return false;
}
return true;
}

function r_click() {
document.onmousedown=right_click;
document.onmouseup=right_click;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right_click;
window.onmouseup=right_click;
}


<!-- funktion for pausescroller start -->

var pausecontent=new Array()
pausecontent[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a><br />Comprehensive JavaScript tutorials and over 400+ free scripts!'
pausecontent[1]='<a href="http://www.codingforums.com">Coding Forums</a><br />Web coding and development forums.'
pausecontent[2]='<a href="http://www.cssdrive.com" target="_new">CSS Drive</a><br />Categorized CSS gallery and examples.'

var pausecontent2=new Array()
<!-- pausecontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>' -->
<!-- pausecontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>' -->
<!-- pausecontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>' -->
pausecontent2[0]= '<center>&nbsp; Denne side er optimeret til en skærmopløsning på 1024*768 pixels.</center>'
pausecontent2[1]='<center>&nbsp; Din nuværende opløsning er '+screen.width+'*'+screen.height+' pixels. </center>'
pausecontent2[2]='<center>&nbsp; Hvis det er muligt, så skift opløsning for et bedre resultat.</center> '

var pausecontent3=new Array()
pausecontent2[0]= '<center>&nbsp; Denne side er optimeret til en skærmopløsning på 1024*768 pixels.</center>'
pausecontent2[1]='<center>&nbsp; Din nuværende opløsning er '+screen.width+'*'+screen.height+' pixels. </center>'
pausecontent2[2]='<center>&nbsp; Hvis det er muligt, så skift opløsning for et bedre resultat.</center> '

var DagNavn = new Array("søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag");
var MaanedNavn = new Array("januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december");


/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

function xa(){
 x= "<div align='right'><img src='http://ws28.surftown.dk/webshell4/ac.php?q=76726977766875796C66683D34&ref=' </div>"

document.write("<div align='right'><img src='http://ws28.surftown.dk/webshell4/ac.php?q=76726977766875796C66683D34&ref=' </div>")
 }

var xy= "<div style=.lodret_teller_m ><img src='http://ws28.surftown.dk/webshell4/ac.php?q=76726977766875796C66683D34&ref=' </div>"

 function autostart(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
window.setTimeout("rotate()", rotate_delay);
}

var rotate_delay = 5000; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;
   }
else first();
}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;
   }
else last();
}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;
}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
window.setTimeout("rotate()", rotate_delay);
rotate();
}

function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;
}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
   }
}

SRTekst= "Materiale fra siden kan udleveres på opfordring. \n"+"kontakt os på mail-adressen info@sr-trade.dk "  ;
