/*** AJAX & JS Configuration parameters for territories ***/

/* Live search */
	
	var livesearchon = " "; //Enable or disable live search. "true" for on. blank or any other value for off.
	var minchars = 2; //Min number of characters input before suggestions are triggered
	
	// Change to location of custom live search xml file
	var suggestionsfile = "http://www.pwc.com/en_GX/webadmin/ajax/livesearch/livesearch.xml";

/* Send & share links */

	// NB! This is required for all cc-ll.js files regardless
	var arr_ss = new Array();

	// Local territory send & share links. NB: Count the number of global links (from zero) and then start the array
//	arr_ss [5] = new Array()
//	arr_ss [5][0] = "lu"; //Country code
//	arr_ss [5][1] = "/en_GX/webadmin/assets/image/share_yahoobuzz.gif"; //Local or global path to icon
//	arr_ss [5][2] = "http://buzz.yahoo.com/buzz?targetUrl=" + escape(window.location); //'Pre' url to bookmarking site
//	arr_ss [5][3] = ""; //'Post' url to bookmarking site
//	arr_ss [5][4] = "Yahoo! Buzz"; //Text to display in send & share box

/* Placeholder */


/* start jQuery Modal */
var modalWindow = {  
	parent:"body",  
	windowId:null,  
	content:null,  
	width:null,  
	height:null,  
	close:function()  
	{  
		$(".modal-window").remove();  
		$(".modal-overlay").remove();  
	},  
	open:function()  
	{  
		var modal = "";  
		modal += "<div class=\"modal-overlay\"></div>";  
		modal += "<div id=\"" + this.windowId + "\" class=\"modal-window\" style=\"width:" + this.width + "px; height:" + this.height + "px; margin-top:-" + (this.height / 2) + "px; margin-left:-" + (this.width / 2) + "px;\">";  
		modal += this.content;  
		modal += "</div>";      
  
		$(this.parent).append(modal);  
  
		$(".modal-window").append("<a class=\"close-window\"></a>");  
		$(".close-window").click(function(){modalWindow.close();});  
		$(".modal-overlay").click(function(){modalWindow.close();});  
	}  
};  

var openMyModal = function(source)  
{  
	modalWindow.windowId = "myModal";  
	modalWindow.width = 480;  
	modalWindow.height = 405;  
	modalWindow.content = "<iframe width='480' height='405' frameborder='0' scrolling='no' allowtransparency='true' src='" + source + "'></iframe>";  
	modalWindow.open();  
};  
	
/* end jQuery Modal */
