jQuery.preloadImages = function() {
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

$(document).ready(function() {
	$.preloadImages("/images/empty.gif", "/images/bg_page.jpg", "/images/btn_photogallery.png", "/images/btn_req_info.png", "/images/btn_search.gif", "/images/btn_videos.png", "/images/logo.gif", "/images/logo_emergency_hotline.gif");

$("img").bind("contextmenu",function(e){
	return false;
});

/*
if ( $("a[rel='zoom']").length > 0 ) || jquery.colorbox.js {
	$("a[rel='zoom']").colorbox();
}
*/
if ( $("script[src='/js/colorbox/jquery.colorbox.js']").length > 0 ) {
	$("a[rel='zoom']").colorbox({opacity:"0.5"});
}

});


function resetVideo(divId) {
  if (typeof(divId)=="string") { divId=document.getElementById(divId); }
  if (divId.innerHTML) {
    org=divId.innerHTML;
    divId.innerHTML='';
    divId.innerHTML=org;
  }
  return false;
}

function playVideo(sourceId, targetId) {
   if (typeof(sourceId)=='string') {sourceId=document.getElementById(sourceId);}
   if (typeof(targetId)=='string') {targetId=document.getElementById(targetId);}
   targetId.innerHTML=sourceId.innerHTML;
   return false;
}