tlk_ua=navigator.userAgent.toLowerCase();
tlk_isie=(tlk_ua.indexOf("msie")!=-1);
tlk_isop=(tlk_ua.indexOf("opera")!=-1);
tlk_msg="Click here for company certificate";
tlk_rcm="This seal is protected.\nPlease use left button to view company information.";
tlk_bma=parseInt(navigator.appVersion);
tlk_s="certificate.php";
tlk_si="www.trustlk.com/";
tlk_hn=window.location.hostname;
tlk_sip="http://"+tlk_si+"certificate.php";
tlk_rsip=tlk_sip+"?ref="+window.location.protocol+"//"+tlk_hn;

var uri = new Object();
getURL(uri);
tlk_dom = "&dom="+uri.dom;
//document.write(uri.dom);
tlk_is="http://www.trustlk.com/seal.php?type="+tlk_typ+tlk_dom;
tlk_ph=600;

if(screen!=null)if(screen.height<670)tlk_ph=screen.height-70;
tlk_ws="status=1,location=0,scrollbars=1,resizeable=yes,width=480,height="+tlk_ph;
tlk_w=null;
if(tlk_ua.indexOf("msie 5")!=-1)tlk_bma=5;
if(tlk_ua.indexOf("msie 6")!=-1)tlk_bma=6;
if(tlk_ua.indexOf("msie 7")!=-1)tlk_bma=7;

function tlk_sp(){
 tlk_w=window.open(tlk_rsip,'tlk_SIP',tlk_ws);
 if ((tlk_w != null)&&(!tlk_isie||(tlk_bma >= 5))) tlk_w.focus();
}

function tlk_dc(e){
 if (tlk_isop||document.addEventListener) {
  var eit=(e.target.name=="trsulktbl");
   if (eit){
    if (e.which==3){
    }
   }
 }else if(document.captureEvents) {
  var tgt=e.target.toString();
  var eit=(tgt.indexOf(tlk_s)!=-1);
  if (eit){
   if (e.which==3){
   }
  }
 }
}

function tlk_md(){
 if(typeof event != 'undefined'){  if (event.button==2){
  return false;
 }else if(event.button==1){
  if(tlk_isie) {
   return true;
  }
 }}
 tlk_sp();
 return false;
}

if(tlk_isie&&(tlk_bma<=4)) {
 document.write("<A TABINDEX=\"-1\" HREF=\""+tlk_rsip+"\" onmousedown=\"return tlk_md();\"><IMG NAME=\"trsulktbl\" HEIGHT=\"70\" WIDTH=\"120\" BORDER=\"0\" SRC=\""+tlk_is+"\" ALT=\""+tlk_msg+"\" oncontextmenu=\"return false;\"></A>");
}
else if(tlk_isie&&(tlk_bma>=5)&&!tlk_isop) {
 document.write("<A HREF=\"javascript:tlk_sp()\" TABINDEX=\"-1\" onmouseout=\"window.status='';\" onmouseover=\"this.style.cursor='hand'; window.status='"+tlk_msg+"';\" onmousedown=\"return tlk_md();\"><IMG NAME=\"trsulktbl\" HEIGHT=\"70\" WIDTH=\"120\" BORDER=\"0\" SRC=\""+tlk_is+"\" ALT=\""+tlk_msg+"\" oncontextmenu=\"return false;\"></A>");
}
else { 
 document.write("<A TABINDEX=\"-1\" HREF=\""+tlk_rsip+"\" onclick=\"return tlk_md();\" target=\"tlk_SIP\"><IMG NAME=\"trsulktbl\" HEIGHT=\"70\" WIDTH=\"120\" BORDER=\"0\" SRC=\""+tlk_is+"\" ALT=\""+tlk_msg+"\" oncontextmenu=\"return false;\"></A>");
}
if (document.addEventListener){
 document.addEventListener('mouseup',tlk_dc,true);
}
else {
 if (document.layers){
  document.captureEvents(Event.MOUSEDOWN);
 }
 document.onmousedown=tlk_dc;
}
var tlk_ver=-1;
var tlk_re=new RegExp("msie ([0-9]{1,}[\.0-9]{0,})");
if (tlk_re.exec(tlk_ua) != null)
 tlk_ver = parseFloat( RegExp.$1 );
if( tlk_isie && (tlk_ver>=7)) {
 var tlk_plat=-1;
 var tlk_re=new RegExp("windows nt ([0-9]{1,}[\.0-9]{0,})");
 if (tlk_re.exec(tlk_ua) != null)
  tlk_plat = parseFloat( RegExp.$1 );
 if ((tlk_plat >= 5.1)&&(tlk_plat < 6.0)) {
  document.write("<div style=\"display:none\">");
  document.write("<img src=\"" +tlk_is+"\" ALT=\""+tlk_msg+"\" />");
  document.write("</div>");
 }
}


// Current Page Reference
// copyright Stephen Chapman, 1st Jan 2005
// you may copy this function but please keep the copyright notice with it
function getURL(uri) {
	uri.dir = location.href.substring(0, location.href.lastIndexOf('\/'));
	uri.dom = uri.dir; if (uri.dom.substr(0,7) == 'http:\/\/') uri.dom = uri.dom.substr(7);
	uri.path = ''; var pos = uri.dom.indexOf('\/'); if (pos > -1) {uri.path = uri.dom.substr(pos+1); uri.dom = uri.dom.substr(0,pos);}
	uri.page = location.href.substring(uri.dir.length+1, location.href.length+1);
	pos = uri.page.indexOf('?');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
	pos = uri.page.indexOf('#');if (pos > -1) {uri.page = uri.page.substring(0, pos);}
	uri.ext = ''; pos = uri.page.indexOf('.');if (pos > -1) {uri.ext =uri.page.substring(pos+1); uri.page = uri.page.substr(0,pos);}
	uri.file = uri.page;
	if (uri.ext != '') uri.file += '.' + uri.ext;
	if (uri.file == '') uri.page = 'index';
	uri.args = location.search.substr(1).split("?");
	return uri;
}


                  