function lWindow()
{
	$('#wLaunch').click(function()
	{
		window.open('ann2010.html','mywindow','width=525,height=745',' toolbar=no','location=no','status=no','menubar=no');
	});
}

$(function() {
      // create the image rotator
	 $('#foward').click(function()
	{
		rotateImagesF();				
	});
	 
	  $('#back').click(function()
	{
		rotateImagesB();				
	});
});

function rotateImagesF() {
	var oCurPhoto = $('#photoShow div.current');
    var oNxtPhoto = oCurPhoto.next();
    if (oNxtPhoto.length == 0)
    oNxtPhoto = $('#photoShow div:first');

    oCurPhoto.removeClass('current').addClass('previous');
    oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1000,
   function() {
       oCurPhoto.removeClass('previous');
   });
}

function rotateImagesB() {
	var oCurPhoto = $('#photoShow div.current');
    var oNxtPhoto = oCurPhoto.prev();
    if (oNxtPhoto.length == 0)
    oNxtPhoto = $('#photoShow div:first');

    oCurPhoto.removeClass('current').addClass('previous');
    oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1000,
   function() {
       oCurPhoto.removeClass('previous');
   });
}


function goFlash()
{
	$('#flash1').delay(6000).slideUp(1000, "easeOutExpo");
	
	$('.homeR').hide();
	$('#flash2').delay(14000).fadeOut(1000);
	$('#bgMaker').delay(10000).animate({'height':'400px'},1000);
	$('.homeR').delay(14000).fadeIn(1000);
}
		
		

$(document).ready(function()
{
	lWindow();
	//goFlash();
		$('#gallery a').lightBox();

});

