/*******************************************************
** Include file for www.svenneformedlingen.se
*******************************************************/


function changeImg(strImg){
	document.images['' + strImg + ''].src = 'img/top/' + strImg + '_o.gif';
}

function changeBack(strImg){
	document.images['' + strImg + ''].src = 'img/top/' + strImg + '.gif';
}

function openPages(strSub,strPage){
	parent.left.location.href = strSub;
	parent.content.location.href = strPage;
	//parent.banners.location.href = 'banners/banners.php';
}













/*******************************************************
** 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();
}	