function checkIntresseForm()
{
	var e=document.getElementsByName("from")(0);
	if(e.value=="")
		alert("Du måste ange en epostadress!");
	else
		intrForm.submit();
}
		
function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function correctPNG(img) // correctly handle PNG transparency in Win IE 5.5 or higher.
{
	var imgName = img.src.toUpperCase()
	if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	{
		var imgID = (img.id) ? "id='" + img.id + "' " : "";
		var imgClass = (img.className) ? "class='" + img.className + "' " : "";
		var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
		var imgStyle = "display:inline-block;" + img.style.cssText;
		if (img.align == "left") imgStyle = "float:left;" + imgStyle;
		if (img.align == "right") imgStyle = "float:right;" + imgStyle;
		imgStyle = "cursor:hand;" + imgStyle;

		var strNewHTML = "<span " + imgID + imgClass + imgTitle
		+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
		+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" ;

		img.outerHTML = strNewHTML;

	}
}

function getPageCoordinates (element) { 
  var x = y = 0; 
  do { 
    x+= element.offsetLeft; 
    y += element.offsetTop; 
  } 
  while ((element = element.offsetParent)); 
  return {x: x, y: y+1}; 


} 


function fixpos()
{
	var x, mydiv, img ;
	img = MM_findObj("Logo");
	x = getPageCoordinates(img).x;

	mydiv = MM_findObj("footballdiv");
	if (mydiv.style) mydiv=mydiv.style; 

	mydiv.left = x +440;

}

function whenloaded()
{
	img = MM_findObj("footballimg");
	correctPNG(img);
	fixpos();
}