/** * Initiation */ var loadedCssComponents = new Array(); var css_loader_tag = document.getElementById('css_loader').src; var css_to_load = new Array(); var base_url = ""; /** * Reading GET string */ css_loader_tag = css_loader_tag.split("?"); css_to_load = css_loader_tag[1].split("&"); base_url = css_loader_tag[0].replace("loader.js", ""); if (css_to_load.length > 0) { loadCssComponent(css_to_load); } /** * Functions */ function loadCssComponent(component, media) { if (media == undefined) {media = "screen";} if (is_array(component)) { for(var i=0; i