document.write(''); var WhiteSignTimer = new Array(); var WhiteSigns = new Array(); function WhiteSign(){ try { if(document.getElementsByTagName('BODY').length == 0) document.write(''); var sign = document.createElement('div'); sign.id = 'whitesign'+WhiteSigns.length; var id = 'whitesign'+WhiteSigns.length; sign.style.position = "absolute"; sign.style.width = "100px"; sign.style.height = "50px"; sign.style.cursor = "pointer"; if(parseInt(Math.random()*100) % 6 == 0) sign.style.backgroundImage = "url(http://weblogs.trancedive.com/widgets/images/sunsign.png)"; else sign.style.backgroundImage = "url(http://weblogs.trancedive.com/widgets/images/whitesign.png)"; sign.style['-webkit-transition-property'] = "all"; sign.style['-webkit-transition-duration'] = "1.0s"; sign.style['-webkit-transition-timing-function'] = "ease-in-out"; sign.style.transitionProperty = "all"; sign.style.transitionDuration = "1.0s"; sign.style.transitionTimingFunction = "ease-in-out"; sign.style.transform = "rotate("+parseInt(Math.random()*360)+"deg)"; sign.style["-webkit-transform"] = "rotate("+parseInt(Math.random()*360)+"deg)"; var h = (Math.max.apply( null, [document.body.clientHeight , document.body.scrollHeight, document.documentElement.scrollHeight, document.documentElement.clientHeight] ))-50; var w = (Math.max.apply( null, [document.body.clientWidth , document.body.scrollWidth, document.documentElement.scrollWidth, document.documentElement.clientWidth] ))-100; sign.style.top = parseInt(Math.random()* h) + "px"; sign.style.left = parseInt(Math.random()* w) + "px"; sign.className = "whitesign_disabled"; sign.onclick = function(){ this.className = "whitesign_disabled"; clearInterval(WhiteSignTimer[this.id]); } sign.onmouseover = function(){ if(parseInt(Math.random()* 10) % 5 == 0){ this.className = "whitesign_disabled"; clearInterval(WhiteSignTimer[this.id]); } } document.body.appendChild(sign); WhiteSignTimer[id] = setInterval(function(){ if(document.getElementById(id).className == "whitesign_animate") document.getElementById(id).className = "whitesign"; else document.getElementById(id).className = "whitesign_animate"; },2000); } catch(e){ } } for(var i=0;i