/*
 *	All rights reserved
 *
 *	Copyrighted by
 *	ACCITOR 2001-2007
 *
 *	By copying this file you will be prosecuted!
 */
		 	document.write('<div name="info" id="info" style="background-color: #FFFFFF; z-index: 9999999; position: absolute; left:0; top:0; width:200; visibility: hidden;"></div>');
 
			var headerArr = new Array();
			var messArr = new Array();
			headerArr[0] = 'Saxn&auml;s GK - Live';
			messArr[0] = 'Bilden kommer fr&aring;n v&aring;r webbkamera. Bilden uppdateras en g&aring;ng i minuten.';
			headerArr[1] = 'Meddelanden';
			messArr[1] = 'H&auml;r finner du aktuell information som vi verkligen vill framh&auml;va.';
			headerArr[2] = 'Senast uppdaterad';
			messArr[2] = 'Om du klickar p&aring; datumet s&aring; kan du se vad som senast uppdaterats!';
			headerArr[3] = 'Kalendern';
			messArr[3] = 'H&auml;r finner du kalendern f&ouml;r 7 dagar fram&aring;t.';
			headerArr[4] = 'Nyheter';
			messArr[4] = 'H&auml;r finner du aktuella nyheter.';
			headerArr[5] = 'Bra l&auml;nkar';
			messArr[5] = 'H&auml;r finner du bra l&auml;nkar f&ouml;r dig som golfar p&aring; Saxn&auml;s.';
			headerArr[6] = 'Min golf.se';
			messArr[6] = 'H&auml;r kan du logga in direkt till "Min golf.se"';
			headerArr[7] = 'Din slope';
			messArr[7] = 'V&auml;lj k&ouml;n, tee och skriv in ditt hcp s&aring; r&auml;knas din slope fram f&ouml;r Saxn&auml;s golfbana.';
			headerArr[8] = 'Medlemskap';
			messArr[8] = 'H&auml;r kan du ans&ouml;ka om medlemskap direkt p&aring; webben fr&aring;n 880 kr per &aring;r f&ouml;r seniorer.';
			headerArr[9] = 'Tips';
			messArr[9] = 'H&auml;r finner du aktuella tips om webbplatsen.';
			headerArr[10] = 'Webbfr&aring;gan';
			messArr[10] = 'L&auml;gg din r&ouml;st h&auml;r. Webbfr&aring;gan uppdateras med j&auml;mna mellanrum och dryftar aktuella fr&aring;gor inom golfens v&auml;rld.';
			headerArr[11] = 'Nyhetsbrevet';
			messArr[11] = 'H&aring;ll dig uppdaterat om vad som h&auml;nder p&aring; Saxn&auml;s genom att anm&auml;la din e-postadress h&auml;r.';
			headerArr[12] = 'Tyska';
			messArr[12] = 'Visar webbsidan p&aring; tyska!';
			headerArr[13] = 'Svenska';
			messArr[13] = 'Visar webbsidan p&aring; svenska!';
			headerArr[14] = 'Senaste uppdateringar';
			messArr[14] = 'H&auml;r kan du se n&auml;r senaste uppdatering skett, vad som uppdaterats och av vem.';
			headerArr[15] = 'Nyhetsbrevanm&auml;lan';
			messArr[15] = 'Om du anm&auml;ler din e-postadress h&auml;r kommer du kunna h&aring;lla dig uppdaterad om vad som h&auml;nder p&aring; Saxn&auml;s.';
			headerArr[16] = 'Hitta hit';
			messArr[16] = 'V&auml;gbeskrivning till Saxn&auml;s golfbana.';
			headerArr[17] = 'Hole in one';
			messArr[17] = 'H&auml;r finner du de som har gjort hole in one p&aring; Saxn&auml;s golfbana.';
			headerArr[18] = 'Bildarkiv';
			messArr[18] = 'H&auml;r finner du bilder fr&aring;n Saxn&auml;s golfbana.';
			headerArr[19] = 'Styrelsen';
			messArr[19] = 'Detta &auml;r styrelsen f&ouml;r Saxn&auml;s golfklubb.';
			headerArr[20] = 'Kansliet';
			messArr[20] = 'Kontaktinformation f&ouml;r kansliet.';
			headerArr[21] = 'Kontakta oss';
			messArr[21] = 'Kontakta oss via e-post.';
			headerArr[22] = 'Priser och avgifter';
			messArr[22] = 'H&auml;r finner du priser och avgifter f&ouml;r 2007.';
			headerArr[23] = 'Bokningsregler';
			messArr[23] = 'H&auml;r finner du bokningsregler.';
			headerArr[24] = 'Greenfee till 2007-04-10';
			messArr[24] = 'H&auml;r finner du greenfee till 2007-04-10.';
			headerArr[25] = 'Banguide';
			messArr[25] = 'H&auml;r finner du banguiden f&ouml;r Saxn&auml;s golfbana.';
			headerArr[26] = 'Banfakta';
			messArr[26] = 'H&auml;r finner du banfakta f&ouml;r Saxn&auml;s golfbana.';
			headerArr[27] = 'Slope';
			messArr[27] = 'H&auml;r finner du slopen f&ouml;r Saxn&auml;s golfbana.';
			headerArr[28] = 'Reklampaket';
			messArr[28] = 'H&auml;r finner du reklampaket f&ouml;r Saxn&auml;s golfbana.';
			headerArr[29] = 'Program';
			messArr[29] = 'H&auml;r finner du t&auml;vlingsprogrammet f&ouml;r 2007.';
			headerArr[30] = 'Bes&ouml;ksstatistik';
			messArr[30] = 'H&auml;r kan du se hur m&aring;nga bes&ouml;k denna hemsida har per dag och m&aring;nad.';
			headerArr[31] = 'Bertil Garpenholt';
			messArr[31] = 'Presentation av vår Pro';
			headerArr[32] = 'Hitta hit';
			messArr[32] = 'V&auml;gbeskrivning till Saxn&auml;s GK';
			headerArr[33] = 'Bo n&auml;ra banan';
			messArr[33] = 'H&auml;r finner du l&auml;nkar till l&auml;mpliga hotell, campingar mm.';
			headerArr[34] = 'Din slope';
			messArr[34] = 'V&auml;lj k&ouml;n, tee och skriv in ditt hcp s&aring; r&auml;knas din slope fram f&ouml;r Saxn&auml;s golfbana.';
			headerArr[35] = 'Medlemskap';
			messArr[35] = 'H&auml;r kan du ans&ouml;ka om medlemskap direkt p&aring; webben fr&aring;n 880 kr per &aring;r f&ouml;r seniorer.';
			headerArr[36] = 'Golfv&auml;der';
			messArr[36] = 'V&auml;dret f&ouml;r Saxn&auml;s GK.';
			headerArr[37] = 'Kalendern';
			messArr[37] = 'H&auml;r finner du kalendern.';
			headerArr[38] = 'Webcam';
			messArr[38] = 'Webbkamera över Saxnäs GK.';
			headerArr[39] = 'Onsdagsgolfen';
			messArr[39] = 'Populär tävling som sträcker sig över hela säsongen!';
			headerArr[40] = 'Stäng';
			messArr[40] = 'Om du klickar här stängs bilden!';
			headerArr[41] = 'Styrelsen infomerar';
			messArr[41] = 'H&auml;r finner du information fr&aring;n styrelsen!';
			headerArr[42] = 'Kommittér';
			messArr[42] = 'V&aring;ra olika kommittér!';


			var IE = document.all?true:false;
			if(!IE)
				document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove = getMouseXY;
		
			var tempX = 0;
			var tempY = 0;
		
			function getMouseXY(e)
			{
				if(IE)
				{
					tempX = event.clientX + document.body.scrollLeft;
					tempY = event.clientY + document.body.scrollTop;
				}
				else
				{
					tempX = e.pageX;
					tempY = e.pageY;
				} 
			}
		
			function showinfo(id1, myX, myY)
			{
				id2 = messArr[id1];
				id1 = headerArr[id1];
				document.getElementById('info').style.left = tempX + myX;
				document.getElementById('info').style.top = tempY + myY;
				document.getElementById('info').innerHTML = '<table cellspacing="0" cellpadding="0" width="200"><tr><td height="1" bgcolor="#000" colspan="100"></td></tr><tr><td width="1" bgcolor="#000"></td><td class="header" height="22" bgcolor="#A4001D">&nbsp;' + id1 + '</td><td width="1" bgcolor="#000000"></td></tr><tr><td height="1" bgcolor="#000" colspan="100"></td></tr><tr><td width="1" bgcolor="#000"></td><td><p style="margin:5;"><font>' + id2 + '</font></p></td><td width="1" bgcolor="#000"></td></tr><tr><td height="1" bgcolor="#000" colspan="100"></td></tr></table>';
				document.getElementById('info').style.visibility = 'visible';
			}
			
			function hide()
			{
				document.getElementById('info').style.visibility = 'hidden';
			}
			
			function getSlope()
			{
				var par = 72;
				var slope = 0;
				var tee = "G";
				
				if(!document.getElementById("tee").checked)
					tee = "R";
				
				var gender = "M";
				if(!document.getElementById("gender").checked)
					gender = "K";
				
				var hcp = document.getElementById("hcp").value.replace(/,/g,".");
				
				if(hcp == "" || isNaN(hcp) || parseFloat(hcp) > 36)
				{
					alert("Du måste ange ett giltigt hcp!");
					return false;
				}
				
				if(gender == "M")
				{
					if(tee == "G")
					{
						cr = 71.8;
						slope = 131;
					}
					else
					{
						cr = 67.9;
						slope = 124;
					}
				}
				else
				{
					if(tee == "G")
					{
						cr = 77.4;
						slope = 138;
					}
					else
					{
						cr = 72.6;
						slope = 128;
					}
				}

				var strokes = (cr - par) + ((hcp * slope)/113);
				strokes += 0.5;
				
				alert("Du erhåller " + parseInt(strokes) + " slag!");
				
				return false;
			}

			function getSlopeDE()
			{
				var par = 72;
				var slope = 0;
				var tee = "G";
				
				if(!document.getElementById("tee").checked)
					tee = "R";
				
				var gender = "M";
				if(!document.getElementById("gender").checked)
					gender = "K";
				
				var hcp = document.getElementById("hcp").value.replace(/,/g,".");
				
				if(hcp == "" || isNaN(hcp) || parseFloat(hcp) > 36)
				{
					alert("Sie müssen Ihr Hcp eintragen!");
					return false;
				}
				
				if(gender == "M")
				{
					if(tee == "G")
					{
						cr = 71.8;
						slope = 131;
					}
					else
					{
						cr = 67.9;
						slope = 124;
					}
				}
				else
				{
					if(tee == "G")
					{
						cr = 77.4;
						slope = 138;
					}
					else
					{
						cr = 72.6;
						slope = 128;
					}
				}

				var strokes = (cr - par) + ((hcp * slope)/113);
				strokes += 0.5;
				
				alert("Sie haben " + parseInt(strokes) + " Schläge!");
				
				return false;
			}
			
			function openlastupdated(link)
			{
				showSmallWindow( link + "lastupdated.php", 400, 250, 'Senaste uppdateringar', 14, link );
			}
			
			function opennews(id)
			{
				showSmallWindow( "news.php?newsid=" + id + "#" + id, 450, 350, 'Nyheter', 4, "" );
			}

			function openborderinfo(id)
			{
				showSmallWindow( "styrelseinfo.php?borderid=" + id + "#" + id, 450, 350, 'Styrelseinfo', 41, "" );
			}

			function openwebquestion(qid)
			{
				var webquestion = window.open('webquestion/webquestion.php?id='+qid,'webquestion','toolbar=no,height=270,width=630,top=100,left=100,scrollbars=yes,resizable=yes');
				webquestion.focus();
			}

			function showTip()
			{
				showSmallWindow( "tip.php", 350, 175, 'Tips till hemsidan', 9, "" );
			}
			
			function openmemberapplication()
			{
				var memberapp = window.open('memberapplication.php','memberapp','toolbar=no,height=530,width=720,top=100,left=100,scrollbars=yes,resizable=yes');
				memberapp.focus();
			}

			function openmemberapplicationDE()
			{
				var memberapp = window.open('../memberapplication.php','memberapp','toolbar=no,height=530,width=720,top=100,left=100,scrollbars=yes,resizable=yes');
				memberapp.focus();
			}

			function openwebcam()
			{
				showSmallWindow( "webcam.php", 320, 270, 'Webcam', 38, "" );
			}

			function openwebcam2()
			{
				showSmallWindow( "webcam2.php", 320, 270, 'Webcam', 38, "" );
			}

			function readthisfirst()
			{
				showSmallWindow( "readthisfirst.php", 320, 360, 'Inloggning till Min golf.se', 6, "" );
			}
			
			function showCalender()
			{
				showSmallWindow( "showcalender.php", 460, 400, 'Kalender', 37, "" );
			}
			
			function openCalenderInfo(id)
			{
				showSmallWindow( id, 400, 270, 'Kalender', 37, "" );
			}

			function openPicWin(link)
			{
				window.open(link,'Bilder','toolbar=no,height=460,width=600,top=100,left=100,scrollbars=yes,resizable=yes');
			}

			function opennewspren()
			{
				showSmallWindow( "newspren.php", 280, 170, 'Anmälan till nyhetsbrevet', 11, "" );
			}

			function showSingleResult(id, id2, year)
			{
				showSmallWindow( year + "singleresultatonsdagsgolf" + id2 + ".php?id="+id, 400, 300, 'Onsdagsgolfen', 39, "../../" );
			}

			function showSmallWindow( link, w, h, header, id, link2 )
			{
				setSmallWindowSize( w, h );
				document.getElementById('showSmallWindowHeader').innerHTML = '&nbsp;<font class="header">' + header + '</font>';
				document.getElementById('showSmallWindowExplanation').innerHTML = '<img src="' + link2 + 'img/qm.gif" border="0" onmouseover="showinfo(' + id + ',-180,15);" onmouseout="hide();">&nbsp;';

				document.getElementById('opensmallwindow').style.top = document.body.scrollTop;
				document.getElementById('opensmallwindow').style.visibility = 'visible';
				document.getElementById('opensmallwindowframe').src = link;
			}
			
			function setSmallWindowSize( w, h )
			{
				document.getElementById('opensmallwindowframe').width = w;
				document.getElementById('opensmallwindowframe').height = h;
				
				if( w == 0 )
				{
					document.getElementById('opensmallwindow').style.visibility = 'hidden';
					document.getElementById('opensmallwindowframe').src = "";
				}
			}
			
			function closeSmallWindowMessage()
			{
				alert("Klicka på knappen 'Stäng' för att stänga fönstret!");
			}






