	//Copyright ©2004 Steffen Widtfeldt All rights reserved. E-mail: steffen@e-handelskompagniet.dk
	news_search = '';
	function gnews(a,xn){
		b='';
		if(design[0]!=''){
			body_des = 'COLOR:#'+design[0]+';'
			def_txt_col = '#'+design[0]
		}else{
			body_des = '';
			def_txt_col = '#000000';
		}
		if(design[13]!=''){
			body_des = body_des+'FONT-SIZE:'+design[13]+';'
		}
		if(design[1]!=''){
			body_des = body_des+'FONT-FAMILY:'+design[1]+';'
			font_family = 'FONT-FAMILY:'+design[1]+';'
		}else{
			font_family = '';
		}
		if(design[3]!=''){
			ttl_des = font_family+'BACKGROUND-COLOR:#'+design[3]+';'
		}else{
			ttl_des = font_family+''
		}
		if(design[2]!=''){
			ttl_des = ttl_des+'FONT-SIZE:'+design[2]+';'
		}
		if(design[16]!=''){
			ttl_des = ttl_des+'COLOR:#'+design[16]+';'
			ttl_default_fontcolor = '#'+design[16];
		}else{
			ttl_default_fontcolor = def_txt_col;
		}
		if(design[9]=='1'){
			ttl_des = ttl_des+'BORDER:1px '+ttl_default_fontcolor+' solid;';
		}else if(design[9]=='2'){
			ttl_des = ttl_des+'BORDER-BOTTOM:1px '+ttl_default_fontcolor+' solid;';
		}
		if(design[17]!=''){
			ttl_des = ttl_des+'BACKGROUND-IMAGE:url(\''+webid+'/'+design[17]+'\');';
		}
		if(design[5]!=''){
			tea_des = font_family+'BACKGROUND-COLOR:#'+design[5]+';';
		}else{
			tea_des = font_family+'';
		}
		if(design[31]!=''){
			contable_pad=' CELLPADDING='+design[31];
		}else{
			contable_pad='';
		}
		if(design[32]!=''){
			teatable_pad=' CELLPADDING='+design[32];
		}else{
			teatable_pad='';
		}
		if(design[23]!=''){
			tea_des = tea_des+'BACKGROUND-IMAGE:url(\''+webid+'/'+design[23]+'\');'
		}
		if(design[21]!=''){
			tea_des = tea_des+'COLOR:#'+design[21]+';'
			tea_default_fontcolor = '#'+design[21]
		}else{
			tea_default_fontcolor = def_txt_col;
		}
		if(design[22]!=''){
			tea_des = tea_des+'FONT-SIZE:'+design[22]+';'
		}
		if(design[24]=='1'){
			tea_des = tea_des+'BORDER:1px '+tea_default_fontcolor+' solid;'
		}else if(design[24]=='2'){
			tea_des = tea_des+'BORDER-BOTTOM:1px '+tea_default_fontcolor+' solid;'
		}
		if(design[7]!=''){
			list_des = font_family+'WIDTH:'+design[7]+';'
		}else{
			list_des = font_family+'WIDTH:120;'
		}
		if(design[6]!=''){
			list_des = list_des+'BACKGROUND-COLOR:#'+design[6]+';'
		}
		if(design[4]=='3'){
			pos_table = '1';	
		}else{
			pos_table = '';
		}
		if(design[18]!=''){
			ttl_des = ttl_des+'FONT-WEIGHT:bold;'
		}
		if(design[19]!=''){
			ttl_des = ttl_des+'FONT-STYLE:italic;'
		}
		if(design[20]!=''){
			ttl_des = ttl_des+'TEXT-DECORATION:underline;'
		}
		if(design[25]!=''){
			tea_des = tea_des+'FONT-WEIGHT:bold;'
		}
		if(design[26]!=''){
			tea_des = tea_des+'FONT-STYLE:italic;'
		}
		if(design[27]!=''){
			tea_des = tea_des+'TEXT-DECORATION:underline;'
		}
		if(design[30]!=''){
			list_des = list_des+font_family+'BORDER:1px '+def_txt_col+' solid;'
		}
		if(design[33]!=''){
			contable_pad = contable_pad+' WIDTH='+design[33]
		}
		if(design[10]!='' && (Math.abs(design[10])+xn)<js_news.length){
			t_lngt = Math.abs(design[10])+xn
		}else{
			t_lngt = js_news.length
		}
		t_lngt_sh = t_lngt
		xn_tmp = xn
		js_news_length = js_news.length
		i=0;
		var mydate = new Date();
		mtday = mydate.getTime();
		ttime = Math.ceil(((mtday)/60000)-mydate.getTimezoneOffset())
		ii=0
		tis = 0;
		if(design[36]!='' && design[12]=='1'){
			pixborder='BORDER:1px #'+design[36]+' solid;';
		}else if(design[37]!='' && design[12]!='1'){
			pixborder='BORDER:1px #'+design[37]+' solid;';
		}else{
			pixborder='';
		}
		for(i=0;i<js_news.length;i++){
			ii=ii+1
			if((js_news[i][4]!='' && Math.abs(ttime<js_news[i][4])) || 
				(js_news[i][5]!='' && Math.abs(ttime>js_news[i][5])) || 
					(news_search!='' && js_news[i][7].search(news_search)==-1 && js_news[i][8].search(news_search)==-1)){
				js_news_length = js_news_length-1;
				t_lngt = t_lngt+1;
				xn_tmp=xn_tmp+1
				ii=ii-1
			}else if(i>=xn_tmp && i<t_lngt){
				tis = ii;
				teaser_tr = '';
				add_dato0 = '';
				add_dato1 = '';
				if(design[11]>'' && js_news[i][3]!=''){
					add_dato = Math.abs(js_news[i][3]);
					mydate = new Date(((add_dato+mydate.getTimezoneOffset())*60000))
					if(design[11]=='1'){
						mxdate = (mydate.getDate()+'/'+(mydate.getMonth()+1)+'/'+mydate.getFullYear());
					}else if(design[11]=='2'){
						mxdate = (mydate.getDate()+'/'+(mydate.getMonth()+1)+'/'+mydate.getFullYear()+' '+mydate.getHours()+':'+mydate.getMinutes());
					}else if(design[11]=='3'){
						mxdate = (mydate.toLocaleString()+'');
						mxdate = mxdate.substring(0,mxdate.length-9)
					}else if(design[11]=='4'){
						mxdate = (mydate.toLocaleString()+'');
						mxdate = mxdate.substring(0,mxdate.length-3)
					}
					if(design[34]=='0'){
						add_dato0 = '<DIV ALIGN=left>'+mxdate+'</DIV>';
					}else if(design[34]=='1'){
						add_dato0 = '<DIV ALIGN=right>'+mxdate+'</DIV>';
					}else if(design[34]=='2'){
						add_dato1 = '<DIV ALIGN=left>'+mxdate+'</DIV>';
					}else if(design[34]=='3'){
						add_dato1 = '<DIV ALIGN=right>'+mxdate+'</DIV>';
					}
				}
				if(design[12]=='1'){
					js_newspix = js_news[i][9]
					js_position = design[29]
				}else{
					js_newspix = js_news[i][10]
					js_position = design[30]
					if(js_news[i][7]!=''){
						teaser_tr = '<TR>'
							 	+'<TD STYLE="'+body_des+'">'+js_news[i][7]+'<BR></TD>'
						 	   +'</TR>'
					}
				}
				if(js_newspix!=''){
					if(js_position=='0' || js_position=='2'){
						contpix_des = 'FLOAT:left;'	
					}else{
						contpix_des = 'FLOAT:right;'	
					}
					if(design[12]=='1'){
						js_newspix = '"'+webid+'/'+js_newspix+'"  onClick=top.frames[\'main\'].gnews('+i+','+xn+') TITLE="'+ust[24]+'"';
						contpix_des = contpix_des+'CURSOR:hand;CURSOR:pointer;'
					}else{
						js_newspix = '"'+webid+'/'+js_newspix+'"'
					}
					this_src = webid+'/'+js_newspix
					if(js_position=='0' || js_position=='1'){
						add_contpix_top = '<IMG STYLE="'+contpix_des+pixborder+'" SRC='+js_newspix+'>';
						add_contpix_bottom = '';
					}else{
						add_contpix_bottom = '<IMG STYLE="'+contpix_des+pixborder+'" SRC='+js_newspix+'>';
						add_contpix_top = '';
					}
				}else{
					add_contpix_bottom = '';
					add_contpix_top = '';
				}
				if(i<t_lngt-1){
					make_air = '<TR>'
						 	+'<TD><IMG SRC=images/space.gif HEIGHT=5 WIDTH=5></TD>'
					 	  +'</TR>'
				}else{
					make_air = '<TR>'
						 	+'<TD><IMG SRC=images/space.gif HEIGHT=5 WIDTH=5></TD>'
					 	  +'</TR>'
				}
				if(design[12]=='1'){
					if(js_news[i][7].search('href')==-1){
						click_open = ' onClick=top.frames[\'main\'].gnews('+i+','+xn+') STYLE=CURSOR:hand;CURSOR:pointer; TITLE="'+ust[24]+'"'
					}else{
						click_open = ''
					}
					b=b
					 +'<TR>'
						 +'<TD STYLE="'+tea_des+';CURSOR:hand;CURSOR:pointer;" onClick=top.frames[\'main\'].gnews('+i+','+xn+')>'+js_news[i][6]+'</TD>'
					 +'</TR>'	
					 +'<TR>'
						 +'<TD'+click_open+' STYLE="'+body_des+'">'
							 +'<FONT STYLE="'+body_des+'">'
							 +add_dato0
							 +add_contpix_top
							 +js_news[i][7]
							 +add_contpix_bottom
							 +add_dato1
							 +'<DIV onClick=top.frames[\'main\'].gnews('+i+','+xn+') STYLE=TEXT-DECORATION:underline;CURSOR:hand;CURSOR:pointer; ALIGN=right>'+ust[24]+'</DIV>'
							 +'</FONT>'
						 +'</TD>'
					 +'</TR>'
					 +make_air
				}else{
					b=b
					 +'<TR>'
						 +'<TD  STYLE="'+ttl_des+'">'+js_news[i][6]+'</TD>'
					 +'</TR>'
					 +teaser_tr	
					 +'<TR>'
						 +'<TD STYLE="'+body_des+'">'+add_dato0+add_contpix_top+js_news[i][8]+add_contpix_bottom+add_dato1+'<BR></TD>'
					 +'</TR>'
					 +'<TR>'
						 +'<TD><IMG SRC=images/space.gif HEIGHT=8 WIDTH=8></TD>'
					 +'</TR>'
				}
			}
		}
		if(news_search!='' && design[14]=='1'){
		 	cancel_btn = '<INPUT TYPE=reset VALUE="<<" TITLE=Reset NAME=canc onClick=news_search="";gnews('+a+','+xn+');>&nbsp;'
		}else{
			cancel_btn = ''
		}
		if(design[14]=='1'){
			if(news_search!=''){
				text_search = news_search
			}else{
				text_search = ust[5]
			}
			srch_tble='<TABLE CELLPADDING=0 CELLSPACING=0>'
					 +'<TR>'
						 +'<TD>'
							   +cancel_btn
						 +'</TD>'
						 +'<TD>'
							   +'<INPUT onFocus=if(this.value==\''+ust[5]+'\'){this.value=\'\'};this.select() TYPE=text NAME=srch ID=srch VALUE="'+text_search+'" STYLE=WIDTH:60; CLASS=inpst>'
						 +'</TD>'
						 +'<TD>'
						 	   +'&nbsp;<INPUT VALUE=">>" onClick="if(document.getElementById(\'srch\').value!=news_search){news_search=document.getElementById(\'srch\').value;gnews('+a+','+xn+');}" TYPE=button NAME=srchbtn TITLE="'+ust[5]+'">'
						 +'</TD>'
					 +'</TR>'
				  +'</TABLE>'
		}
		if(design[14]=='1' && design[10]==''){
			nav_table = '<TR>'
					   +'<TD ALIGN=right STYLE="BORDER-TOP:1px '+def_txt_col+' solid;">'
					   	+srch_tble
					   +'</TD>'
				   +'</TR>'
		}else if(design[10]!=''){
			if(design[14]!=''){
				srch_tr = '<TD ALIGN=right>'
				         	+srch_tble
				         +'</TD>'
			}else{
				srch_tr = '';
			}
			if(tis<js_news_length){
				add_forw = '<FONT STYLE=CURSOR:hand;CURSOR:pointer; onClick=gnews('+a+','+(xn+Math.abs(design[10]))+')>[&raquo;]</FONT>';
			}else{
				add_forw = '';
			}
			if(tis>Math.abs(design[10])){
				ttal = xn-Math.abs(design[10]);
				if(ttal<0){ttal = 0}
				add_bckw = '<FONT STYLE=CURSOR:hand;CURSOR:pointer; onClick=gnews('+a+','+ttal+')>[&laquo;]</FONT>';
			}else{
				add_bckw = '';
			}
			count_all = Math.ceil(js_news_length/Math.abs(design[10]))
			t_cnt = '';
			for(y=0;y<count_all;y++){
				if((y*Math.abs(design[10]))==xn){
					th_des = 'FONT-WEIGHT:bold;'
					u_style = '';
					u_style_end = '';
				}else{
					th_des = 'CURSOR:hand;CURSOR:pointer; onClick=gnews('+a+','+(y*Math.abs(design[10]))+')'
					u_style = '<U>';
					u_style_end = '</U>';
				}
				t_cnt = t_cnt
				       +'<FONT STYLE='+th_des+'>['+u_style+(y+1)+u_style_end+']</FONT> '
			}
			if(t_lngt_sh>js_news_length){
				t_lngt_sh=js_news_length	;
			}
			if(count_all > 1){
				nav_panel= '<TR>'
						   +'<TD STYLE="'+body_des+'" WIDTH=15>'+add_bckw+'</TD>'
						   +'<TD STYLE="'+body_des+'" WIDTH="98%" ALIGN=center>'+t_cnt+'</TD>'
						   +'<TD STYLE="'+body_des+'" WIDTH=15>'+add_forw+'</TD>'
				  +'</TR>'
			}else{
				nav_panel = '';
			}
			if(js_news_length>1){
				if((t_lngt_sh-xn)>2){
					resultlist = (xn+1)+'~';
				}else if((t_lngt_sh-xn)>1){
					resultlist = (xn+1)+'-';
				}else{
					resultlist = '';
				}
				resultlist = resultlist+t_lngt_sh+' '+ust[25]+' '+js_news_length;
			}else{
				resultlist = '';
			}
			nav_table = '<TR>'
					   +'<TD STYLE="BORDER-TOP:1px '+def_txt_col+' solid;">'
						   +'<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="100%">'
							   +'<TR>'
								   +'<TD COLSPAN=3>'
									   +'<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="100%">'
										   +'<TR>'
											   +'<TD STYLE="'+body_des+'" VALIGN=top>'+resultlist+'</TD>'
											   +srch_tr
										   +'</TR>'
									   +'</TABLE>'
								   +'</TD>'
							   +'</TR>'
							   +nav_panel
						   +'</TABLE>'
					   +'</TD>'
				   +'</TR>';
		}else{
			nav_table = '';
		}
		if(design[12]=='1'){
			if(design[35]!=''){
				col_padding = '<TD><IMG SRC=images/space.gif WIDTH='+design[35]+' HEIGHT=1></TD>';
			}else{
				col_padding = '';
			}
			if(pos_table=='1' && design[12]=='1'){
				lft_side=col_padding 
					 +'<TD VALIGN=top>'
						 +'<TABLE'+teatable_pad+' CELLSPACING=0 STYLE="'+list_des+'">'+b+nav_table+'</TABLE>'
					 +'</TD>';
				rgt_side= '';
			}else if(design[12]=='1'){
				rgt_side= '<TD VALIGN=top>'
						 +'<TABLE'+teatable_pad+' CELLSPACING=0 STYLE="'+list_des+'">'+b+nav_table+'</TABLE>'
					 +'</TD>'
					 +col_padding;
				lft_side= '';
			}else{
				rgt_side = '';
				lft_side= '';
			}
			if(js_news[a][10]!=''){
				if(design[28]=='0' || design[28]=='2'){
					contpix_des = 'FLOAT:left;'	
				}else{
					contpix_des = 'FLOAT:right;'	
				}
				if(design[37]!=''){
					pixborder='BORDER:1px #'+design[37]+' solid;';
				}else{
					pixborder='';
				}
				if(design[28]=='0' || design[28]=='1'){
					add_contpix_top = '<IMG STYLE="'+contpix_des+pixborder+'" SRC="'+webid+'/'+js_news[a][10]+'">';
					add_contpix_bottom = '';
				}else{
					add_contpix_bottom = '<IMG STYLE="'+contpix_des+pixborder+'" SRC="'+webid+'/'+js_news[a][10]+'">';
					add_contpix_top = '';
				}
			}else{
				add_contpix_bottom = '';
				add_contpix_top = '';
			}
			if(design[12]=='1'){
			
			}else{
			
			}
			add_dato0 = '';
			add_dato1 = '';
			if(design[11]>'' && js_news[a][3]!=''){
				add_dato = Math.abs(js_news[a][3]);
				mydate = new Date(((add_dato+mydate.getTimezoneOffset())*60000))
				if(design[11]=='1'){
					mxdate = (mydate.getDate()+'/'+(mydate.getMonth()+1)+'/'+mydate.getFullYear());
				}else if(design[11]=='2'){
					mxdate = (mydate.getDate()+'/'+(mydate.getMonth()+1)+'/'+mydate.getFullYear()+' '+mydate.getHours()+':'+mydate.getMinutes());
				}else if(design[11]=='3'){
					mxdate = (mydate.toLocaleString()+'');
					mxdate = mxdate.substring(0,mxdate.length-9)
				}else if(design[11]=='4'){
					mxdate = (mydate.toLocaleString()+'');
					mxdate = mxdate.substring(0,mxdate.length-3)
				}
				if(design[34]=='0'){
					add_dato0 = '<DIV ALIGN=left>'+mxdate+'</DIV>';
				}else if(design[34]=='1'){
					add_dato0 = '<DIV ALIGN=right>'+mxdate+'</DIV>';
				}else if(design[34]=='2'){
					add_dato1 = '<DIV ALIGN=left>'+mxdate+'</DIV>';
				}else if(design[34]=='3'){
					add_dato1 = '<DIV ALIGN=right>'+mxdate+'</DIV>';
				}
			}
			b='<TABLE>'
				 +'<TR>'
					 +rgt_side
					 +'<TD VALIGN=top WIDTH="99%">'
						 +'<TABLE'+contable_pad+' CELLSPACING=0>'
							 +'<TR>'
								 +'<TD STYLE="'+ttl_des+'">'+js_news[a][6]+'</TD>'
							 +'</TR>'
							 +'<TR>'
								 +'<TD STYLE="'+body_des+'">'+add_dato0+add_contpix_top+js_news[a][8]+add_contpix_bottom+add_dato1+'</TD>'
							 +'</TR>'
							 +'<TR>'
								 +'<TD>'
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
									 +'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
								 +'</TD>'
							 +'</TR>'
						 +'</TABLE>'
					 +'</TD>'
					 +lft_side
				 +'</TR>'
			 +'</TABLE>'
		}else{
			b = '<TABLE'+contable_pad+' CELLSPACING=0>'+b+nav_table+'</TABLE>'
		}
		document.getElementById('gnews').innerHTML=b;
	}
	function get_gnews(){
		a=' ' + location.href
		if(a.search('#id=')>-1){
			b=a.substring(a.search('#id=')+4)
		}else{
			b=0
		};
		gnews(b,0);	
	}

