function ShowLargeVideo(imageId, width, height, videoID, refererPageId) {
  if ($.browser.msie) {
    // ie sendevent doesn`t work at the moment
    if(thisMovie(videoID).sendEvent) {
      thisMovie(videoID).sendEvent('stop');
    }
  } else {
    thisMovie(videoID).sendEvent('stop');
  }
  window.open('/index.php?pagedef=showvideo&id='+imageId+'&width='+width+'&height='+height+'&refererPageId='+refererPageId, '_blank','width='+width+',height='+height+',resizable=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no');
}

// This is a javascript handler for the player and is always needed.
function thisMovie(movieName) {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    return window[movieName];
  } else {
    if(document[movieName].length != undefined) return document[movieName][1];
    return document[movieName];
  }
};

// calls this method to init antispam. thickbox etc.
function GlobalAjaxInit()
{
  tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
	
	DoAntiSpam();
}