/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function commentEmoticon(code)
{
   var cache = document.comments.body.value;

   document.comments.body.value = cache + " " + code;
   document.comments.body.focus();
}

function ChristIsImmanentInAllThings(youBet, justInCase){
thatsFunny = ('coconutsKillMorePeopleThanSharks' + (youBet));
noMoreThankYou = ('thankYourMother' + (youBet));
if( document.getElementById ) {
if( document.getElementById(thatsFunny).style.display ) {
if( justInCase != 0 ) {
document.getElementById(thatsFunny).style.display = "block";
document.getElementById(noMoreThankYou).style.display = "none";
} else { document.getElementById(thatsFunny).style.display = "none"; 
document.getElementById(noMoreThankYou).style.display = "block"; }
} else { location.href = justInCase;
return true; }
} else { location.href = justInCase;
return true; }
}

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=25
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}
