/*******************************************************
** Include file for www.xxx.se
*******************************************************/

/*******************************************************
** Opens page in frameset if someone tries to open it without
*******************************************************/

if (top.location == self.location) {
    //top.location = 'index.html';
	top.location = '../';
}
	
/************************************
Break out
*************************************/	
//Break out of the frames
function breakOut(strPage)	{
	top.location.href =  strPage;
}
	
	
/************************************
popup 
*************************************/

function popUp(strPic, strName, strPref) {
	var popupwin;
	strPref = strPref + ',toolbar=no,scrollbars=no,location=no';
	popupwin = window.open(strPic,strName,strPref);
	popupwin.focus();
}	

/***************************************
** FUNCTION:	right(e)
** prevent rightclick function
***************************************/
function right(e) {
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
		alert("Kontakta \nMalin Schönbeck \neller \nHASSELBERG internet \nför mer information!");
		return false;
	}else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		alert("Kontakta \nMalin Schönbeck \neller \nHASSELBERG internet \nför mer information!");
	return false;
	}
	return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
