/**
* Cookie plugin mini
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
**/
jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000))}else{date=options.expires}expires='; expires='+date.toUTCString()}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('')}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue}};

var swidth=654;
var sheight=60;
var sspeed=2;
var restart=sspeed;
var rspeed=sspeed;
var spause=3000;
var sbcolor="#ECECEC";
var singletext=new Array();

singletext[0]='<div class="tan"><a class="tabb" target="_self" href="/forum/viewtopic.php?f=149&t=1767"><b><font size="6">Active announcements</font></b></a><br />Click any title to be direct to that post. Hover mouse over speed to speed up.</div>';

singletext[1]='<div class=tan><A class=tabb target="_self" href="/forum/viewtopic.php?f=149&t=1739"><b>Open all site areas</b></a><br />Become a gold tributer member and gain access to exclusive downloads.<br /></div>';

singletext[2]='<div class=tan><A class=tabb target="_self" href="/forum/viewtopic.php?f=149&amp;t=1977"><b>News box</b></a><br />A news box that will auto update itself has been added to chat and placed at the top of the forum.<br /></div>';

singletext[3]='<div class=tan><A class=tabb target="_self" href="/forum/viewtopic.php?f=149&t=1850"><b>New - Music library</b></a><br />Full of oldskool house/hip-hip tunes for all your IDs and wants list.<br /></div>';

singletext[4]='<div class=tan><A class=tabb target="_self" href="/forum/viewtopic.php?f=149&t=1747"><b>Google adds</b></a><br />Every click of a google add helps Ravers paradise... so give them a click!<br /></div>';

singletext[5]='<div class=tan><A class=tabb target="_self" href="/forum/viewtopic.php?f=149&t=1762"><b>RSVP attendance feature</b></a><br />Venue promoters posting tool for attendance, RSVP , promotions or even ticket sales.<br /></div>';

singletext[6]='<div class=tan><A class=tabb target="_self" href="/forum/viewtopic.php?f=149&t=1568"><b>Want a 24/7 radio on YOUR site?</b></a><br /><A class=tabb target="_self" href="/forum/viewtopic.php?f=149&t=1568">Click here!</a> Copy/paste html code to where you want it on your site!<br /></div>';




var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}

function start(){
if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();}
else
if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.top=sheight;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}
else
if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}}
function iescroll(){if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll()",spause);}else
if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed+"px";setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[ii];sizeup=iediv.offsetHeight;iescroll();}}
function ns4scroll(){if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll()",spause);}else
if(ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}}
function ns6scroll(){if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll()",spause);}else
if(parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
//-- end Algorithm -->
