function refresh_ads() {
    var iframes = document.getElementsByName('ads-iframe');
    var doc = undefined;
    for (i=0;i<iframes.length;i++) {
        ifr = iframes[i];
        if(ifr.contentDocument){
            doc = ifr.contentDocument;
        } else if(ifr.contentWindow){
            doc = ifr.contentWindow.document;
        } else {
            doc = window.frames[ifr.id].document;
        }
        doc.location.reload();
    }
}

function ps_trackevent(category,action) {
    _gaq.push(['_trackEvent', category, action, 'n/a']);
    refresh_ads();
}
