function clickToCall(agencyCode,propertyCode){
	// Parameter values
	var ctcURL = "";
	var ctcVar1 = "";
	var ctcVar2 = "";
	var ctcVar3 = "var3=FR";
	
	if(agencyCode == null || !agencyCode.length){
		return false;
	} 
	
	ctcVar1 += "var1=" + agencyCode;
	
	if(propertyCode != null && propertyCode.length >= 1){
		ctcVar2 += "var2=" + propertyCode;
		webVoicePop('AuthorizeURL=http://www.erafrance.com/index.cfm?fuseaction=home.ctcAuth&agency=' + agencyCode,ctcVar1,ctcVar2,ctcVar3,'Template=412333');
	}else{
		webVoicePop('AuthorizeURL=http://www.erafrance.com/index.cfm?fuseaction=home.ctcAuth&agency=' + agencyCode,ctcVar1,ctcVar3,'Template=412333');
	}
}


/*
 * Tooltip script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */

// starting the script on page load
jQuery(document).ready(function(){
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	jQuery(".c2cToolTip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		jQuery("body").append("<p id='c2cHoverText'>"+ this.t +"</p>");
		jQuery("#c2cHoverText")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		jQuery("#c2cHoverText").remove();
    });	
	jQuery(".c2cToolTip").mousemove(function(e){
		jQuery("#c2cHoverText")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});
});