$(document).ready(function() {
	isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
    if(isXPSP2) sp2init();
    
  $("body").click(function() {
    download();
    return false; 
  });
});

jQuery.fn.my_hide = function() { return this.css({visibility:"hidden"});}
jQuery.fn.my_show = function() {return this.css({visibility:"visible"});}
jQuery.fn.my_toggle = function() {if(this.css("visibility")=="hidden") {this.my_show();	} else {	this.my_hide();}}

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

$.preloadImages("img/001.gif");
$.preloadImages("cb.gif");