var headline_count;
var current_headline=0;
 
$(document).ready(function(){
  headline_count = $("div.headline").size();
  $("div.headline:eq("+current_headline+")").css('top', '5px');
  setInterval(headline_rotate,7000); //time in milliseconds
});
 
function headline_rotate() {
  old_headline = current_headline % headline_count;
  new_headline = ++current_headline % headline_count;
  $("div.headline:eq(" + old_headline + ")").css('top', '210px');
  $("div.headline:eq(" + new_headline + ")").show().animate({top: 5},"slow");     
}

			$(function()
			{
				$('.scroll-pane').jScrollPane();
			});
			

function clicker(){
	var thediv=document.getElementById('displaybox');
	if(thediv.style.display == "none"){
		thediv.style.display = "";
		thediv.innerHTML = "<div class='overlay'><center><table width='80%' height='100%'><tr><td align=center><div class='transbox' width=300><table width='100%' height='100%'><tr><td width='10%'>&nbsp;</td><td align='center' valign='middle'><br><Br><img src='./lib/logo.png'><br><br>This website and its content is copyright of Rislani<br><br>You may not, except with our express written permission, print or download any content to a local hard disk, copy the content to individual third parties for their personal use or distribute or commercially exploit the content.<br>Nor may you transmit it or store it in any other website or other form of electronic retrieval system.<td width='10%'>&nbsp;</td></tr><tr><td colspan=3 align=center>&nbsp;</td></tr><tr><td colspan=3 align=center>&copy; Rislani 2011. All rights reserved.<br><br><a onclick='return clicker();'>CLOSE WINDOW</a></td></tr></table><br><br><table width=70%><tr></td><td width=50% valign=top align=center>Designed by:<br>Sethworks<br><a href='mailto:sethhalloran5@gmail.com' target='_blank'><img src='./lib/sw.jpg' border=0 height=120><a></td><td width=50% valign=top align=center>Developed by:<br><a target='_blank' href='http://www.deft-dev.com.au'><img src='./lib/Tristan.jpg' border=0 height=120'></a></td></tr></table><br><br></div></td></tr></table></div>";
	}else{
		thediv.style.display = "none";
		thediv.innerHTML = '';
	}
	return false;
}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-3661732-3']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

