$(document).ready(function(){
	$("#log-in a").click(function () {
      $("#quick-info").slideToggle("slow");
    });
	
	$('#rotator').cycle({ 
		fx:     'fade', 
		timeout: 20000,
		delay:  -2000
	});
	
	$('#pics1').cycle({ 
		fx:     'shuffle',
		timeout:       5000,
		shuffle: { 
        top:  -100, 
        left:  100 
		}, 
		easing: 'backinout'
	});
	
	$('#pics2').cycle({ 
		fx:     'shuffle',
		timeout:       5000,
		shuffle: { 
        top:  -100, 
        left:  100 
		}, 
		easing: 'backinout'
	});
		
	/*$('#pics2').cycle({ 
		fx:     'shuffle',
		timeout:       5000,
		shuffle: { 
        top:  -100, 
        left:  100 
		}, 
		easing: 'backinout', 
    	delay: 2500 
	});*/
});

var comic = {
      src: '/flash/comic.swf'
      ,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
	  ,wmode: 'transparent'
    };

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    // sIFR.useStyleCheck = true;
    sIFR.activate(comic);

    sIFR.replace(comic, {
      selector: '.titles'
      ,css: [
        '.sIFR-root {  font-weight: bold; background-color: #edf2f5; color: #00132c ; }'
      ]
    });
	
	sIFR.replace(comic, {
      selector: '#strapline'
      ,css: [
        '.sIFR-root {  font-weight: bold;  color: #00132c ; text-align: right ; }'
      ]
    });
	
	sIFR.replace(comic, {
      selector: '#tel'
      ,css: [
        '.sIFR-root {  font-weight: bold;  color: #00132c ; text-align: right ; }'
		,'strong { font-style: normal; color: #0462B9; }'
      ]
    });
	
$(function() {
	$('a[@rel*=fullsize]').lightBox({
	imageLoading: '/media/images/lightbox/lightbox-ico-loading.gif',
	imageBtnClose: '/media/images/lightbox/lightbox-btn-close.gif',
	imageBtnPrev: '/media/images/lightbox/lightbox-btn-prev.gif',
	imageBtnNext: '/media/images/lightbox/lightbox-btn-next.gif'
	}); // Select fullsize image only
	$('a[@rel*=footer_img]').lightBox({
	imageLoading: '/media/images/lightbox/lightbox-ico-loading.gif',
	imageBtnClose: '/media/images/lightbox/lightbox-btn-close.gif',
	imageBtnPrev: '/media/images/lightbox/lightbox-btn-prev.gif',
	imageBtnNext: '/media/images/lightbox/lightbox-btn-next.gif'
	}); // Select fullsize image only
});