

var testimoni = new Array();

	testimoni[0] = "<p><strong>Mr Stephen Yeo</strong><br/></p><p>I've used Asian Tigers Mobility<br/>for my relocation from Shenzhen<br/>to Hong Kong and from<br/>Hong Kong to Singapore.<br/>On both occasions,<br/>I was impressed by the level of professionalism of all members of the team <a href='testimonial.asp#ib_mar36'>Read More...</a><br/></p>";
	
	testimoni[1] = "<p><strong>Mr Sean Campbell</strong><br/>Medtronic International</p><p>These guys were right on time, professional, efficient and<br/>very helpful. I have zero<br/>complaint and would have<br/>these gentlemen help me anytime.<br/>Hope they can be part of my next shipment. Thanks!<br/></p>";

	testimoni[2] = "<p><strong>Ms Marisa Tan</strong><br></p><p>I am extremely pleased with the supervisor and his crew. They are professional, helpful and<br/>swift in their work.<br/>I have used other movers for<br/>my last move and have also<br/>asked them to quote for this move. However, I am glad my final decision is with Asian Tigers Mobility. <a href='testimonial.asp#lm_mar36'>Read More...</a></p>";
	
	testimoni[3] = "<p><strong>Mr Modi Mano</strong><br></p><p>Second time using<br/>Asian Tigers Mobility.<br/>First time was great but<br/>this time even better. <br/>Thank you for the excellent<br/>and professional service!</p>";
	
	testimoni[4] = "<p><strong>Mr Dean Chang</strong><br>IMS Health Asia</p><p>The supervisor and his team<br/>did a tremendously<br/>professional job in packing and<br/>boxing up our household goods.<br/>They were among the best<br/>I have experienced in my over 10 moves (spanning over 25 years). The packers were efficient, courteous <a href='testimonial.asp#ob_mar36'>Read More...</a></p>";
	
	testimoni[5] = "<p><strong>Mr Todd Rhodes</strong><br></p><p>Excellent as always! <br/>Our third experience with<br/>Asian Tigers Mobility.<br/>I will be nervous going<br/>with anyone else.</p>";
	
var start = Math.floor(Math.random()*testimoni.length);		
function display_menu(id, action){
  document.getElementById(id).style.display=action;
}

$(document).ready(function(){
	
	show();	
	
})

function show(){
	id = start%testimoni.length;
		$('#testi0').html(testimoni[id]);
		/*
		for(i=0;i<3;i++)
			{
			var id = (start+i)%3;
			$('#testi'+i).fadeOut('fast');
			$('#testi'+i).html(testimoni[id]);
			$('#testi'+i).fadeIn('slow');
			}
			*/
			
	start++;		
setTimeout('show()',10000);
}

$.fn.serializeForm = function()
{
    data = {};
    url = this.attr("action");
    items = this.serializeArray();
    $.each(items,function(i,item)
    {
        data[item['name']]=item['value'];
    }
    );
    return data;
}

function submitHandler(form, callback)
{

    $(form).submit(function(e){
        items = {};
        items = $(form).serializeForm();
        url = $(form).attr("action");
        if(url=="")
        {
            //alert("Cannot submit form. No target specified");
            return false;
        }
        callback = callback?callback:function(){};
        $.post(url,items,function(data){
            callback(form,data);
        });

        //clearForm(form);

        return false;
    });

}

function clearForm(formid)
{
    $(formid+" :input[type=text]").val("");
    $(formid+" select").val("");
    $(formid+" :input[type=checkbox]").attr("checked",false);
    $(formid+" textarea").val("");
}

function submitForm(form,callback)
{
    
    items = {};
    items = $(form).serializeForm();
    url = $(form).attr("action");
    if(url=="")
    {
        //alert("Cannot submit form. No target specified");
        return false;
    }
    $.post(url,items,function(data){
            callback(form,data);
        });
    return false;
}


function done(form,data){
	clearForm(form);
	alert('Thank you for your enquiry. We will reply you within 1 working day.');
	
	}

