$(document).ready(function()
			{
				$("#sport_pre").hide();
				$("#innen_pre").hide();
				$("#uten_pre").hide();
				$("#data_pre").hide();
				$("#vaer_pre").hide();
				$("#links_pre").hide();
				
				loadSport(1);
				loadInnenriks(10);
				loadUtenriks(13);
				loadData(20);
				loadVaer(26);
				loadLinks(70);
				
				
				$("#sport1").click(function()
				{
					loadSport(1);
				});
				$("#sport2").click(function()
				{
					loadSport(2);
				});
				
				$("#sport3").click(function()
				{
					loadSport(3);
				});
				
				$("#sport4").click(function()
				{
					loadSport(4);
				});
				$("#sport5").click(function()
				{
					loadSport(5);
				});
			
				
				$("#innen1").click(function()
				{
					loadInnenriks(6);
				});
				$("#innen2").click(function()
				{
					loadInnenriks(7);
				});
				$("#innen3").click(function()
				{
					loadInnenriks(8);
				});
				$("#innen4").click(function()
				{
					loadInnenriks(9);
				});
				$("#innen5").click(function()
				{
					loadInnenriks(10);
				});
				
				
				$("#uten1").click(function()
				{
					loadUtenriks(11);
				});
				$("#uten2").click(function()
				{
					loadUtenriks(12);
				});
				$("#uten3").click(function()
				{
					loadUtenriks(13);
				});
				$("#uten4").click(function()
				{
					loadUtenriks(14);
				});
				$("#uten5").click(function()
				{
					loadUtenriks(15);
				});
				
				
				$("#data1").click(function()
				{
					loadData(16);
				});
				$("#data2").click(function()
				{
					loadData(17);
				});
				$("#data3").click(function()
				{
					loadData(18);
				});
				$("#data4").click(function()
				{
					loadData(19);
				});
				$("#data5").click(function()
				{
					loadData(20);
				});

				$("#vaer1").click(function()
				{
					loadVaer(21);
				});
				$("#vaer2").click(function()
				{
					loadVaer(22);
				});
				$("#vaer3").click(function()
				{
					loadVaer(23);
				});
				$("#vaer4").click(function()
				{
					loadVaer(24);
				});
				$("#vaer5").click(function()
				{
					loadVaer(25);
				});
				$("#vaer6").click(function()
				{
					loadVaer(26);
				});
				$("#vaer7").click(function()
				{
					loadVaer(27);
				});
				$("#vaer8").click(function()
				{
					loadVaer(28);
				});
				$("#vaer9").click(function()
				{
					loadVaer(29);
				});
				$("#vaer10").click(function()
				{
					loadVaer(30);
				});
				$("#vaer11").click(function()
				{
					loadVaer(31);
				});
				$("#vaer12").click(function()
				{
					loadVaer(32);
				});
				$("#vaer13").click(function()
				{
					loadVaer(33);
				});
				$("#vaer14").click(function()
				{
					loadVaer(34);
				});
				$("#vaer15").click(function()
				{
					loadVaer(35);
				});
				$("#vaer16").click(function()
				{
					loadVaer(36);
				});
				$("#vaer17").click(function()
				{
					loadVaer(37);
				});
				$("#vaer18").click(function()
				{
					loadVaer(38);
				});
				$("#vaer19").click(function()
				{
					loadVaer(39);
				});
				$("#vaer20").click(function()
				{
					loadVaer(40);
				});
				$("#vaer21").click(function()
				{
					loadVaer(41);
				});
				$("#vaer22").click(function()
				{
					loadVaer(42);
				});
				$("#vaer23").click(function()
				{
					loadVaer(43);
				});
				$("#vaer24").click(function()
				{
					loadVaer(44);
				});
				$("#vaer25").click(function()
				{
					loadVaer(45);
				});
				$("#vaer26").click(function()
				{
					loadVaer(46);
				});
				$("#vaer27").click(function()
				{
					loadVaer(47);
				});


				$("#links1").click(function()
				{
					loadLinks(70);
				});
				$("#links2").click(function()
				{
					loadLinks(71);
				});
				$("#links3").click(function()
				{
					loadLinks(72);
				});
				$("#links4").click(function()
				{
					loadLinks(73);
				});
				$("#links5").click(function()
				{
					loadLinks(74);
				});
				$("#links6").click(function()
				{
					loadLinks(75);
				});
				$("#links7").click(function()
				{
					loadLinks(76);
				});
				$("#links8").click(function()
				{
					loadLinks(77);
				});
				$("#links9").click(function()
				{
					loadLinks(78);
				});
				$("#links10").click(function()
				{
					loadLinks(79);
				});
				$("#links11").click(function()
				{
					loadLinks(80);
				});
				$("#links12").click(function()
				{
					loadLinks(81);
				});
				$("#links13").click(function()
				{
					loadLinks(82);
				});
				$("#links14").click(function()
				{
					loadLinks(83);
				});
				$("#links15").click(function()
				{
					loadLinks(84);
				});
				$("#links16").click(function()
				{
					loadLinks(85);
				});
				$("#links17").click(function()
				{
					loadLinks(86);
				});
				$("#links18").click(function()
				{
					loadLinks(87);
				});
				$("#links19").click(function()
				{
					loadLinks(88);
				});
				$("#links20").click(function()
				{
					loadLinks(89);
				});
				$("#links21").click(function()
				{
					loadLinks(90);
				});
				$("#links22").click(function()
				{
					loadLinks(91);
				});
				$("#links23").click(function()
				{
					loadLinks(92);
				});

				$('a[rel*=facebox]').facebox({
				})
			});

var pageUrl = new Array();
			pageUrl[1] = "Data/Rss_Feeds/vg-sport.php";
			pageUrl[2] = "Data/Rss_Feeds/db-sport.php";
			pageUrl[3] = "Data/Rss_Feeds/speaker-sport.php";
			pageUrl[4] = "Data/Rss_Feeds/na-sport.php";
			pageUrl[5] = "Data/Rss_Feeds/nrk-sport.php";
			pageUrl[6] = "Data/Rss_Feeds/vg-innenriks.php";
			pageUrl[7] = "Data/Rss_Feeds/db-innenriks.php";
			pageUrl[8] = "Data/Rss_Feeds/tv2-innenriks.php";
			pageUrl[9] = "Data/Rss_Feeds/na-innenriks.php";
			pageUrl[10] = "Data/Rss_Feeds/nrk-innenriks.php";
			pageUrl[11] = "Data/Rss_Feeds/vg-utenriks.php";
			pageUrl[12] = "Data/Rss_Feeds/db-utenriks.php";
			pageUrl[13] = "Data/Rss_Feeds/tv2-utenriks.php";
			pageUrl[14] = "Data/Rss_Feeds/na-utenriks.php";
			pageUrl[15] = "Data/Rss_Feeds/nrk-utenriks.php";
			pageUrl[16] = "Data/Rss_Feeds/itavisen.php";
			pageUrl[17] = "Data/Rss_Feeds/itpro.php";
			pageUrl[18] = "Data/Rss_Feeds/dinside-data.php";
			pageUrl[19] = "Data/Rss_Feeds/digi.php";
			pageUrl[20] = "Data/Rss_Feeds/spillmagasinet.php";			
			pageUrl[21] = "Data/Vaer_Feeds/alta.php";
			pageUrl[22] = "Data/Vaer_Feeds/hammerfest.php";
			pageUrl[23] = "Data/Vaer_Feeds/nordkapp.php";
			pageUrl[24] = "Data/Vaer_Feeds/kirkenes.php";
			pageUrl[25] = "Data/Vaer_Feeds/vardo.php";
			pageUrl[26] = "Data/Vaer_Feeds/tromso.php";
			pageUrl[27] = "Data/Vaer_Feeds/bardufoss.php";
			pageUrl[28] = "Data/Vaer_Feeds/setermoen.php";
			pageUrl[29] = "Data/Vaer_Feeds/finnsnes.php";
			pageUrl[30] = "Data/Vaer_Feeds/harstad.php";
			pageUrl[31] = "Data/Vaer_Feeds/narvik.php";
			pageUrl[32] = "Data/Vaer_Feeds/svolvaer.php";
			pageUrl[33] = "Data/Vaer_Feeds/bodo.php";
			pageUrl[34] = "Data/Vaer_Feeds/saltfjellet.php";
			pageUrl[35] = "Data/Vaer_Feeds/mosjoen.php";
			pageUrl[36] = "Data/Vaer_Feeds/namsos.php";
			pageUrl[37] = "Data/Vaer_Feeds/trondheim.php";
			pageUrl[38] = "Data/Vaer_Feeds/roros.php";
			pageUrl[39] = "Data/Vaer_Feeds/molde.php";
			pageUrl[40] = "Data/Vaer_Feeds/dovrefjell.php";
			pageUrl[41] = "Data/Vaer_Feeds/trysil.php";
			pageUrl[42] = "Data/Vaer_Feeds/hemsedal.php";
			pageUrl[43] = "Data/Vaer_Feeds/sogndal.php";
			pageUrl[44] = "Data/Vaer_Feeds/bergen.php";
			pageUrl[45] = "Data/Vaer_Feeds/stavanger.php";
			pageUrl[46] = "Data/Vaer_Feeds/oslo.php";
			pageUrl[47] = "Data/Vaer_Feeds/kristiansand.php";
			pageUrl[70] = "Data/Links/populaere.php";
			pageUrl[71] = "Data/Links/epost-tjenester.php";
			pageUrl[72] = "Data/Links/nettsamfunn.php";
			pageUrl[73] = "Data/Links/debatt.php";
			pageUrl[74] = "Data/Links/lokalaviser-troms.php";
			pageUrl[75] = "Data/Links/lokalaviser-finnmark.php";
			pageUrl[76] = "Data/Links/lokalaviser-nordland.php";
			pageUrl[77] = "Data/Links/lokalaviser-nord-trondelag.php";
			pageUrl[78] = "Data/Links/lokalaviser-sor-trondelag.php";
			pageUrl[79] = "Data/Links/lokalaviser-aust-agder.php";
			pageUrl[80] = "Data/Links/lokalaviser-vest-agder.php";
			pageUrl[81] = "Data/Links/lokalaviser-hordaland.php";
			pageUrl[82] = "Data/Links/lokalaviser-more-romsdal.php";
			pageUrl[83] = "Data/Links/lokalaviser-rogaland.php";
			pageUrl[84] = "Data/Links/lokalaviser-sogn-fjordane.php";
			pageUrl[85] = "Data/Links/lokalaviser-akershus.php";
			pageUrl[86] = "Data/Links/lokalaviser-buskerud.php";
			pageUrl[87] = "Data/Links/lokalaviser-hedmark.php";
			pageUrl[88] = "Data/Links/lokalaviser-oppland.php";
			pageUrl[89] = "Data/Links/lokalaviser-oslo.php";
			pageUrl[90] = "Data/Links/lokalaviser-telemark.php";
			pageUrl[91] = "Data/Links/lokalaviser-vestfold.php";
			pageUrl[92] = "Data/Links/lokalaviser-ostfold.php";
function loadSport(id)
			{
				if (pageUrl[id].length > 0)
				{
					$("#sport_pre").show();
					$.ajax(
			        {
			            url: pageUrl[id], 
			            cache: false,
			            success: function(message) 
			            {			            	
			                $("#sport_cont").empty().append(message);
			                $("#sport_pre").hide();             
			            }
			        });			        
				}
			}
function loadInnenriks(id)
			{
				if (pageUrl[id].length > 0)
				{
					$("#innen_pre").show();
					$.ajax(
			        {
			            url: pageUrl[id], 
			            cache: false,
			            success: function(message) 
			            {			            	
			                $("#innen_cont").empty().append(message);
			                $("#innen_pre").hide();             
			            }
			        });			        
				}
			}
function loadUtenriks(id)
			{
				if (pageUrl[id].length > 0)
				{
					$("#uten_pre").show();
					$.ajax(
			        {
			            url: pageUrl[id], 
			            cache: false,
			            success: function(message) 
			            {			            	
			                $("#uten_cont").empty().append(message);
			                $("#uten_pre").hide();             
			            }
			        });			        
				}
			}		
function loadData(id)
			{
				if (pageUrl[id].length > 0)
				{
					$("#data_pre").show();
					$.ajax(
			        {
			            url: pageUrl[id], 
			            cache: false,
			            success: function(message) 
			            {			            	
			                $("#data_cont").empty().append(message);
			                $("#data_pre").hide();             
			            }
			        });			        
				}
			}
function loadVaer(id)
			{
				if (pageUrl[id].length > 0)
				{
					$("#vaer_pre").show();
					$.ajax(
			        {
			            url: pageUrl[id], 
			            cache: false,
			            success: function(message) 
			            {			            	
			                $("#vaer_cont").empty().append(message);
			                $("#vaer_pre").hide();             
			            }
			        });			        
				}
			}
function loadLinks(id)
			{
				if (pageUrl[id].length > 0)
				{
					$("#links_pre").show();
					$.ajax(
			        {
			            url: pageUrl[id], 
			            cache: false,
			            success: function(message) 
			            {			            	
			                $("#links_cont").empty().append(message);
			                $("#links_pre").hide();             
			            }
			        });			        
				}
			}

function setHomepage()
{
 if (document.all)
    {
  document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage('http://start.balsfjord.com');
 
    }
    
}