// Norway-specific scripts to be available on all pages (script included in all framwork files)
// ---------------------------------------------------------------------------------------------

function addJavascript(jsname,pos) {
var th = document.getElementsByTagName(pos)[0];
var s = document.createElement('script');
s.setAttribute('type','text/javascript');
s.setAttribute('src',jsname);
th.appendChild(s);
} 

//Use the following for include stuff. If client has no javascript none of these will be included, but that should be ok.
addJavascript('/Scripts/Country/NO/jquery-1.3.2.min.js','head');
addJavascript('/Scripts/Country/NO/flowplayer-3.1.4.min.js','head');

//VDA stuff
//addJavascript('/Scripts/vdafiles/js/3dparty/prototype-1.6.0.3.js', 'head');
//addJavascript('/Scripts/vdafiles/js/3dparty/scriptaculous.js?load=effects,dragdrop', 'head');
//addJavascript('/Scripts/vdafiles/js/3dparty/swfobject.js', 'head');
//addJavascript('/Scripts/vdafiles/js/di_loader.js?mode=cda?mods=swfemotion', 'head');

function CountrySpecificJS()
{

flowplayer("div.flowplayer", "/swf/no/flowplayer.commercial-3.1.4.swf", {key: '#$4973bad5b19a98440da', canvas: {backgroundColor: "transparent"},
                plugins: { 
                  controls: { 
                    all:false, 
                    scrubber:true, 
                    play:true, 
                    mute:true, 
                    bufferColor: '#849abc', 
                    progressColor: '#46679b',             
                    buttonColor: '#1a171b', 
                    buttonOverColor: '#636164', 
                    tooltipColor: '#46679b', 
                    height: 25, 
                    autoHide: 'always',             
                    width: '98%',  
                    bottom: 5, 
                    left: '50%', 
                    borderRadius: 5
                  }
                }
              });

};
