/* Touch Clarity logging request. http://www.touchclarity.com
 * Site identifier code for Tiscali UK
 * Copyright (c) Touch Clarity Ltd 2001-2002. All rights reserved. Patent Pending.
 *
 * Change the value of tc_logging_active to switch off logging on the site.
 */

// tc_logging_active = false;


// required configuration parameters

// Custom functions for Tiscali
// Modified to append src onto the end of the URL that is logged
function tc(target,link,x,sect,subsect) {
   var loc = document.location.href;
   if (sect == "TopBar" || sect == "Bottom") {
	try {
		loc = parent.document.location.href;
	} catch(e) {}
   }
   var type = "";
   if (loc.match(/products\/broadband/)) {
	type = "products";
   }else if (loc.match(/broadband/)) {
	type = "bb";
   } else if (loc.match(/entertainment/)) {
	type = "ent";
   } else if (loc.match(/motoring/)) {
	type = "motoring";
   } else if (loc.match(/shopping/)) {
	type = "shopping";
   } else if (loc.match(/members/)) {
	type = "members";
   } else if (loc.match(/index_t\.html/)) {
	type = "hpt";
   } else {
	type = "hpnew";
   }
	
   trackurl = "/misc/ltrackhp.php?url="+escape(link)+"&section="+sect+"&subsection="+subsect+"&type="+type;
   var win = window.open(trackurl,target);
}

function tc_form(frm,sect,subsect) {

var url = frm.action + "?";
for (i=0; i < frm.elements.length;i++) {
    url += frm.elements[i].name + "=" + frm.elements[i].value + "&";
}

url = url.substring(0,url.length-1);
tc('_top',url,'',sect,subsect);
return true;


}


// Search form submission
function tc_submit_form() {

}



