var imageSource_u7u8j7P0F4j1b3e0 = "http://www.ratethatpage.com/c1/u7u8j7P0F4j1b3e0/image.png"; document.getElementById('rating_u7u8j7P0F4j1b3e0').innerHTML+="
"; var TINY={}; function T$(i){return document.getElementById(i);} TINY.box=function(){ var p,m,b,ic,iu,iw,ih,ia,f=0; return{ show:function(c,u,w,h,a,t){ if(!f){ p=document.getElementById('tinybox'); m=document.getElementById('tinymask'); b=document.getElementById('tinycontent'); m.onclick=TINY.box.hide; window.onresize=TINY.box.resize; f=1; } if(!a&&!u){ p.style.width=w?w+'px':'auto'; p.style.height=h?h+'px':'auto'; /*p.style.backgroundImage='none';*/ b.innerHTML=c; }else{ b.style.display='none'; p.style.width=p.style.height='100px'; } this.mask(); ic=c; iu=u; iw=w; ih=h; ia=a; this.alpha(m,1,80,3); if(t){setTimeout(function(){TINY.box.hide();},1000*t);} }, fill:function(c,u,w,h,a){ if(u){ // load a script here => var text="" var head= document.getElementsByTagName('head')[0]; var script= document.createElement('script'); script.type= 'text/javascript'; script.src= c; head.appendChild(script); // call back => TINY.box.psh(text,w,h,a); }else{ this.psh(c,w,h,a); } }, psh:function(c,w,h,a){ if(a){ if(!w||!h){ var x=p.style.width, y=p.style.height; b.innerHTML=c; p.style.width=w?w+'px':''; p.style.height=h?h+'px':''; b.style.display=''; w=parseInt(b.offsetWidth,10); h=parseInt(b.offsetHeight,10); b.style.display='none'; p.style.width=x; p.style.height=y; }else{ b.innerHTML=c; } this.size(p,w,h); }else{ p.style.backgroundImage='none'; } }, hide:function(){ TINY.box.alpha(p,-1,0,3); }, resize:function(){ TINY.box.pos(); TINY.box.mask(); }, mask:function(){ m.style.height=TINY.page.total(1)+'px'; m.style.width=''; m.style.width=TINY.page.total(0)+'px'; }, pos:function(){ var t=(TINY.page.height()/2)-(p.offsetHeight/2); t=t<10?10:t; p.style.top=(t+TINY.page.top())+'px'; p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+'px'; }, alpha:function(e,d,a){ clearInterval(e.ai); if(d==1){ e.style.opacity=0; e.style.filter='alpha(opacity=0)'; e.style.display='block'; this.pos(); } e.ai=setInterval(function(){TINY.box.ta(e,a,d);},20); }, ta:function(e,a,d){ var o=Math.round(e.style.opacity*100); if(o==a){ clearInterval(e.ai); if(d==-1){ e.style.display='none'; e==p?TINY.box.alpha(m,-1,0,2):b.innerHTML/*=p.style.backgroundImage*/=''; }else{ e==m?this.alpha(p,1,100):TINY.box.fill(ic,iu,iw,ih,ia); } }else{ var n=Math.ceil((o+((a-o)*0.5))); n=n==1?0:n; e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')'; } }, size:function(e,w,h){ e=typeof e=='object'?e:T$(e); clearInterval(e.si); var ow=e.offsetWidth, oh=e.offsetHeight, wo=ow-parseInt(e.style.width,10), ho=oh-parseInt(e.style.height,10); var wd=ow-wo>w?0:1, hd=(oh-ho>h)?0:1; e.si=setInterval(function(){TINY.box.ts(e,w,wo,wd,h,ho,hd);},20); }, ts:function(e,w,wo,wd,h,ho,hd){ var ow=e.offsetWidth-wo, oh=e.offsetHeight-ho; if(ow==w&&oh==h){ clearInterval(e.si); /*p.style.backgroundImage='none';*/ b.style.display='block'; }else{ var n; if(ow!=w){n=ow+((w-ow)*0.5); e.style.width=wd?Math.ceil(n)+'px':Math.floor(n)+'px';} if(oh!=h){n=oh+((h-oh)*0.5); e.style.height=hd?Math.ceil(n)+'px':Math.floor(n)+'px';} this.pos(); } } } ;}(); TINY.page=function(){ return{ top:function(){return document.documentElement.scrollTop||document.body.scrollTop;}, width:function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;}, height:function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;}, total:function(d){ var b=document.body, e=document.documentElement; return d?Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight)): Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth)); } } ;}(); var ratings_cache_counter_u7u8j7P0F4j1b3e0 = 0; function reLink_u7u8j7P0F4j1b3e0() { if ( document.images ) { // preload images d0_u7u8j7P0F4j1b3e0 = new Image(320,61); d0_u7u8j7P0F4j1b3e0.src = imageSource_u7u8j7P0F4j1b3e0; d1_u7u8j7P0F4j1b3e0 = new Image(320,61); d1_u7u8j7P0F4j1b3e0.src = imageSource_u7u8j7P0F4j1b3e0+"?default=1"; d2_u7u8j7P0F4j1b3e0 = new Image(320,61); d2_u7u8j7P0F4j1b3e0.src = imageSource_u7u8j7P0F4j1b3e0+"?default=2"; d3_u7u8j7P0F4j1b3e0 = new Image(320,61); d3_u7u8j7P0F4j1b3e0.src = imageSource_u7u8j7P0F4j1b3e0+"?default=3"; d4_u7u8j7P0F4j1b3e0 = new Image(320,61); d4_u7u8j7P0F4j1b3e0.src = imageSource_u7u8j7P0F4j1b3e0+"?default=4"; d5_u7u8j7P0F4j1b3e0 = new Image(320,61); d5_u7u8j7P0F4j1b3e0.src = imageSource_u7u8j7P0F4j1b3e0+"?default=5"; // remove static link var temp = "\"ratings\""; document.getElementById("div_u7u8j7P0F4j1b3e0").innerHTML = temp; makeMap_u7u8j7P0F4j1b3e0(); } } function makeMap_u7u8j7P0F4j1b3e0() { // create an area map var map = "\n"; map+="\n"; map+="\n"; map+="\n"; map+="\n"; map+="\n"; map+=""; map+=""; // append map document.getElementById("rating_u7u8j7P0F4j1b3e0").innerHTML+=map; // append tooltips document.getElementById("div_u7u8j7P0F4j1b3e0").innerHTML+="\nDreadful"; document.getElementById("div_u7u8j7P0F4j1b3e0").innerHTML+="\nPoor"; document.getElementById("div_u7u8j7P0F4j1b3e0").innerHTML+="\nFair"; document.getElementById("div_u7u8j7P0F4j1b3e0").innerHTML+="\nGood"; document.getElementById("div_u7u8j7P0F4j1b3e0").innerHTML+="\nExcellent"; // add events document.getElementById('rating_u7u8j7P0F4j1b3e0').onmouseout = function() { resetImage_u7u8j7P0F4j1b3e0() }; document.getElementById('area_1_u7u8j7P0F4j1b3e0').onclick = function(){ ratings_cache_counter_u7u8j7P0F4j1b3e0++; var path = "http://www.ratethatpage.com/c1/vote_ajax.php?id=u7u8j7P0F4j1b3e0&vote=1&count="+ratings_cache_counter_u7u8j7P0F4j1b3e0; TINY.box.show(path,1,750,0,1,0); }; document.getElementById('area_2_u7u8j7P0F4j1b3e0').onclick = function(){ ratings_cache_counter_u7u8j7P0F4j1b3e0++; var path = "http://www.ratethatpage.com/c1/vote_ajax.php?id=u7u8j7P0F4j1b3e0&vote=2&count="+ratings_cache_counter_u7u8j7P0F4j1b3e0; TINY.box.show(path,1,750,0,1,0); }; document.getElementById('area_3_u7u8j7P0F4j1b3e0').onclick = function(){ ratings_cache_counter_u7u8j7P0F4j1b3e0++; var path = "http://www.ratethatpage.com/c1/vote_ajax.php?id=u7u8j7P0F4j1b3e0&vote=3&count="+ratings_cache_counter_u7u8j7P0F4j1b3e0; TINY.box.show(path,1,750,0,1,0); }; document.getElementById('area_4_u7u8j7P0F4j1b3e0').onclick = function(){ ratings_cache_counter_u7u8j7P0F4j1b3e0++; var path = "http://www.ratethatpage.com/c1/vote_ajax.php?id=u7u8j7P0F4j1b3e0&vote=4&count="+ratings_cache_counter_u7u8j7P0F4j1b3e0; TINY.box.show(path,1,750,0,1,0); }; document.getElementById('area_5_u7u8j7P0F4j1b3e0').onclick = function(){ ratings_cache_counter_u7u8j7P0F4j1b3e0++; var path = "http://www.ratethatpage.com/c1/vote_ajax.php?id=u7u8j7P0F4j1b3e0&vote=5&count="+ratings_cache_counter_u7u8j7P0F4j1b3e0; TINY.box.show(path,1,750,0,1,0); }; } function changeImage_u7u8j7P0F4j1b3e0( value ) { if ( document.images ) { var img = eval("d" + value + "_u7u8j7P0F4j1b3e0" + ".src" ); document.getElementById("img_u7u8j7P0F4j1b3e0").src=img; } foo="tt"+value+"_u7u8j7P0F4j1b3e0"; document.getElementById(foo).style.display="block"; } function resetImage_u7u8j7P0F4j1b3e0() { document.getElementById("img_u7u8j7P0F4j1b3e0").src=d0_u7u8j7P0F4j1b3e0.src; document.getElementById("tt1_u7u8j7P0F4j1b3e0").style.display="none"; document.getElementById("tt2_u7u8j7P0F4j1b3e0").style.display="none"; document.getElementById("tt3_u7u8j7P0F4j1b3e0").style.display="none"; document.getElementById("tt4_u7u8j7P0F4j1b3e0").style.display="none"; document.getElementById("tt5_u7u8j7P0F4j1b3e0").style.display="none"; }