function s2w_alpha(elem,opacityAsInt) { var opacityAsDecimal = opacityAsInt; if (opacityAsInt > 100) opacityAsInt = opacityAsDecimal = 100; else if (opacityAsInt < 0) opacityAsInt = opacityAsDecimal = 0; opacityAsDecimal /= 100; if (opacityAsInt < 1) opacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0 try { elem.style.opacity = (opacityAsDecimal); elem.style.filter = "alpha(opacity=" + opacityAsInt + ")"; } catch (err) { } } function s2w_hover(obj) { s2w_alpha(obj,100); } function s2w_background(obj) { s2w_alpha(obj,opacity); } function s2w_more() { document.getElementById('s2w_more').style.display='block'; setTimeout("document.getElementById('s2w_more').style.display='none';",10000); } function str_replace(search, replace, subject) { var s = subject; var ra = r instanceof Array, sa = s instanceof Array; var f = [].concat(search); var r = [].concat(replace); var i = (s = [].concat(s)).length; var j = 0; while (j = 0, i--) { if (s[i]) { while (s[i] = (s[i]+'').split(f[j]).join(ra ? r[j] || "" : r[0]), ++j in f){}; } } return sa ? s : s[0]; } function urlencode( str ) { return encodeURIComponent(str); } var services='Proslijedi na Share 2 WebProslijedi na FacebookProslijedi na Twitter'; services=str_replace('[title]',encodeURIComponent(document.title),services); services=str_replace('[url]',encodeURIComponent(window.location),services); var opacity='80'; var s2w = "
"; s2w +=''; s2w += "
"; s2w += services; s2w+="
"; document.write(s2w);