function setBackgroundImage()

{
if ((screen.width <= 640) && (screen.height <= 480)) {
	document.body.style.backgroundImage ="url(images/bg_480.jpg)";
}

else if ((screen.width <= 800) && (screen.height <= 600)) {
	document.body.style.backgroundImage="url(images/bg_600.jpg)";

}

else if ((screen.width <= 1024) && (screen.height <= 768)) {
	document.body.style.backgroundImage="url(images/bg_768.jpg)";

}


else if ((screen.width <= 1280) && (screen.height <= 1024)) {
	document.body.style.backgroundImage="url(images/bg_1024.jpg)";
}
else {
	document.body.style.backgroundImage="url(images/bg_1080.jpg)";
}

}


function openwindow(url,nimi,par){
	window.open(url,nimi,par)
 }

function showAndHide(theId)
{
   var el = document.getElementById(theId)

   if (el.style.display=="none")
   {
      el.style.display="block"; //show element
   }
   else
   {
      el.style.display="none"; //hide element
   }
}

function puhelin(theId)
{
var el1 = document.getElementById("puhelin")
var el2 = document.getElementById("puhelin2")
	if (theId == "puhelin")
	{
	el1.style.display="block";
	el2.style.display="block";
	}
	else
	{
	el1.style.display="none";
	el2.style.display="none";
	}
	
}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25184712-3']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

