

var vdag = new Array("S&ouml;ndag ","M&aring;ndag ","Tisdag ","Onsdag ","Torsdag ","Fredag ","L&ouml;rdag ");
var manad = new Array(" januari "," februari "," mars "," april "," maj "," juni "," juli "," augusti "," september "," oktober "," november "," december ");
var idag = new Date();
idag = new Date();

function veckodag(){
if (idag.getDay() == 0) {
document.write(" S&ouml;ndag "+  idag.getDate() +  manad[idag.getMonth()] );
}
else {
document.write(vdag[idag.getDay()]  +  idag.getDate()+ manad[idag.getMonth()] );
}
}

 function mtidning() {
props=window.open('http://www.bigardens.se/gbf/pdf/varen2010.pdf', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=0, left = 100, top = 100');
}
  function medlem() {
props=window.open('http://www.bigardens.se/sgbf/checkuser.asp', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, height=800, left = 100, top = 100');
}
   function karta() {
props=window.open('karta.html', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=500, height=200 left = 100, top = 100');
}
 function verksamhet09() {
props=window.open('verksamh2009.html', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=0, width=800, height=800 left = 100, top = 100');
}

function bitillsyn() {
props=window.open('http://www.lansstyrelsen.se/skane', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800 height=800, left = 100, top = 100');
}//www.lansstyrelsen.se/cgi-bin/MsmGo.exe?grab_id=0&page_id=77199&query=biodling&hiword=BIODLARE%20BIODLINGAR%20BIODLINGEN%20BIODLINGENS%20BIODLINGS%20biodling%20
function klipp() {
props=window.open('http://www.goingebiodlare.se/klippbok.html', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800, left = 100, top = 100');
}
function popUp5() {
props=window.open('http://www.bigardens.se/gbf/pdf/nsk23aug07.pdf', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800 height=800, left = 100, top = 100');
}
function biskola() {
props=window.open('http://hem.bredband.net/tuunur/daggen/', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800 height=800 left = 100, top = 100');
}
function mozilla() {
props=window.open('http://www.mozilla-europe.org/sv/firefox/', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800 height=800, left = 100, top = 100');
}
function opera() {
props=window.open('http://www.opera.com/download/', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function safari() {
props=window.open('http://www.apple.com/se/safari/download/', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function google() {
props=window.open('http://www.google.com/chrome', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function ncare() {
props=window.open('http://www.ncare.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function quinnor() {
props=window.open('http://www.biodlarna.se/website1/1.0.1.0/292/1/', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=1000 left = 100, top = 100');
}

function distriktet() {
props=window.open('http://www.biodlarna.se/website1/1.0.1.0/441/1/', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=1000 left = 100, top = 100');
}
function openHemsida() {
props=window.open('http://www.bigardens.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function opengbfnatur() {
props=window.open('http://www.gbfnatur.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbi() {
props=window.open('http://www.assertorpsvaxen.com', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbi1() {
props=window.open('http://www.biodlarna.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbi2() {
props=window.open('http://www.biodlingsforetagarna.nu', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbi3() {
props=window.open('http://www.buckfast.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbi4() {
props=window.open('http://www.svenskbiavel.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbi5() {
props=window.open('http://www.bisidan.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbf1() {
props=window.open('http://www.hastvedabf.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openbf2() {
props=window.open('http://www.hassleholmsbiodlare.net', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}

function openbf3() {
props=window.open('http://www.sosdalabf.dinstudio.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
  function openbf4() {
props=window.open('http://www.osbybiodlare.interglobalart.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}

function openHemsida1() {
props=window.open('http://www.nedanback.se', 'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=1000, height=800 left = 100, top = 100');
}
function openClassicFlower() {
props=window.open('http://www.classicflower.se',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function Rikssem2010() {
props=window.open('http://www.goingebiodlare.se/pdf/riksseminarium2010.pdf',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function recept() {
props=window.open('pdf/receptgbf2011.pdf',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=1200 left = 100, top = 100');
}
function Tips() {
props=window.open('http://www.ur.se/play/157502',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function Tips1() {
props=window.open('http://www.youtube.com/watch?v=Oq1kBJxCaDQ',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function Tips2() {
props=window.open('http://www.youtube.com/watch?v=bqm8hL0J6BA',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function Tips3() {
props=window.open('http://www.youtube.com/watch?v=mu74kq95OUw',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}

function Tips4() {
props=window.open('http://www.youtube.com/watch?v=TPHKlXr9-yg',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function Tips5() {
props=window.open('http://www.youtube.com/watch?v=0Tpr_TsnIbg&feature=related',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
function Tips6() {
props=window.open('http://www.youtube.com/watch?v=_oJmemdX1nw&feature=related',  'poppage', 'toolbars=1, scrollbars=1, location=1, statusbars=1, menubars=1, resizable=1, width=800, height=800 left = 100, top = 100');
}
//http://www.youtube.com/watch?v=bqm8hL0J6BA    http://www.youtube.com/watch?v=mu74kq95OUw  http://www.youtube.com/watch?v=TPHKlXr9-yg
//drottningodling  http://www.youtube.com/watch?v=0Tpr_TsnIbg&feature=related   http://www.youtube.com/watch?v=_oJmemdX1nw&feature=related
//*******Bildf&ouml;rstoringen************************	
	function storBild()
	
{

		var bildSrc=this.src;
			//alert(bildSrc);  //r&auml;tt bild h&auml;r Nu ska jag f&ouml;rs&ouml;ka ta bort  ".jpg" f&ouml;r att sen sammanfoga till bilden _Big.jpg
		var cutpoint=bildSrc.lastIndexOf(".");
				//alert(cutpoint);
				nyBild = bildSrc.substr(0,cutpoint);
					//alert(nyBild);
				nyBild=nyBild+"_big.jpg";
				//alert(nyBild);
    		window.open(nyBild, 'newwin', 'width=800, height=700');

		}
//*****slut bildf&ouml;rstoringen**************
function dropdownmeny() {

 datum= new Date();
 datum.setTime(datum.getTime()+(1000*60*60*24*31));
//alert("Din cookie g&ringl;r ut datumet: "+datum); 

var x = document.menyform.listmeny.options[document.menyform.listmeny.selectedIndex].index;

if ( x == 0)
{

document.cookie="layout=goingebf2012.css;expires="+datum.toGMTString();
document.getElementById("design").href="goingebf2012.css";
}
else if ( x == 1)
{
document.cookie="layout=goingebf2012.css;expires="+datum.toGMTString();
document.getElementById("design").href="goingebf2012.css";

}
else if ( x == 2)
{
document.cookie="layout=goingebf1200.css;expires="+datum.toGMTString();
document.getElementById("design").href="goingebf1200.css";

}
else if ( x == 3)
{
document.cookie="layout=goingebfsvart.css;expires="+datum.toGMTString();
document.getElementById("design").href="goingebfsvart.css";

}


else if ( x == 4)
{
document.cookie="layout=goingebf1000.css;expires="+datum.toGMTString();
document.getElementById("design").href="goingebf1000.css";

}

else if ( x == 5)
{
document.cookie="layout=goingebf1000a.css;expires="+datum.toGMTString();
document.getElementById("design").href="goingebf1000a.css";

}
else if ( x == 6)
{
document.cookie="layout=nopicture.css;expires="+datum.toGMTString();
document.getElementById("design").href="nopicture.css";

}
else if ( x == 7)
{
document.cookie="layout=no.css;expires="+datum.toGMTString();
document.getElementById("design").href="no.css";

}

}

function dropdownmeny1() {


var x = document.menyform.listmeny.options[document.menyform.listmeny.selectedIndex].index;

if ( x == 0)
{


document.getElementById("design").href="goingebf2012.css";
}
else if ( x == 1)
{

document.getElementById("design").href="goingebf2012.css";

}
else if ( x == 2)
{

document.getElementById("design").href="goingebf1200.css";

}
else if ( x == 3)
{

document.getElementById("design").href="goingebfsvart.css";

}
else if ( x == 4)
{

document.getElementById("design").href="goingebf1000.css";

}

else if ( x == 5)
{

document.getElementById("design").href="goingebf1000a.css";

}
else if ( x == 6)
{

document.getElementById("design").href="nopicture.css";

}
else if ( x == 7)
{

document.getElementById("design").href="no.css";

}

}


//*******************
function init()

{
			document.getElementById('hide').style.visibility='visible' ;
              document.getElementById('hide1').style.visibility='visible' ;
			  
			//{
				//var r=confirm("Accepterar du cookies? OK för ja eller Avbryt för nej");
					//if (r==true)
					//{
					//alert("You pressed OK!");
					//{nyDesign=document.getElementById('hide');
           // nyDesign.onchange=dropdownmeny;}
			//		}
			//		else
				//		{
						
						//alert("You pressed Cancel!");
				//		nyDesign=document.getElementById('hide');
				//		nyDesign.onchange=dropdownmeny1;
						//}
						//}

			
			//{alert("Accepterar du cookies (kakor)?");}
			//if confirm
			//byta design p&ringl; sidan
			{nyDesign=document.getElementById('hide');
           nyDesign.onchange=dropdownmeny;
		   }
			//else
			//{nyDesign.onchange=dropdownmeny1;}
			
	//hitta kakan*****************************************************************			  
			  
	var crumbs = document.cookie.split('; ');		//Delarna delas m.a.p ; tecknet.
for (var i in crumbs) {  						//f&ouml;r att g&ringl; igenom alla smulor(delar) m&ringl;ste vi ha en loop.
   var crumbName = crumbs[i].split('=')[0];		//Splitfunktionen anv&auml;nds f&ouml;r att separera namn & v&auml;rde vid = tecken.
   var crumbValue = crumbs[i].split('=')[1];	
													//alert(i);
													//alert(crumbName);
													//alert(crumbValue);
   if (crumbName =="layout")
  {
													// alert("hej p&ringl; daj");
   document.getElementById("design").href=crumbValue;
												//alert(crumbValue + "igen");
   }
   
   
   
}

		  
			  
		
	//bildf&ouml;rstoringen ************************************************bildf&ouml;rstoringen
		{
				
			var items=document.getElementsByTagName("img");
				var length = items.length;
				
				for (i=0;i<length;i++)
		{
					//alert(i);
					if (items[i].className=="liten")
					

											
						items[i].onclick=storBild;
											                     



						

		}
		}
}

//***************************

//********************************
window.onload = init;

