_w = window ;
_d = _w.document ;
_J = jQuery ;
_w.path = '/';
//_w.path = '/clients/www.touristofficenet.com/beta/';
_w.loaderpath = _w.path+'img/ajax-loader.gif';
_w.loadercache = new Image();
_w.loadercache.src = _w.loadercache;
_w.slidespeed = 600;
_w.uid = new Date().getTime();
undefined;
( new Image() ).src = _w.loaderpath ;

function isValidEmailAddress(emailAddress) {
	var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
	return pattern.test(emailAddress);
}



function scrollToAnchor(a, b, c){
	if(!b) b=function(){};
	if(!c) c=1000;
  	$objhash = '#'+a ; 
	var $target = $($objhash);
	$target = $target.length && $target || $('[name=' + $objhash.slice(1) +']');
	if ($target.length) {
		var targetOffset = $target.offset().top;
		$('html,body').animate({scrollTop: targetOffset}, c, '', b);
		return false;
	}  
};
