/******************************************
** Global variables (or how I came stop worrying and love spaghetti coding)
*******************************************/
var hasTeikningar = false; //set to true inside client if applicable
var displayJaLink = false; //set to true inside client if applicable

//Util Functions that we need before [client].js and common.js are loaded
function injectCSS(url)
{
    var headID = document.getElementsByTagName("head")[0];         
    var cssNode = document.createElement('link');
        cssNode.type = 'text/css';
        cssNode.rel = 'stylesheet';
        cssNode.href = url;
        cssNode.media = 'screen';
    headID.appendChild(cssNode);
 }
 
 function injectJS(url)
 {
    var headID = document.getElementsByTagName("head")[0];         
    var newScript = document.createElement('script');
        newScript.type = 'text/javascript';
        newScript.src = url;
    headID.appendChild(newScript)   
 }
