﻿function checkSoeg(s)  {
  if (document.forms[0].sg.value == "søg") {
  	document.forms[0].sg.value = '';     
  }
}

	var scrollerBoxCenter = null;


function resvalue(r0,r1,r2)
{
	if (jsres == 0)
	{
		return r0;
	} else {
		if (jsres == 1)
		{
			return r1;
		} else {
			return r2;
		}
	}
}	

//***************************** slide

var intCurrImg = 0;
function nextImage() {
	if(typeof(arrPageImages)!="undefined") {
		intCurrImg += 1;
		if(intCurrImg>=arrPageImages.length) {
			intCurrImg = 0;
		}
		g('MainImage').style.backgroundImage = "url(\"" + arrPageImages[intCurrImg] + "\")";
		g('Imgtxt').innerHTML = arrPageImagestxt[intCurrImg];
		
		if( arrPageImagestxt[intCurrImg] != "<br><br>" ){
			g("photoinfo").style.display = "block";
		}else{
			g("photoinfo").style.display = "none";
		}							
	}	
}

function prevImage() {
	if(typeof(arrPageImages)!="undefined") {
		intCurrImg -= 1;
		if(intCurrImg<0) {
			intCurrImg = arrPageImages.length - 1;
		}
		g('MainImage').style.backgroundImage = "url(\"" + arrPageImages[intCurrImg] + "\")";
		g('Imgtxt').innerHTML = arrPageImagestxt[intCurrImg];
		
		if( arrPageImagestxt[intCurrImg] != "<br><br>" ){
			g("photoinfo").style.display = "block";
		}else{
			g("photoinfo").style.display = "none";
		}			
		
	}
	

	
}
function thisImage() {
		intCurrImg = intCurrImgThumb;
		g('MainImage').style.backgroundImage = "url(\"" + arrPageImages[intCurrImg] + "\")";
		g('Imgtxt').innerHTML = arrPageImagestxt[intCurrImg];	
		/*if (lukstateimg == 1) {
		toggleImgTxt();
		}	*/
		g('Imgtxt').style.top = rypos('photoinfo') - g("Imgtxt").offsetHeight + g("photoinfo").offsetHeight - p(jsRF * 1) + "px";

		if( arrPageImagestxt[intCurrImg] != "<br><br>" ){
			g("photoinfo").style.display = "block";
		}else{
			g("photoinfo").style.display = "none";
		}		
		
}
//***************************** Thumbslide
var intCurrImgThumb = 0;
function nextImageThumb() {
	if(typeof(arrPageImagesThumb)!="undefined") {
		intCurrImgThumb += 1;
		if(intCurrImgThumb>=arrPageImagesThumb.length) {
			intCurrImgThumb = 0;
		}
		g('thumb').src = arrPageImagesThumb[intCurrImgThumb];
		g('currthumb').innerHTML = intCurrImgThumb + 1;
	}
}
function prevImageThumb() {
	if(typeof(arrPageImagesThumb)!="undefined") {
		intCurrImgThumb -= 1;
		if(intCurrImgThumb<0) {
			intCurrImgThumb = arrPageImagesThumb.length - 1;
		}
		g('thumb').src = arrPageImagesThumb[intCurrImgThumb];
		g('currthumb').innerHTML = intCurrImgThumb + 1;
	}
}
//***************************** show/hide text
var lukstate=2;
function togglePhoto() {	
	if (lukstate == 1) {
		lukstate=2;	
		//g("submenu").style.display = "block";
		//g("submenudots").style.display = "block";
		g("imgmenu").style.display = "block";		
		g("divBoxCenterTextMaster").style.display = "block";
		g("imgArrowScrolbarBoxCenterUp").style.display = "block";
		g("imgArrowScrolbarBoxCenterDown").style.display = "block";
		g("divScrollbarBoxCenter").style.display = "block";
		g("divScrollSliderBoxCenter").style.display = "block";
		g("bottom_flower_bg").style.display = "block";
		g("TextMasterTop").style.display = "block";
		//alert(jstxtviewtext);
		//g("togglephoto").children[0].nodeValue = jstxtviewtext;
		g("togglephoto").innerHTML  = jstxtviewphoto;
				
	}else{		
		lukstate=1;		
		//g("submenu").style.display = "none";
		//g("submenudots").style.display = "none";
		g("imgmenu").style.display = "none";		
		g("divBoxCenterTextMaster").style.display = "none";
		g("imgArrowScrolbarBoxCenterUp").style.display = "none";
		g("imgArrowScrolbarBoxCenterDown").style.display = "none";
		g("divScrollbarBoxCenter").style.display = "none";
		g("divScrollSliderBoxCenter").style.display = "none";
		g("bottom_flower_bg").style.display = "none";
		g("TextMasterTop").style.display = "none";
		//alert(jstxtviewphoto);
		//g("togglephoto").children[0].nodeValue = jstxtviewphoto;
		//alert(g("togglephoto").children.length);
		g("togglephoto").innerHTML  = jstxtviewtext;
		
	}
}
//***************************** show/hide imagetext
var lukstateimg=1;
function toggleImgTxt() {	
	if (lukstateimg == 1) {
		lukstateimg=2;	
		g("Imgtxt").style.display = "none";	
	}else{		
		lukstateimg=1;		
		g("Imgtxt").style.display = "block";
		
		//g('Imgtxt').style.top = rypos('photoinfo') - g("Imgtxt").offsetHeight + g("photoinfo").offsetHeight - p(jsRF * 1) + "px";
		
		
	}
}

//***************************** show/hide Front

var lukstatefront=2;
function togglePhotoFront() {	
	if (lukstatefront == 1) {
		lukstatefront=2;	
		g("frontContent").style.display = "block";
		g("frontmap").style.display = "block";
		g("dots_front_right").style.display = "block";
		g("frontNews").style.display = "block";
		g("frontOffer").style.display = "block";		

			
	}else{		
		lukstatefront=1;		
		g("frontContent").style.display = "none";
		g("frontmap").style.display = "none";
		g("dots_front_right").style.display = "none";
		g("frontNews").style.display = "none";
		g("frontOffer").style.display = "none";		
	}
}




//***************************** Stuff
var ie5;
var ns6;
function startup() {
	ie5=document.all&&document.getElementById;
	ns6=document.getElementById&&!document.all;
	//alert ("ns6: " + ns6);
}

function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}


function delayPositionThings() {
		setTimeout("positionThings()", 500);
}

var blnFirstRun = true;

	//alert("jsintForside: " + jsintForside);

function positionThings() {


	if (blnFirstRun){
		if(window.captureEvents){
			window.onmousemove=sourceCheck;
		} else {
			document.onmousemove=sourceCheck;
		}		
	}


	var pageSize = getPageSize();
	//var pageHeight = (ie5 ? pageSize[1] : pageSize[3]);
	var pageWidth = (ie5 ? pageSize[0] : pageSize[2]);


	/*
	g('Site').style.top = p((pageHeight - g('Site').offsetHeight) / 2) + "px";
	if(p(g('Site').style.top) < 0) {
		g('Site').style.top = "0px";
	}
	*/
	if(g('Site')){
	g('Site').style.left = p((pageWidth - g('Site').offsetWidth) / 2) + "px";
	if(p(g('Site').style.left) < 0) {
		g('Site').style.left = "0px";
	}
	}

	if(g('top_flowers')){
		//g('top_flowers').style.left = rxpos('Site') + p(jsRF * 12) + "px";
		g('top_flowers').style.left = rxpos('Site') + p(jsRF * 0) + "px";
		g('top_flowers').style.top =  rypos('Site') + p(jsRF * 0) + "px";
		g('top_flowers').style.width =   p(jsRF * 769) + "px";
		g('top_flowers').style.height = p(jsRF * 96) + "px";
		//g("top_flowers").style.display = "none";
	}
	
	//alert((pageWidth - g('Site').offsetWidth)/2 + p(jsRF * 40) + "px");
	
	if(g('bottom_bar')){	
		
		g('bottom_bar').style.left = rxpos('Site') +p(jsRF * 0) + "px";
		g('bottom_bar').style.top =   rypos('Site') + p(jsRF * 489) + "px";
		g('bottom_bar').style.width =  p(jsRF * 769) + "px";
		g('bottom_bar').style.height = p(jsRF * 82) + "px";
		//g("bottom_bar").style.display = "none";
	}
	
	
	if(g('flowerx')){		
		g('flowerx').style.left = rxpos('Site') + p(jsRF * 610) + "px";
		g('flowerx').style.top = rypos('Site') + p(jsRF * 427) + "px";
		g('flowerx').style.width =  p(jsRF * 104) + "px";
		g('flowerx').style.height = p(jsRF * 91) + "px";
	}	
		
	if(g('hovedmenu')){	
		g('hovedmenu').style.left = rxpos('Site') + p(jsRF * 0) + "px";
		g('hovedmenu').style.top = rypos('Site') + p(jsRF * resvalue(77,79,78)) + "px";
	}

	//************************************ vedr. Streger der forbinder hoved menu og undemenu
	if(jsintSubmenuCount >0) {
		if(g('MenuLine') && g('MenuStreg')){			


			if (ns6) {
				g('MenuLine').style.left = rxpos('MenuStreg') + (g("aktiv").offsetWidth/2) + resvalue(0,-1,-1) + "px";
				g('MenuLine').style.width = g("MainImage").offsetWidth + (rxpos('Site') - rxpos('MenuStreg') - (g("aktiv").offsetWidth/2)) + resvalue(49,66,83) + "px";
				//g('MenuLine').style.top = g("top_flowers").offsetHeight + p(jsRF * resvalue(17,17,18)) + "px";
				g('MenuLine').style.top = g("top_flowers").offsetHeight + resvalue(17,23,27) + "px";
			}else{
				g('MenuLine').style.left = rxpos('MenuStreg') + (g("aktiv").offsetWidth/2) + resvalue(1,1,0) + "px";
				g('MenuLine').style.width = g("MainImage").offsetWidth + (rxpos('Site') - rxpos('MenuStreg') - (g("aktiv").offsetWidth/2)) + resvalue(49,65,83) + "px";
				g('MenuLine').style.top = g("top_flowers").offsetHeight + resvalue(4,9,10) + "px";
			}			
			
		}	
	
	var a= g("aktiv").offsetWidth
	//alert(p(jsRF * 102));
	
				//alert(resvalue(10,12,36));
		if(g('SubMenuStregVertikal')){			
			if (ns6) {
				g('SubMenuStregVertikal').style.left = rxpos('Site') + g("MainImage").offsetWidth + resvalue(32,44,56)+ 0 + "px";
				g('SubMenuStregVertikal').style.top = rypos('MenuLine') + resvalue(1,1,1) + "px";
				//g('SubMenuStregVertikal').style.height = g("SubMenuStregVertikal").offsetHeight + resvalue(1,-2,-2) + "px";
				g('SubMenuStregVertikal').style.height =  (jsintSubmenuCount-1)*resvalue(23,26,28)  + resvalue(1,-2,-2) + "px";
			}else{
				g('SubMenuStregVertikal').style.left = rxpos('Site') + g("MainImage").offsetWidth + resvalue(32,44,56)+ 0 + "px";
				g('SubMenuStregVertikal').style.top = rypos('MenuLine') + resvalue(13,14,17) + "px";
				//g('SubMenuStregVertikal').style.height = g("SubMenuStregVertikal").offsetHeight + resvalue(2,-2,-1) + "px";
				g('SubMenuStregVertikal').style.height =  (jsintSubmenuCount-1)*resvalue(23,26,28)  + resvalue(2,-2,-1) + "px";
			}
		}	
	}
		//************************************ END vedr. Streger der forbinder hoved menu og undemenu

	if(g('Logo')){	
		g('Logo').style.left = rxpos('Site') + p(jsRF * 782) + "px";
		g('Logo').style.top = rypos('Site') + p(jsRF * 0) + "px";
	}
	
	if(g('dots_front_top_left')){	
		g('dots_front_top_left').style.left = rxpos('Site') + p(jsRF * 6) + "px";
		g('dots_front_top_left').style.top = rypos('Site') + p(jsRF * 29) + "px";
		g("dots_front_top_left").style.display = "none";
	}

	if(g('adresse')){	
		//g('adresse').style.left = rxpos('Site') + p(jsRF * 80) + "px";
		//g('adresse').style.top = rypos('Site') + p(jsRF * 652) + "px";
	}
	if(g('contact')){	
		//g('contact').style.left = rxpos('Site')+ p(jsRF * 782) + "px";
		//g('contact').style.top = rypos('Site')+ p(jsRF * 545) + "px";
	}
	if(g('home_print_search')){	
		g('home_print_search').style.left = rxpos('Site')+ p(jsRF * 700) + "px";
		g('home_print_search').style.top = rypos('Site')+ p(jsRF * 5) + "px";
	}
	if(g('toplinks')){	
		g('toplinks').style.left = rxpos('Site')+ p(jsRF * 792) + "px";
		g('toplinks').style.top = rypos('Site')+ p(jsRF * resvalue(545,547,547)) + "px";
	}
	
	
		if(g('submenu')){
				g('submenu').style.left = rxpos('Site')+ p(jsRF * 782) + "px";
				g('submenu').style.top = rypos('Site')+ p(jsRF * 96) + "px";
		}	
	
	
		if(g('LangSelection')){
			g('LangSelection').style.left = rxpos('Site')+ p(jsRF * 935) + "px";
			g('LangSelection').style.top = rypos('Site')+ p(jsRF * 547) + "px";	
		}

		if(g('langBgwhite')){
			g('langBgwhite').style.left = rxpos('Site')+ p(jsRF * 782) + "px";
			g('langBgwhite').style.top = rypos('Site')+ p(jsRF * 545) + "px";		
		}	


		if(g('MainImage')){
			g('MainImage').style.left = rxpos('Site')+ p(jsRF * 0) + "px";
			g('MainImage').style.top = rypos('Site')+ p(jsRF * 0) + "px";
		}

		if(g('ImageOverlayBottomLeft')){
			g('ImageOverlayBottomLeft').style.left = rxpos('Site')+ p(jsRF * 0) + "px";
			g('ImageOverlayBottomLeft').style.top = rypos('Site')+ p(jsRF * 96) + "px";				
		}



		if(g('imgArrowLeft') && g('imgArrowRight')){
			g('imgArrowLeft').style.left = rxpos('Site') + p(jsRF * 2) + "px";
			g('imgArrowLeft').style.top = rypos('Site')+ p(jsRF * 300) + "px";
			//g("imgArrowLeft").style.display = "block";			
	
			g('imgArrowRight').style.left = rxpos('Site') + p(jsRF * 768) + "px";
			g('imgArrowRight').style.top = rypos('Site')+ p(jsRF * 300) + "px";
			//g("imgArrowRight").style.display = "block";		
	
			if (arrPageImages.length > 1) {
				g("imgArrowLeft").style.display = "block";	
				g("imgArrowRight").style.display = "block";
			}else{
			g("imgArrowLeft").style.display = "none";	
				g("imgArrowRight").style.display = "none";	
				
				
			}
		}
		
		
		
		
		

		if(g('Imgtxt')){
			g('Imgtxt').style.left = rxpos('Site') + p(jsRF * 20) + "px";
			g('Imgtxt').style.top = rypos('Site')+ p(jsRF * 504) + "px";
			g("Imgtxt").style.display = "block";	
		}
	
	if (jsintForside == 0) {
	//if (1 == 1) {
		// Artikel elementer:
		
		if (jsres == 0 ){
			//g('submenu').style.width = p(jsRF * 200) - p(jsRF * 2) + "px";
		}else if (jsres == 1 ){
			//g('submenu').style.width = p(jsRF * 200) + "px";
			
		}else if (jsres == 2 ){
			//g('submenu').style.width = p(jsRF * 200) - p(jsRF * 2) + "px";
		}
		
		if (arrPageImages.length == 0) {
			g("thumbnav").style.display = "none";
			g("photoinfo").style.display = "none";				
		}

	if(g('bottom_flower_bg')){	
		
		g('bottom_flower_bg').style.left = rxpos('Site') + p(jsRF * 350) + "px";
		g('bottom_flower_bg').style.top = rypos('Site') + p(jsRF * 421) + "px";
		//g('bottom_flower_bg').style.width =  p(jsRF * 104) + "px";
		//g('bottom_flower_bg').style.height = p(jsRF * 91) + "px";
	}			

		/*
		g('submenudots').style.left = rxpos('submenu') + p(jsRF * 1) + "px";
		g('submenudots').style.top = rypos('Site')+ p(jsRF * 44) + "px";
		g('submenudots').style.width = (g("submenu").offsetWidth) - p(jsRF * 1) + "px";
	
		g('imgmenu').style.left = rxpos('submenu') + "px";
		g('imgmenu').style.top = rypos('Site')+ p(jsRF * 406) + "px";
		g('imgmenu').style.width = (g("submenu").offsetWidth) + "px";
		
		g('imgmenubg').style.width = (g("submenu").offsetWidth) + "px";
		*/
		

		if(g('photoinfo')){
			//g("photoinfo").style.width = p(jsRF * 70) + "px";
			//g('photoinfo').style.left = rxpos('Site')+  p(jsRF * 13) + "px";			
			//g('photoinfo').style.top = rypos('Site')+ p(jsRF * 370) + "px";
		}
	
	


		// vedr. content
		var k =0;
		var k2 =0;
		if (jsres == 0 ){
			k =0;
			k2 =1;
		}else if (jsres == 1 ){
			k =1;		
		}else if (jsres == 2 ){
			k =0;
		}
		






			if (ns6) {
				g("TextMasterTop").style.left = rxpos('Site') + p(jsRF * 350) + "px";
				g("TextMasterTop").style.top = rypos('Site') + resvalue(113,144,178) + "px";
				g("TextMasterTop").style.width = p(jsRF * 385) + "px";
				g("TextMasterTop").style.height = g("TextMasterTop").offsetHeight - p(jsRF * resvalue(3,0,0)) + "px";
				
				g("divBoxCenterTextMaster").style.left = rxpos('Site') + p(jsRF * 350) + "px";
				g("divBoxCenterTextMaster").style.top = rypos('TextMasterTop') + g("TextMasterTop").offsetHeight + resvalue(0,0,0) + "px";	
				g("divBoxCenterTextMaster").style.width = p(jsRF * 385) + "px";
				g("divBoxCenterTextMaster").style.height = resvalue(261,320,401) + "px";
				
				g("TextMasterTop").style.MozOpacity  = 0.9;
				g("divBoxCenterTextMaster").style.MozOpacity  = 0.8;	
								
			}else{
				g("TextMasterTop").style.left = rxpos('Site') + p(jsRF * 350) + "px";
				g("TextMasterTop").style.top = rypos('Site') + resvalue(113,144,178) + "px";
				g("TextMasterTop").style.width = p(jsRF * 385) + "px";
				g("TextMasterTop").style.height = g("TextMasterTop").offsetHeight - p(jsRF * resvalue(3,0,0)) + "px";	
				
				g("divBoxCenterTextMaster").style.left = rxpos('Site') + p(jsRF * 350) + "px";
				g("divBoxCenterTextMaster").style.top = rypos('TextMasterTop') + g("TextMasterTop").offsetHeight + resvalue(0,0,0) + "px";	
				g("divBoxCenterTextMaster").style.width = p(jsRF * 385) + "px";
				g("divBoxCenterTextMaster").style.height = resvalue(261,320,401) + "px";	
					
				g("TextMasterTop").style.filter = "alpha(opacity=90);";
				g("divBoxCenterTextMaster").style.filter = "alpha(opacity=80);";	
			}	
			
			

			
			
		
		
		if(g('togglephoto')){
			g("togglephoto").style.width = p(jsRF * 70) + "px";
			g('togglephoto').style.left = rxpos('Site')+  p(jsRF * resvalue(659,660,661)) + "px";		
			g('togglephoto').style.top = rypos('TextMasterTop')+ resvalue(0,-1,-1) + "px";
		}

		g("imgArrowScrolbarBoxCenterUp").style.left = rxpos("divBoxCenterTextMaster") + g("divBoxCenterTextMaster").offsetWidth - jsRF*10 - g("imgArrowScrolbarBoxCenterUp").offsetWidth /2 + "px";
		g("imgArrowScrolbarBoxCenterUp").style.top  = rypos("divBoxCenterTextMaster") + p(jsRF * 10) + "px";

		g("imgArrowScrolbarBoxCenterDown").style.left = rxpos("imgArrowScrolbarBoxCenterUp") + "px";
		g("imgArrowScrolbarBoxCenterDown").style.top  = rypos("divBoxCenterTextMaster") + g("divBoxCenterTextMaster").offsetHeight - g("imgArrowScrolbarBoxCenterDown").offsetHeight - p(jsRF * 10)+ "px";
	
		g("divScrollbarBoxCenter").style.left   = rxpos("imgArrowScrolbarBoxCenterUp") + g("imgArrowScrolbarBoxCenterUp").offsetWidth/2 + "px";
		g("divScrollbarBoxCenter").style.top    = rypos("imgArrowScrolbarBoxCenterUp") + jsRF*10 + "px";
		g("divScrollbarBoxCenter").style.height = rypos("imgArrowScrolbarBoxCenterDown") - g("imgArrowScrolbarBoxCenterDown").offsetHeight + jsRF*2 - rypos("divScrollbarBoxCenter") + "px";

		g("divScrollSliderBoxCenter").style.top = rypos("divScrollbarBoxCenter")+ "px";
		g("divScrollSliderBoxCenter").style.left = rxpos("divScrollbarBoxCenter") - g("divScrollSliderBoxCenter").offsetWidth/2 + "px";				

		if (scrollerBoxCenter == null)
		{
			scrollerBoxCenter = new textScroller(1);
		}
		scrollerBoxCenter.masterobj = 'divBoxCenterTextMaster';
		scrollerBoxCenter.scrollerobj = 'divBoxCenterTextDocument';
		scrollerBoxCenter.scrollbar = 'divScrollbarBoxCenter';
		scrollerBoxCenter.arrowobj = 'divScrollSliderBoxCenter'; //fake shit
		scrollerBoxCenter.scrollslider = 'divScrollSliderBoxCenter';
		scrollerBoxCenter.prepare();	

		// End vedr. content


		//alert(arrPageImagestxt[intCurrImg] != "<br><br>");
		/*
				if( arrPageImagestxt[intCurrImg] != "<br><br>"){
					g("photoinfo").style.display = "block";
				}else{
					g("photoinfo").style.display = "none";
				}	
		*/
		if( typeof(arrPageImagestxt[intCurrImg]) != "undefined" && arrPageImagestxt.length > 0 && arrPageImagestxt[0] != "<br><br>"){
			
			g("photoinfo").style.display = "block";
		}else{
			g("photoinfo").style.display = "none";
		}	


	}else{
			// Forside elementer:	
		

			if(g('frontContent')){				
				g('frontContent').style.left = rxpos('Logo')+ p(jsRF * 20) + "px";
				g('frontContent').style.top = rypos('Logo') + g("Logo").offsetHeight - p(jsRF * 2) + "px";
				//g("frontContent").style.filter = "alpha(opacity=80);";
				//g("frontContent").style.MozOpacity  = 0.8;			
				//g("frontContent").style.display = "none";
			}		


			if(g('divContentsFlash')){
			g('divContentsFlash').style.left = rxpos('Site')+ p(jsRF * 12) + "px";
			g('divContentsFlash').style.top = rypos('Site')+ p(jsRF * 61) + "px";
			
			g('dots_front_right').style.left = rxpos('frontContent') + p(jsRF * 0) + "px";
			g('dots_front_right').style.top = rypos('divContentsFlash') + g("divContentsFlash").offsetHeight - g("dots_front_right").offsetHeight + "px";

			g('frontmap').style.left = rxpos('Site')+ p(jsRF * 12) + "px";
			g('frontmap').style.top = rypos('Site')+ p(jsRF * 61) + "px";

			g("togglephotofront").style.width = p(jsRF * 70) + "px";
			g('togglephotofront').style.left = rxpos('Site') + p(jsRF * 350) + "px";
			g('togglephotofront').style.top = rypos('Site') + p(jsRF * resvalue(113,113,113)) + "px";			
			
			}
			
			if(g('frontNews')){
				g('frontNews').style.left = rxpos('Site')+ p(jsRF * 38) + "px";
				g('frontNews').style.top = rypos('Site')+ p(jsRF * 404) + "px";			
				g("frontNews").style.filter = "alpha(opacity=80);";
				g("frontNews").style.MozOpacity  = 0.8;
				g("frontNews").style.display = "none";
			}				
			if(g('frontOffer')){
				g('frontOffer').style.left = rxpos('Site')+ p(jsRF * 38) + "px";
				g('frontOffer').style.top = rypos('Site')+ p(jsRF * 462) + "px";			
				g("frontOffer").style.filter = "alpha(opacity=80);";
				g("frontOffer").style.MozOpacity  = 0.8;
				g("frontOffer").style.display = "none";		
			}

			

	}

blnFirstRun = false;
	
}
