document.write('<scr'+'ipt type="text/javascript" src="scripts/js/jquery.preloadCSS.js" ></scr'+'ipt>');

/* preloader */
(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
	var args_len = arguments.length;
	for (var i = args_len; i--;) {
	  var cacheImage = document.createElement('img');
	  cacheImage.src = arguments[i];
	  cache.push(cacheImage);
	}
  }
})($);

$(document).ready(function(){
						   
  /* png fix */
  $(document).pngFix();
  /* preload css images */
  $.preloadCssImages();
  /* router stuff */
  $("ul.topnav li a").hover(function() {
    $(this).parent().find("ul.subnav").slideDown('slow').show();
	$(this).parent().hover(function() {}, function(){
      $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
    });
  }, function(){});

    
});
