function linkit(url)
{
window.open(url,"_blank");
}
  // code to change the active stylesheet
  function setActiveStyleSheet(link, title) {
    var i, a, main;
    for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
      if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
        a.disabled = true;
        if(a.getAttribute("title") == title) a.disabled = false;
      }
    }
}

function changeText(option)
{
var newCurrent;
current = document.getElementsByTagName('body')[0].style.fontSize

if (current == ''){
	current = 75;
} else {
	current = current.replace(/%/, "") - 0;
}

if (option == 'smaller'){
        newCurrent = current - 5 ;
	} else {
	newCurrent = current + 5 ;
	}

if (newCurrent < '65'){
	document.getElementById('smalltext').style.background = 'url(images/fontsize0.gif) top left no-repeat';
}
else if	(newCurrent > '100') {
	document.getElementById('largetext').style.background = 'url(images/fontsize3.gif) top left no-repeat';
}
else {
	document.getElementsByTagName('body')[0].style.fontSize = newCurrent+'%';
	document.getElementById('smalltext').style.background = 'url(images/fontsize1.gif) top left no-repeat';
	document.getElementById('largetext').style.background = 'url(images/fontsize2.gif) top left no-repeat';
	var date = new Date();
	date.setTime(date.getTime()+(365*24*60*60*1000));
	var expires = "; expires="+date.toGMTString();
	document.cookie = 'changeText='+newCurrent+expires+'; path=/';
}
}

/*
function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
*/


/* self.moveTo(0,0) */
/* self.resizeTo(screen.availWidth,screen.availHeight) */

function SymError()
{
  return true;
}

window.onerror = SymError;

// (C) 2001 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header

var theURL = 'serialsinners.html';
var width  = 400;
var height = 300;

function popWindow() {
	newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width='+width+',height='+height);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function sellink(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}
function list(){
	window.open("list.php"+self.location.search,"otherEventListings","width=500,height=500,resizable=no,status=no,scrollbars=no,menubar=no,toolbar=no,location=no,screenX=10,screenY=10,top=10,left=10");
}

function hsce(){
	window.open("chronicleecho.html"+self.location.search,"NewspaperArticle","width=640,height=480,resizable=yes,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,screenX=10,screenY=10,top=10,left=10");
}
function yahoo(){
	window.open("yahoo.php"+self.location.search,"Notify","width=500,height=250,resizable=no,status=no,scrollbars=no,menubar=no,toolbar=no,location=no,screenX=10,screenY=10,top=10,left=10");
}

function google(){
	window.open("google.html"+self.location.search,"Search","width=640,height=380,resizable=yes,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,screenX=10,screenY=10,top=10,left=10");
}
function regevents(){
	window.open("regevents.html"+self.location.search,"RepeatedEvents","width=640,height=480,resizable=yes,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,screenX=25,screenY=25,top=25,left=25");
}
function smpb(){
	window.open("smpb.html"+self.location.search,"SoundMusicPromotions","width=640,height=480,resizable=yes,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,screenX=25,screenY=25,top=25,left=25");
}
function tsprint(){
	window.open("thundersprint.html"+self.location.search,"ThunderSprint","width=600,height=360,resizable=yes,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,screenX=5,screenY=5,top=5,left=5");
}

function craven(){
	window.open("cravenmotorcycles.html"+self.location.search,"Craven","width=670,height=500,resizable=no,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,screenX=10,screenY=10,top=10,left=10");
}

function morgan(){
	window.open("captainmorgan.html"+self.location.search,"CaptainMorgan","width=670,height=500,resizable=no,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,screenX=10,screenY=10,top=10,left=10");
}

