// Popupvinduer
function visstortbillede(billede,hoejde,bredde) {
	window.open('/stortbillede.php?pic='+billede,'_blank','width='+bredde+',height='+hoejde+',toolbar=no,scrollbars=no')	
}

function popupvindue(side,bredde,hoejde) {
	window.open(side,'_blank','width='+bredde+',height='+hoejde+',toolbar=no,scrollbars=yes')	
}

// Alt godt til tagwallen
var field;

function hlfield(item) {
	item.style.background = '#666666';
	item.style.color = '#ffffcc';
	item.style.border = '1px solid silver';
}

function dsfield(item) {
	item.style.background = '#3B3B45';
	item.style.color = 'white';
	item.style.border = '1px solid #3B3B45';
	item.style.borderBottomColor = 'gray';
}

function msover_field(item) {
	if (field != 1) {
		hlfield(item);
	}
}

function msout_field(item) {
	if (field != 1) {
		dsfield(item);
	}
}

function fieldfocus(item) {
	hlfield(item);
	field = 1;
}

function fieldblur(item) {
	dsfield(item);
	field = 0;
}

// Lidt JS til nogen fancy knapper
function over_yellow_button(item) {
	item.style.border = '1px solid silver';
	item.style.background = '#666666';
}

function out_yellow_button(item) {
	item.style.border = '1px solid silver';
	item.style.background = '#838383';
}

function down_yellow_button(item) {
	item.style.border = '1px solid #0A246A';
	item.style.background = '#8592B5';
}


function swapimage_en() {
theimages = new Array("sites/cryptography_dk.png", 
"sites/designpatterns.png", 
"sites/hibernate_dk.png",
"sites/j2ee_dk.png",
"sites/portlet_dk.png",
"sites/topsecurity_dk.png",
"sites/usecase_dk.png"
//,"sites/whitepapers_dk.png"
);
thetopnote_en=new Array(
"Maybe visit articles/Java source code at       <a href=http://www.cryptography.dk>www.cryptography.dk    </a>:",
"Maybe visit design patterns/UML at             <a href=http://www.designpatterns.dk>www.designpatterns.dk</a>:", 
"Maybe visit Hibernate/spring/struts example at <a href=http://www.hibernate.dk>     www.hibernate.dk     </a>:",
"Maybe visit J2EE main site at                  <a href=http://www.j2ee.dk>          www.j2ee.dk / www.j2ee.eu</a> :",
"Maybe visit Portlet Hello World example on BEA Portal/Glassfish at <a href=http://www.portlet.dk>www.portlet.dk</a>:",
"Maybe visit J2EE security code examples at     <a href=http://www.topsecurity.dk>   www.topsecurity.dk   </a>:",
"Maybe visit UML/usecase templates at           <a href=http://www.usecase.dk>       www.usecase.dk       </a>:"
// ,"Maybe visit J2EE whitepaper at                 <a href=http://www.whitepapers.dk>   www.whitepapers.dk   </a>:" 
);

whichimage = Math.floor(Math.random()*theimages.length);
document.write(
thetopnote_en[whichimage]+'<br><br>'+
'<IMG SRC="' +theimages[whichimage]+ '" width=300 height=200><br><br>'
);

}


function swapimage_dk() {
theimages = new Array("sites/cryptography_dk.png", 
"sites/designpatterns.png", 
"sites/hibernate_dk.png",
"sites/j2ee_dk.png",
"sites/portlet_dk.png",
"sites/topsecurity_dk.png",
"sites/usecase_dk.png"
//,"sites/whitepapers_dk.png"
);

thetopnote_dk=new Array(
"Man kan bes&oslash;ge articles/Java source code p&aring;       <a href=http://www.cryptography.dk>www.cryptography.dk    </a>:",
"Man kan bes&oslash;ge design patterns/UML p&aring;             <a href=http://www.designpatterns.dk>www.designpatterns.dk</a>:", 
"Man kan bes&oslash;ge Hibernate/spring/struts exampler p&aring; <a href=http://www.hibernate.dk>     www.hibernate.dk     </a>:",
"Man kan bes&oslash;ge J2EE main site p&aring;                  <a href=http://www.j2ee.dk>          www.j2ee.dk / www.j2ee.eu</a> :",
"Man kan bes&oslash;ge Portlet Hello World exampler p&aring; BEA Portal/Glassfish at <a href=http://www.portlet.dk>www.portlet.dk</a>:",
"Man kan bes&oslash;ge J2EE security code eksempler p&aring;     <a href=http://www.topsecurity.dk>   www.topsecurity.dk   </a>:",
"Man kan bes&oslash;ge UML/usecase templates p&aring;           <a href=http://www.usecase.dk>       www.usecase.dk       </a>:"
//,"Man kan bes&oslash;ge J2EE whitepaper p&aring;                 <a href=http://www.whitepapers.dk>   www.whitepapers.dk   </a>:" 
);

whichimage = Math.floor(Math.random()*theimages.length);
document.write(
thetopnote_dk[whichimage]+'<br><br>'+
'<IMG SRC="' +theimages[whichimage]+ '" width=300 height=200><br><br>'
);

}



