function AddLoadEventHandler(handler) {
	  var temp_f;
	  if (window.onload) {
		  temp_f = window.onload;
	  }

	  window.onload = function() {
		  if (temp_f) {
			  temp_f();
		  }
		  handler();
	  }
  }
  
AddLoadEventHandler(function() { 
    $('#ctl00_contentSection_Search1_txtWhat').watermark('Product or category');
    $('#ctl00_contentSection_Search1_txtWhere').watermark('City or zipcode');
	$('#ctl00_contentSection_Search1_txtWhere').autocomplete('/GetSuburbStateByPrefix.ashx', { width: 193, matchSubset: 0, delay: 100, selectFirst: false, max: 9 });
	$('#ctl00_contentSection_Search1_txtWhat_vn').watermark('Sản phẩm hay danh mục');
    $('#ctl00_contentSection_Search1_txtWhere_vn').watermark('Thành phố hay mã vùng');
	$('#ctl00_contentSection_Search1_txtWhere_vn').autocomplete('/GetSuburbStateByPrefix.ashx', { width: 193, matchSubset: 0, delay: 100, selectFirst: false, max: 9 });
	$('#ctl00_contentSection_Search1_txtWhat_cn').watermark('产品或类别');
    $('#ctl00_contentSection_Search1_txtWhere_cn').watermark('城市或邮递区号');
	$('#ctl00_contentSection_Search1_txtWhere_cn').autocomplete('/GetSuburbStateByPrefix.ashx', { width: 193, matchSubset: 0, delay: 100, selectFirst: false, max: 9 });
});

AddLoadEventHandler(function() { 
	$('#ctl00_hotFrogFooter_Search2_txtWhat').watermark('What you need');
	$('#ctl00_hotFrogFooter_Search2_txtWhere').watermark('Where you want it');
	$('#ctl00_hotFrogFooter_Search2_txtWhere').autocomplete('/GetSuburbStateByPrefix.ashx', { width: 193, matchSubset: 0, delay: 100, selectFirst: false, max: 9 });
	$('#ctl00_hotFrogFooter_Search2_txtWhat_vn').watermark('Bạn cần gì');
	$('#ctl00_hotFrogFooter_Search2_txtWhere_vn').watermark('Bạn thích gì');
	$('#ctl00_hotFrogFooter_Search2_txtWhere_vn').autocomplete('/GetSuburbStateByPrefix.ashx', { width: 193, matchSubset: 0, delay: 100, selectFirst: false, max: 9 });
	$('#ctl00_hotFrogFooter_Search2_txtWhat_cn').watermark('你需要什么');
	$('#ctl00_hotFrogFooter_Search2_txtWhere_cn').watermark('在您想要的');
	$('#ctl00_hotFrogFooter_Search2_txtWhere_cn').autocomplete('/GetSuburbStateByPrefix.ashx', { width: 193, matchSubset: 0, delay: 100, selectFirst: false, max: 9 });
});

AddLoadEventHandler(function() { 
    $('.international').hover(function() {
        $('.internationalHeading').css('text-decoration', 'none');
        $('.international ul').show();
    }, function() {
        $('.internationalHeading').css('text-decoration', 'underline');
        $('.international ul').hide();
    });
    var topBannerVisible = false;
    var topbarAdname = '';
    var topbarkeywords = '';
    var topbarAdTest = '';
    var topBarWidth = 728; 
    var topBarHeight = 90;
   	CreateSideAdsBar(topBannerVisible, topbarAdname, topbarkeywords, topbarAdTest, topBarWidth, topBarHeight, "#SiteTopAdBar");
});
