/**
 * @Author Liwen Zhang
 * @Corp Byte Art
 * @Date July 2007
 * @Ref JQuery 1.1.3.1
**/
/**
 * @Updated by Dipesh Hirani
 * @Corp Byte Art
 * @Date Nov 2007
 * @Ref JQuery 1.1.3.1
**/
// Turn a 'well-formed' list into a slide Menu
function slideMenu() {
	var currentDropDown = $('.menuDrop1 li');
	var currentnoDropDown = $('.menuDrop1 li.menuTitlenodrop');
	var menuTitles = $('a.menuTitle').find('li:first-child');
	menuTitles.addClass('pointer');
	$('div.menuDropDrop').css('display', 'none');
	currentDropDown.click(function() {
		if($(this).find('.menuDropDrop').is(':visible'))
		{
			$(this).find('.menuDropDrop').slideUp('normal');
			$(this).find('a').css('background', '#FFF');
			$(this).find('a').css('color', '#808080');
		}
		else
		{
			$(this).parent().find('a').css('background', '#fff');
			$(this).parent().find('a').css('color', '#808080');
			if($(this).parent().find('div.menuDropDrop').is(':visible'));
			{
				$(this).parent().find('.menuDropDrop').slideUp('normal');
			}
			$(this).find('.menuDropDrop').slideDown('normal');
			$(this).find('a').css('background', '#D9E7F0');
			$(this).find('a').css('color', '#394882');
		}
	});
	currentnoDropDown.click(function() {
	})
}

$(document).ready(function(){
	slideMenu();
	$('ul.largeimages').innerfade({
		animationtype: 'fade',
		speed: 1500,
		timeout: 4000,
		type: 'random_start',
		containerheight: '530px'
	});
});
