//dart-id
var d = new Date();
var h = d.getHours();
var m = d.getMinutes();
var s = d.getSeconds();
var ms = d.getMilliseconds();
var timeformatted = h.toString() + m.toString() + s.toString() + ms.toString();  


//Nugg ad
var cName='nugg4solCook';var nSrc='http://sol.nuggad.net/rc?nuggn=1460762001&nuggsid=804124384';var n_pbt='';function rC(){if(!document.cookie)return'';tV=document.cookie;var cs=tV.match(/\s*([^;=])+=([^;]*)/g);var c=null;for(var i=0;i<cs.length;i++){if(cs[i].match(/[^\s=]+/)==cName)c=cs[i].match(/=(.*)/)[1];}
if(!c)return'';return c.replace(/([a-zA-Z]+)([0-9])/g,function(a,s,v){var s0=new String(s[0]);var dia='i';if(s.substr(0,1).toUpperCase()==s.substr(0,1))dia='d';if(s.substr(1,1).toUpperCase()==s.substr(1,1))dia='a';return'n'+dia+'_'+s.toLowerCase()+'='+v+';';});}
n_pbt=rC();

// hockeystick                                                                                                                                                                                                                                                   
function make_hockeystick() {
    document.getElementById('FWheaderAds').className += ' hockeystick';
}

// sticker sizes
function resize_sticker(width, height) {
    if (width != 180  && width != 200) { width = 180; }
    if (height != 500 && height != 800 && height != 1000) { height = 500; }
    if (height != 500) {  // if not we have standard size, so no need to do anything
        var box = document.getElementById('ad_sticker');
        box.style.width = width + 8 + 'px';
        box.style.height = height + 'px';
        $(document).ready(function(){
            $('#ad_sticker .adTitle').css({'margin-left':width+1, 'margin-top':1-height});           
        });
    }
}
