/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "preloadCssImages"
 * by Scott Jehl, scott@filamentgroup.com
 * http://www.filamentgroup.com
 * reference article: http://www.filamentgroup.com/lab/update_automatically_preload_images_from_css_with_jquery/
 * demo page: http://www.filamentgroup.com/examples/preloadImages/index_v2.php
 * 
 * Copyright (c) 2008 Filament Group, Inc
 * Dual licensed under the MIT (filamentgroup.com/examples/mit-license.txt) and GPL (filamentgroup.com/examples/gpl-license.txt) licenses.
 *
 * Version: 2.0, 06.04.2008
 * Changelog:
 * 	02.20.2008 initial Version 1.0
 *  06.04.2008 Version 2.0 : removed need for any passed arguments. Images load from any and all directories.
 * --------------------------------------------------------------------
 */
jQuery.preloadCssImages=function(){var C=[];var D=0;var I=document.styleSheets;for(var G=0;G<I.length;G++){var M="";var A=(I[G].href)?I[G].href:"window.location.href";var L=A.split("/");L.pop();var B=L.join("/");if(B!=""){B+="/"}try{var J=document.styleSheets[G].cssRules;for(var F=0;F<J.length;F++){M+=J[F].cssText}}catch(K){M+=document.styleSheets[G].cssText}var E=M.match(/[^\(]+\.(gif|jpg|jpeg|png)/g);if(E!=null&&E.length>0&&E!=""){var H=jQuery.makeArray(E);jQuery(H).each(function(){C[D]=new Image();C[D].src=(this[0]=="/"||this.match("http://"))?this:B+this;D++})}}return C};