<!--

var popupWin = null;

function openWin(url,w,h)
         {
         popupWin = window.open("../eng/" + url,"Win","width="+w+",height="+h);
         window.name = 'opener';
         }

function scram() 
         {
         if (popupWin != null && popupWin.open) popupWin.close();
         }

window.onfocus=scram;

function change(id, newClass)
         {
         identity=document.getElementById(id);
         identity.className=newClass;
         }

function changeimage(id, newsrc) 
         {
         identity=document.getElementById(id);
         identity.src=newsrc;
         }

function changepage(id) 
         {
         location.href=id;
         }

function linksite(page)
         {
         window.open(page,'RiadLinks','height=600,width=800,Toolbar=1,scrollbars=1,resizable=1');
         }

function menuchange(page,language)
         {
         parent.mainpage.location.href=page;
         if(language=="no")
         {
         parent.logoleft.location.href="../eng/logoleftoff.html";
         }
         else
         {
         parent.logoleft.location.href="../eng/logoleft.html";
         }
         }

var varwin = null;
function reenter()
{
         bName = navigator.appName;
         bVer = parseInt(navigator.appVersion);
         bPlat = navigator.platform;

         if (screen.width<1024){
	// Screen Res too small
        myUrl = "anotherlook.html";
        }
        else
        {
        myUrl = "anotherlook.html";
        }
        if (varwin && varwin.open)
        {
        	varwin.focus();
        }
        else
        {
        myTarget = "RIAD_WINDOW";
        myArgs = "fullscreen=yes,type=fullWindow";
        varwin=window.open( myUrl, myTarget, myArgs );
        }
}

-->
