
	//	navigation
	
		function nav(target,language)
		{
			if ( language == 'se' )
			{
				if ( target == 'hem' )			{ location.href = '../start/start.php'; }
				if ( target == 'bostader' )		{ location.href = '../bostader/start_bostader.php'; }
				if ( target == 'lokaler' )		{ location.href = '../lokaler/start_lokaler.php'; }
				if ( target == 'tjanster' )		{ location.href = '../tjanster/start_tjanster.php'; }
				if ( target == 'omBesqab' )		{ location.href = '../omBesqab/start_omBesqab.php'; }
				if ( target == 'admin' )		{ location.href = '../admin/press_list.php'; }
				if ( target == 'inEnglish' )	{ location.href = ''; }
				if ( target == 'sitemap' )		{ location.href = '../sitemap/sitemap.php'; }
				if ( target == 'contact' )		{ location.href = '../omBesqab/kontakt.php'; }
			}
			if ( language == null ) { location.href = target; }
		}
		

		
	//	area heights

		function areaHeights()
		{
			var areaOne = document.getElementById('area1').offsetHeight;
			var areaTwo = document.getElementById('area2').offsetHeight;
	
			if ( document.getElementById('area3') )
			{
				var areaThree = document.getElementById('area3').offsetHeight;
				
				if ( areaOne >= areaTwo && areaOne >= areaThree ) { document.getElementById('area2').style.height = areaOne+'px'; document.getElementById('area3').style.height = areaOne+'px'; }
				if ( areaTwo >= areaOne && areaTwo >= areaThree ) { document.getElementById('area1').style.height = areaTwo+'px'; document.getElementById('area3').style.height = areaTwo+'px'; }
				if ( areaThree >= areaOne && areaThree >= areaTwo ) { document.getElementById('area1').style.height = areaThree+'px'; document.getElementById('area2').style.height = areaThree+'px'; }
			}
				else
			{
				if ( areaOne < areaTwo ) { document.getElementById('area1').style.height = areaTwo+'px'; }
				if ( areaOne > areaTwo ) { document.getElementById('area2').style.height = areaOne+'px'; }
			}
		}



	//	price list

		function pricelistOver(id,row)
		{
			if ( row == 'head' )
			{
				// color #5
				id.style.backgroundColor = "#627a47";
			}
			else
			{
				// color #2 or #3
				id.style.backgroundColor = "#d4ddc6";
			}
		}

		function pricelistOut(id)
		{
			id.style.backgroundColor = "";
		}



	//	listClick
	
		function listClick(e, url, plats) {
	
	//	resolve event object
	
			if (!e) e = window.event;
			src = (e.target == undefined) ? e.srcElement : e.target;
	
	//	cancel event bubbling
	
			e.cancelBubble = true;
			if (e.stopPropagation) e.stopPropagation();
			
			if (plats == 0) { alert('check'); }
			if (plats == 1) { location.href = url + '&type=list'; }
			else {  }
		}
		

		function listBack(type)
		{
			if ( type == 'list' ) { window.location.href = '?id=2'; }
			else { window.location.href = '?id=90'; }
		}



	//	flaps
	
		function flaps(id,flap)		
		{
			if ( flap == 1 && document.getElementById('flaps'+id+'_1') != null ) { document.getElementById('flaps'+id+'_1').style.display = ''; document.getElementById('image'+id+'_1').style.display = ''; } else { document.getElementById('flaps'+id+'_1').style.display = 'none'; document.getElementById('image'+id+'_1').style.display = 'none'; }
			if ( flap == 2 && document.getElementById('flaps'+id+'_2') != null ) { document.getElementById('flaps'+id+'_2').style.display = ''; document.getElementById('image'+id+'_2').style.display = ''; } else { document.getElementById('flaps'+id+'_2').style.display = 'none'; document.getElementById('image'+id+'_2').style.display = 'none'; }
			if ( flap == 3 && document.getElementById('flaps'+id+'_3') != null ) { document.getElementById('flaps'+id+'_3').style.display = ''; document.getElementById('image'+id+'_3').style.display = ''; } else { document.getElementById('flaps'+id+'_3').style.display = 'none'; document.getElementById('image'+id+'_3').style.display = 'none'; }
		}
