   /* define your project path here */

   var protocol =  (("https:" == document.location.protocol) ? "https://" : "http://");

   if(window.location.hostname == "192.168.0.230" || window.location.hostname == "localhost")    
      var serverLocation = protocol + window.location.hostname+"/TrinidadandTobago/";
    else                                               
       var serverLocation = protocol + "mosaictt.com";



   var SITEROOT = serverLocation;
   var SITECSS = serverLocation + "/templates/default/css";
   var SITEJS = serverLocation + "/js";
   var SITEIMG = serverLocation + "/templates/default/images/";

   /*
   # do not change or update this function
   */
   function loadjscssfile(filename,filetype){
      if (filetype == "js"){ //if filename is a external JavaScript file
         document.write("<script src='" + SITEJS + "/" + filename + "' type='text/javascript'></script>");
      }
      else if (filetype == "css"){ //if filename is an external CSS file
         document.write("<link href='" + SITECSS + "/" + filename + "' type='text/css' rel='stylesheet'>");
      }
   }

   

   function siteBackgroundImageAndColor(landing){
      $.get(SITEROOT+"/background.php?landing="+landing,'',function(data){
         //$("#main-wrapper").css({ background:data.backgroundColor+" url("+SITEROOT+"/uploads/city/"+data.backgroundImage+") center 40px no-repeat" });
         if(data.backgroundColor || data.backgroundImage)
         {
            $("#mainbgdiv").css({ background:data.backgroundColor+" url("+SITEROOT+"/uploads/city/"+data.backgroundImage+") "+data.backgroundImageRepeatX+" center 84px"});
         }else
         {
            $("#mainbgdiv").css({ background:"#f1eff0 url("+SITEROOT+"/templates/default/images/mainbg.jpg) no-repeat center 84px"});
         }

      },'json');
   }

