function SetFrames(frame1, topfarve, billede1, billede2, sprog) 
{ 
  if (parent.topmenu.location.href!="http://"+location.hostname+"/"+sprog+"/"+frame1)
    {
    parent.topmenu.location="http://"+location.hostname+"/"+sprog+"/"+frame1;  
	}
  if (parent.toppen.location.href!="http://"+location.hostname+"/"+sprog+"/frames/toppen.html")
    {
    parent.toppen.location="http://"+location.hostname+"/"+sprog+"/frames/toppen.html";  
	}
  parent.toppen.document.getElementById('farve1').style.backgroundColor = topfarve;
  parent.toppen.document.getElementById('farve2').style.backgroundColor = topfarve;
  parent.toppen.document.getElementById('farve3').style.backgroundColor = topfarve;
  parent.toppen.document.images['billede'].src = billede1;
  parent.menu.document.images['billede'].src = billede2;

  return false;
}

function CheckIndhold(should, sprog)
{

if (parent.indhold.location.href!="http://"+location.hostname+"/"+sprog+"/"+should) 
  {
  parent.indhold.location="http://"+location.hostname+"/"+sprog+"/"+should;  
  }
}  


function SetFlagPos() {
  var myWidth = 0, myHeight = 0;
  if( typeof( self.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = self.innerWidth;
    myHeight = self.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  crossboxcover=document.getElementById("test")
  crossboxcover.style.left = myWidth-23;
}

