 //calculate country Time by country Short Name
 function calTimeByName(name){ 
 	var offset = time_map[name];
	return calTime(offset);
 } 
 
 //calculate country Time by country's timeZone offset
 function calTime(offset) {
 	if(String(offset)=='undefined')
 		return;
 	
	d = new Date();
	utc = d.getTime() + (d.getTimezoneOffset() * 60000);
	nd = new Date(utc + (3600000*offset));
	var t_str = nd.toString();
	var arrTmp = t_str.split(' ');
    var t_t = '';                                                                                           
    	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 3)){ 
    		var timeArray = arrTmp[3].split(':');
    		t_t = timeArray[0] + ':' + timeArray[1]
    	}else{                                                                                             
    		var timeArray = arrTmp[4].split(':');
    		t_t = timeArray[0] + ':' + timeArray[1]                                                                                 
    	}   
    	t_str = t_t +' '+ arrTmp[0] +' '+arrTmp[1]+' '+arrTmp[2];         
    	img_str = 'Local Time:'+t_str+' / Click to learn more about this country/region.';
	return img_str; 
 }
 
 //calculate country profile homepage url
 function calCountryUrl(name){
 	var countryFullName = country_map[name];
	if(countryFullName != null)
		return "http://country.alibaba.com/profiles/"+name+'/'+countryFullName+'.htm';
	else
		return 'http://country.alibaba.com';
 }
