var blinkEvery = 10;
var blinkTimes = 5;
var blinkSpeed = 500;
var votehtml = "";
var blinkCount = 0;
var blinkType = 0;
var didVis = 0;
var x = 0;
var vote_start = 1;
var vote_end = 10;
if (document.layers)
{
document.write('');
}
else if (document.all)
{
document.write('
');
}
else if (document.getElementById)
{
document.write('');
}
function askComments() {
if (document.layers)
{
var vote_value = document.layers['votevoice'].document.voteform.vote.selectedIndex;
}
else if (document.all)
{
var vote_value = document.voteform.vote.selectedIndex;
}
else if (document.getElementById)
{
var vote_value = document.voteform.vote.selectedIndex;
}
if (vote_value == 0)
{
return false;
}
var comments = prompt ("If you would like to leave a comment, please do it here","");
if (document.layers)
{
document.layers['votevoice'].document.voteform.comments.value = comments;
}
else if (document.all)
{
document.voteform.comments.value = comments;
}
else if (document.getElementById)
{
document.voteform.comments.value = comments;
}
}
function pauseNow() {
if (blinkType == 0)
{
if (document.layers)
{
document.layers.votevoice.visibility = 'hide';
}
else if (document.all)
{
document.all.votevoice.style.visibility = 'hidden';
}
else if (document.getElementById)
{
document.getElementById("votevoice").style.visibility = "hidden";
}
blinkType = 1;
}
else
{
if (document.layers)
{
document.layers.votevoice.visibility = 'visible';
}
else if (document.all)
{
document.all.votevoice.style.visibility = 'visible';
}
else if (document.getElementById)
{
document.getElementById("votevoice").style.visibility = "visible";
}
blinkType = 0;
x++;
}
if (x < blinkTimes)
{
setTimeout("pauseNow()", blinkSpeed);
}
else
{
x = 0;
}
}
function oneTime() {
votehtml = '\nRate This Page
';
votehtml += 'Rated 0 times Overall Rating: 0
';
votehtml += ' ';
votehtml += 'View Comments';
votehtml += ' |
\n
\n';
if (document.layers)
{
document.votevoice.document.write(votehtml);
document.votevoice.document.close();
}
else if (document.all)
{
votevoice.innerHTML = votehtml;
}
else if (document.getElementById)
{
newlayer = document.getElementById("votevoice");
newlayer.innerHTML = votehtml;
}
}
function blinkBox() {
if (blinkCount >= blinkEvery)
{
blinkCount = 0;
setTimeout("pauseNow()",100);
}
else
{
blinkCount++;
}
setTimeout("blinkBox()",1000);
}
function showRec() {
if (document.layers)
{
document.layers.votevoice.top = pageYOffset;
document.votevoice.left = window.innerWidth - 150 - 50;
if (didVis == 0)
{
document.layers.votevoice.visibility = 'visible';
didVis = 1;
}
}
else if (document.all)
{
document.all.votevoice.style.posLeft = document.body.clientWidth - 150 - 50;
document.all.votevoice.style.top = document.body.scrollTop;
if (didVis == 0)
{
document.all.votevoice.style.visibility = 'visible';
didVis = 1;
}
}
else if (document.getElementById)
{
document.getElementById("votevoice").style.left = window.innerWidth - 150 - 50;
document.getElementById("votevoice").style.top = document.body.scrollTop;
}
setTimeout("showRec()",100);
}
setTimeout("oneTime()",1000);
setTimeout("showRec()",1000);
if (blinkEvery > 0)
{
setTimeout("blinkBox()",1000);
}