$(document).ready(
	function () {
		$('.menu .point').each(function(){
			if($(this).parent().find('.poOver').css('display')=='none'){
				$(this).mouseover(function(){
					$(this).parent().find('.poHover').show();		   
				});
				$(this).mouseout(function(){
					$(this).parent().find('.poHover').hide();		   
				});
			}
			$(this).click(function(){
				location.href=$(this).find('.p1 a').attr('href');	
			});
		});
		
		
		$('.lmenu .mpoint').each(function(){
			$(this).click(function(){
				iNuberOfSubmenuPoints = $(this).parent().find('.smpoint').length;
				if(iNuberOfSubmenuPoints) {
					oSubmenu = $(this).parent().find('.submenu');
					if(oSubmenu.css('display')=='none'){
						oSubmenu.parent().find('.mpoint').addClass('smopen');
						oSubmenu.show(350);
					}else{
						oSubmenu.hide(350);
						oSubmenu.removeClass('smopen');
						oSubmenu.parent().find('.mpoint').removeClass('smopen');
					}
				}else{
					sHref=$(this).find('a').attr('href');
					location.href=sHref;
				}
				return false;
			});
		});
		// reference lightbox
		$(function() {
			$('.thumbHolder a').lightBox(); // Select all links with lightbox class
		});
	}
);
function isValidField(sText, iType){
	if(iType==1)
	{ ValidChars = "0123456789"; }
	else if(iType==2)
	{ ValidChars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-@"; }
	else if(iType==3)
	{ ValidChars = "0123456789."; }
	else if(iType==4)
	{ ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ "; }
	else if(iType==5)
	{ ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; }
	else if(iType==6)
	{ ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890*"; }
	var isValid=true;
	var Char;
	for (i = 0; i < sText.length && isValid == true; i++) 
	{ 
		Char = sText.charAt(i); 
		if (ValidChars.indexOf(Char) == -1) 
		{ isValid = false; }
	}
	return isValid;
}
function printpage() {
	window.print();	
	return false;
}


