var rana_switchFlashType = function(productId, newType) {
	var flashDivObj = document.getElementById('flash_container_productId_' + productId);
	if (flashDivObj == null) { return; }
	var flashSrc = "/sitefiles/43/flash/slideshow-" + newType + ".swf?productId=" + productId;
	flashDivObj.innerHTML = "<object type='application/x-shockwave-flash' width='800' height='553' data='"+flashSrc+"'><param name='movie' value='"+flashSrc+"'/></object>";
}

function addEvent(obj, evType, fn, useCapture){
  if (obj.addEventListener){
    obj.addEventListener(evType, fn, useCapture);
    return true;
  } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
  } else {
    alert("Handler could not be attached");
  }
} 
window.onload = function()
{
	if(document.getElementById('flashlink'))
	{
		document.getElementById('flashlink').style.cursor = 'pointer';
		/*document.getElementById('forsideFlash').onclick = function()
		{
			window.location.href = '/kontakt_oss/';
		}*/
		addEvent(document.getElementById('flashlink'), "click", function()
		{
			window.location.href = '/kontakt_oss/';
		});
		addEvent(document.getElementsByTagName('object')[0], "click", function()
		{
			window.location.href = '/kontakt_oss/';
		});
		
	}
}
