/* Hopper til andet link som pladsen tillader */
/* Gjort rigtig indviklet! */

var xheight = 300 ;
var xwidth = 200 ;

//Har denne fortsat en funktion?
//function reSize( ) { 
//if( self.screen) { 
// return( screen.width ) ; 
// }
//}

function isLowRes( ) { 
 /*
 ** Check if the browser is running in a low-resolution environment
 ** try to use the screen object (in N4 or e4). 
 ** If not available, try to use Java.
 ** If not available, assume low-res.
 ** returns true if in a low-resolution environment 
 ** ( width < 801 pixels )
 */
 if( parent.screen ) { 
  return( screen.width < 801 ) ; }
 else {
  if( navigator.javaEnabled && navigator.javaEnabled( ) ) {
   return ( java.awt.Toolkit.getDefaultToolkit( ).getScreenSize( ).width < 801 ) ; }
   else {
  return true ; }
 }
}


function findPlads( ) { 
// if( parent.location.href == self.location.href || !parent.correct_frame ) {
 if( parent.location.href == self.location.href ){
 top.location.href = link ; 
 }
}


/* Gør kun hvis god plads */
if( hvis == 'god_plads'  ) { 
 if( !isLowRes( ) ) { 
  findPlads();
 }
}

if( hvis == 'lille_menu'  ) { 
 if( isLowRes( ) ) { 
var link = '.menuflash-lille.html' ;
 }
}

if( hvis == 'for_lille'  ) { 
 if( isLowRes( ) ) { 
 top.location.href = link ; 
 }
}

if( hvis == 'ensom'  ) { 
  findPlads();
}

 /*
 ** var hvis = 'for_lille' ;
 ** var hvis = 'lille_menu' ;
 ** var hvis = 'god_plads' ;
 ** var link = 'index.html?pages/hvormeget.html' ;
 */

