$(document).ready(function(){
tb_init();
mymove();
});
function getPageScroll(){
var yScroll;
if (self.pageYOffset) {
yScroll = self.pageYOffset;
}else if (document.documentElement && document.documentElement.scrollTop){
yScroll = document.documentElement.scrollTop;
}else if (document.body) {
yScroll = document.body.scrollTop;
}
return yScroll;
}
function mymove()
{
document.getElementById("mylist").style.top=getPageScroll()+150+"px";
setTimeout("mymove();",100)
}
function showmap(){
loader_show("Our Location");
fill_show('
',null);
var WINDOW_HTML = '308 village walk drive
Holly Springs, NC 27540
';
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("mapdiv"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GScaleControl());
map.removeMapType(G_HYBRID_MAP );
map.addMapType(G_PHYSICAL_MAP );
map.setCenter(new GLatLng(35.639755,-78.839822), 14);
var marker = new GMarker(new GLatLng(35.639755,-78.839822));
map.addOverlay(marker);
GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(WINDOW_HTML);});
marker.openInfoWindowHtml(WINDOW_HTML);
}
}
function goUrl(id){
switch(id){
case 0:location.href='http://asiavtour.com/9195579888/index.html';break;
case 1:location.href='http://asiavtour.com/9195579888/about.html';break;
case 2:location.href='http://asiavtour.com/9195579888/menu.html';break;
case 3:location.href='http://asiavtour.com/9195579888/message.html';break;
case 4:location.href='http://asiavtour.com/9195579888/coupon.html';break;
case 5:location.href='http://asiavtour.com/9195579888/career.html';break;
}
}
function chklogin(){
if(!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/i.test($('#loginusername').val())){
alert('User does not match, please try again. \neg. user@xxx.com');
return false;
}
if($('#loginpassword').val()=='' || $('#loginpassword').val().length<6){
alert('Password must be longer than 6 characters.');
return false;
}
return true;
}