$(document).ready( function() {

	//external window
	$('A[class="external"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});

	//popup window
	$('A[id="popup"]').click(function(){
		window.open(this.href,'Popup','height=250,width=310,scrollTo,resizable=0,scrollbars=0,location=0','false');
		return false;
	});

	//print link
	$('A[class="print"]').click(function() {
		window.print();
		return false;
	});

	//media object
	$('.media').media({
		caption: false
	});

	//rollover
	$("img.rollover").hover(
	function() {
		this.src = this.src.replace("-off.","-on.");
	},
	function() {
		this.src = this.src.replace("-on.","-off.");
	});

	//forms - focus
	$("input[type=password], input[type=text], textarea").focus(function()
	{
		$(this).addClass("focus");
	});
	$("input[type=password], input[type=text], textarea").blur(function()
	{
		if ($(this).find(".focus")) { $(this).removeClass("focus");
		}
	});

	//forms - hover
	$("input.submit").hover(function()
	{
		$(this).addClass("hover");
	},
	function()
	{
		$(this).removeClass("hover");
	});

	//lightbox
	$(function() { $('a.lightbox').lightBox(); });
	$(function() { $('a.lightbox1').lightBox(); });
	$(function() { $('a.lightbox2').lightBox(); });

	getTwitters('otisotis', {
		id: 'otisotis',
		count: 1,
		withFriends: true,
		enableLinks: false,
		ignoreReplies: true,
		template: '<span class="twitterstatus">"%text%"</span> <em class="twittertime">&nbsp;&nbsp;<a target="_blank" href="http://www.twitter.com/%user_screen_name%/statuses/%id%">(%time%)</a></em>'
	});

  $(function() {
    $('#nav').droppy({speed: 1});
  });

});

animatedcollapse.addDiv('one')
animatedcollapse.addDiv('two')
animatedcollapse.addDiv('three')
animatedcollapse.addDiv('four')
animatedcollapse.addDiv('five')
animatedcollapse.addDiv('six')
animatedcollapse.addDiv('seven')
animatedcollapse.addDiv('eight')
animatedcollapse.addDiv('nine')
animatedcollapse.addDiv('ten')
animatedcollapse.addDiv('eleven')
animatedcollapse.addDiv('twelve')
animatedcollapse.addDiv('thirteen')
animatedcollapse.addDiv('fourteen')
animatedcollapse.addDiv('fifteen')
animatedcollapse.addDiv('sixteen')
animatedcollapse.addDiv('seventeen')
animatedcollapse.addDiv('eightteen')
animatedcollapse.addDiv('nineteen')
animatedcollapse.addDiv('twenty')
animatedcollapse.addDiv('twentyone')
animatedcollapse.addDiv('twentytwo')
animatedcollapse.addDiv('twentythree')
animatedcollapse.addDiv('twentyfour')
animatedcollapse.addDiv('twentyfive')
animatedcollapse.addDiv('twentysix')
animatedcollapse.addDiv('twentyseven')
animatedcollapse.addDiv('twentyeight')
animatedcollapse.addDiv('twentynine')
animatedcollapse.addDiv('thirty')
animatedcollapse.addDiv('thirtyone')
animatedcollapse.addDiv('thirtytwo')
animatedcollapse.addDiv('thirtythree')
animatedcollapse.addDiv('thirtyfour')
animatedcollapse.addDiv('thirtyfive')
animatedcollapse.addDiv('thirtysix')
animatedcollapse.addDiv('thirtyseven')
animatedcollapse.addDiv('thirtyeight')
animatedcollapse.addDiv('thirtynine')
animatedcollapse.addDiv('forty')
animatedcollapse.addDiv('fortyone')
animatedcollapse.addDiv('fortytwo')
animatedcollapse.addDiv('fortythree')
animatedcollapse.addDiv('fortyfour')
animatedcollapse.addDiv('fortyfive')
animatedcollapse.addDiv('fortysix')
animatedcollapse.addDiv('fortyseven')
animatedcollapse.addDiv('fortyeight')
animatedcollapse.addDiv('fortynine')
animatedcollapse.addDiv('fifty')
animatedcollapse.init()