//
// Platform and browser detect variables
//

var isUnix = false;
var isLinux = false;
var isMacintoshPPC = false;
var isMacintosh68K = false;
var isWindows95 = false;
var isWindows98 = false;
var isWindowsNT= false;
var isWindows3x = false;

var isNew = false;
var isIE = false;
var isIE4 = false;
var isIE5 = false;
var isNetscape = false;
var isNetscape4 = false;
var isNetscape6 = false;

var userAgent = navigator.userAgent.toLowerCase();
var appName = navigator.appName;
var appVersion = parseInt(navigator.appVersion);
var platform = (navigator.platform).substring (0, 5);

// Browser detection
if (appVersion > 5) isNew = true;
else if (appName == "Netscape") {
  isNetscape = true;
  if (appVersion == 4) isNetscape4 = true;
  else if (appVersion == 5) isNetscape6 = true;
}
else if (appName == "Microsoft Internet Explorer") {
  isIE = true;
  if (appVersion == 4) {
    isIE4 = true;
    if (msieversion() == 5) isIE5 = true;
  }
}

function msieversion() {
  var ua = window.navigator.userAgent
  var msie = ua.indexOf ( "MSIE " )
  if ( msie > 0 ) return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
  else return 0;
}

// Platform detection
if ( ( userAgent.indexOf("win95") !=-1) || ( userAgent.indexOf("windows 95") !=-1) ) isWindows95 = true;
if ( ( userAgent.indexOf("win98") !=-1) || ( userAgent.indexOf("windows 98") !=-1) ) isWIndows98 = true;
if ( ( userAgent.indexOf("winnt") !=-1) || ( userAgent.indexOf("windows nt") !=-1) ) isWindowsNT= true;
if ( ( userAgent.indexOf("win16") !=-1) || ( userAgent.indexOf("windows 3.1") !=-1) ) isWindows3x = true;
if ( navigator.appVersion.indexOf("Mac") != -1 ) {
  if ( userAgent.indexOf("pc)") !=-1 ) isMacintoshPPC = true;
  else isMacintosh68K = true;
}
if ( platform == "SunOS" ) isUnix = true;
else if ( platform == "HP-UX" ) isUnix = true;
else if ( platform == "IRIX " ) isUnix = true;
else if ( ( ( navigator.platform ).substring (0, 3) ) == "AIX" ) isUnix = true;
else if ( userAgent.indexOf("linux") != -1 ) isLinux = true;

// Added by Chris to support existing hsbc functions

if(isIE || isIE4 || isIE5) ie=true;
else ie=false;
if(isMacintoshPPC || isMacintosh68K) mac=true;
else mac=false;
if(isWindowsNT) nt=true;
else nt=false;
if(isUnix || isLinux) unix=true;
else unix=false;
if(navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.indexOf("5.5") != -1) ie5_5=true;
else ie5_5=false;

//
// Generic functions
//

//This preloads the images. See the body tag for the syntax to do this for an image
function imageLoad() {
        if (document.images) {
                var imgFileArg = imageLoad.arguments;
                imgFileStr = imgFileArg[0];
                var imgFiles = imageLoad.arguments;
                if (imgFileStr != null && imgFileStr.indexOf("'") > -1 ) {
                        imgFileStr = imgFileStr.substring(1,imgFileStr.length-1);
                        imgFiles = imgFileStr.split("','");
                }
                if (document.preloadArray==null) document.preloadArray = new Array();
                var i = document.preloadArray.length;
                with (document) for (var j=0; j<imgFiles.length; j++){
                        preloadArray[i] = new Image;
                        preloadArray[i++].src = imgFiles[j];
                } 
        }
}

function swapImage(layerStem,imageSpace,imageName) {
  var ns4 = (document.layers)? true:false;
  var ie4 = (document.all)? true:false;
	if(!ie){	if(layerStem == ""){imageObj = document.images[imageSpace];}
				else
			{imageObj = eval(layerStem+".document.images[imageSpace]");}
		}
	if(ie){imageObj = document.all[imageSpace]}

        imageObj.src = imageName;

}

// Used for selecting window size
function openWindow(winUrl, winName, properties) {

switch (properties) {

    case "win_a":
        newWindow = window.open(winUrl,winName,"scrollbars,menubar,toolbar,resizable,HEIGHT=460,WIDTH=790");
        newWindow.focus();
	break

    case "win_b":
	  	var enhancePopup = true;	
		var checkPath1 = winUrl.indexOf("www.login.hsbc.com");		// hard coded path 1
		var checkPath2 = winUrl.indexOf("www.register.hsbc.com");	// hard coded path 2

		if(checkPath1 > -1 || checkPath2 > -1) // special handling for the URLs
		{
			var appName = navigator.appName.toLowerCase();
			var appVersion = parseFloat(navigator.appVersion);

			if(appName.indexOf("netscape") > -1 && !isNaN(appVersion) && appVersion >= 5 ) // netscape 6.0+
			{
				var appProduct = navigator.product.toLowerCase();
				if(appProduct.indexOf("gecko") > -1) // Gecko is being used
				{
					if(navigator.vendorSub != "6.2") // skip Netscape 6.2
					{
						if(!isNaN(parseFloat(navigator.vendorSub)) && parseFloat(navigator.vendorSub) >= 6.2) // Should be Netscape 6.21+
						{
							enhancePopup = false;
						}				
					}
				}
				else // Gecko is not being used
				{
					var ua = navigator.userAgent.toLowerCase();
					var ns6_index = ua.lastIndexOf("netscape6");
					var versionNum = 0;
				
					if(ns6_index > -1)  // Netscape 6
					{
						if(ua.substring(ns6_index+10, ua.length) != "6.2")
						{
							versionNum = parseFloat(ua.substring(ns6_index+10, ua.length));
						}
					}	
					else
					{
						var ns_index = ua.lastIndexOf("netscape");
						if(ns_index > -1)  // Netscape 7 or +
						{
							versionNum = parseFloat(ua.substring(ns_index+9, ua.length));
						}
					}
					if(!isNaN(versionNum) && versionNum >= 6.2)
					{
						enhancePopup = false;
					}
				}		
			}
		}
		if(enhancePopup) // usual case
		{
			newWindow = window.open(winUrl,winName,"scrollbars,HEIGHT=470,WIDTH=525");
			newWindow.focus();
		}
		else
		{
			self.location.href=winUrl;
		}
	break

    case "win_b_no_scroll":
        newWindow = window.open(winUrl,winName,"HEIGHT=470,WIDTH=525");
        newWindow.focus();
        break
		
	
	
    default:
		if(properties==undefined)
			{
				
				newWindow = window.open(winUrl,winName,"scrollbars=yes,menubar=no,toolbar=no,resizable=no,HEIGHT=410,WIDTH=680");
        		newWindow.focus();
			}
		else
			{
									
				newWindow = window.open(winUrl,winName,properties);
        		newWindow.focus();
			}
    }
}  

function drop(selSelectObject)
{
	var val=selSelectObject.options[selSelectObject.selectedIndex].value;
	if (val !="")  
	  document.findyounearest.where.selectedIndex=0;
	  window.open (val,"","width=800,height=555,scrollbars=yes ,menubar=no,location=no,left=0,top=0");
}
function drop2(selSelectObject)
{
	var val=selSelectObject.options[selSelectObject.selectedIndex].value;
	if (val !="")  
	  document.findyounearest.where.selectedIndex=0;
	  //window.open (val,"","width=680,height=410,scrollbars=yes ,menubar=yes,location=yes,left=0,top=0,Resize=yes");
	  open(val);
}

//Closes the current window
function windowClose(){
  window.close();
}

function nrinav()
	{
		var count=0;
		var ca = document.cookie.split(";");
		var d2;
		var count=0;
		
		for(var i=0;i < ca.length;i++)
			{
				var c = ca[i];
				var ckval=ca[i].split("=")
				var d1=ckval[0]
				
				if(d1.match("sessioncookie"))
					{
						d2=ckval[1]
											
					}
				
				}
				if(d2=="/nri/uk.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/uk_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/uk.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/uk.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/europe.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/europe_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/europe.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/europe.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/middleeast.htm")
					{
						
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/middleeast_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/middleeast.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/middleeast.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/northamerica.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/usa_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/usa.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/usa.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/africa.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/africa_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/africa.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/africa.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/southeastasia.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/southeastasia_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/southeastasia.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/southeastasia.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/others.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/others_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/others.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/others.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/canada.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/canada_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/canada.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/canada.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
				if(d2=="/nri/australia.htm")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/australia_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/australia.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/australia.gif' width='115' height='27' alt='' border='0'></a></td>")
						count=count+1;
					}
	
				//alert(count)
				if(count=="0")
					{
						document.write("<td onmouseover='this.className=\"top_navbg_mo\";document.images[\"select\"].src=\"/nri/images/topnav/select_region_mo.gif\";' onmouseout='this.className=\"top_navbg\";document.images[\"select\"].src=\"/nri/images/topnav/select_region.gif\";' width='137' align='center'><a href='/nri/default.htm?chk=NO'><img name='select' src='/nri/images/topnav/select_region.gif' width='100' height='16' alt='' border='0'></a></td>")
							
					}

	}
	
function createsessioncookie(ref)
	{
			var date = new Date();
			date.setTime(date.getTime()+(10000*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
			document.cookie = "sessioncookie"+"="+ref
		
	}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Web Trends JavaScipt Code/////////////////////////////////////////
var gService = true; 
var gTimeZone = -8; 
// Code section for Enable First-Party Cookie Tracking 
function dcsCookie(){ 
        if (typeof(dcsOther)=="function"){ 
                dcsOther(); 
        } 
        else if (typeof(dcsPlugin)=="function"){ 
                dcsPlugin(); 
        } 
        else if (typeof(dcsFPC)=="function"){ 
                dcsFPC(gTimeZone); 
        } 
} 
function dcsGetCookie(name){ 
        var pos=document.cookie.indexOf(name+"="); 
        if (pos!=-1){ 
                var start=pos+name.length+1; 
                var end=document.cookie.indexOf(";",start); 
                if (end==-1){ 
                        end=document.cookie.length; 
                } 
                return unescape(document.cookie.substring(start,end)); 
        } 
        return null; 
} 
function dcsGetCrumb(name,crumb){ 
        var aCookie=dcsGetCookie(name).split(":"); 
        for (var i=0;i<aCookie.length;i++){ 
                var aCrumb=aCookie[i].split("="); 
                if (crumb==aCrumb[0]){ 
                        return aCrumb[1]; 
                } 
        } 
        return null; 
} 
function dcsFPC(offset){ 
        if (typeof(offset)=="undefined"){ 
                return; 
        } 
        var name=gFpc; 
        var dCur=new Date(); 
        dCur.setTime(dCur.getTime()+(dCur.getTimezoneOffset()*60000)+(offset*3600000)); 
        var dExp=new Date(dCur.getTime()+315360000000); 
        var dSes=new Date(dCur.getTime()); 
        if (document.cookie.indexOf(name+"=")!=-1){ 
                var id=dcsGetCrumb(name,"id"); 
                var lv=parseInt(dcsGetCrumb(name,"lv")); 
                var ss=parseInt(dcsGetCrumb(name,"ss")); 
                if ((id==null)||(id=="null")||isNaN(lv)||isNaN(ss)){ 
                        return; 
                } 
                WT.co_f=id; 
                WT.vt_f="0"; 
                WT.vt_f_a="0"; 
                var dLst=new Date(lv); 
                dSes.setTime(ss); 
                if ((dCur.getTime()>(dLst.getTime()+1800000))||(dCur.getTime()>(dSes.getTime()+28800000))){ 
                        dSes.setTime(dCur.getTime()); 
                        WT.vt_f_s="1"; 
                } 
                if ((dCur.getDay()!=dLst.getDay())||(dCur.getMonth()!=dLst.getMonth())||(dCur.getYear()!=dLst.getYear())){ 
                        WT.vt_f_d="1"; 
                } 
        } 
        else{ 
                var tmpname=name+"_TMP="; 
                document.cookie=tmpname+"1"; 
                if (document.cookie.indexOf(tmpname)!=-1){ 
                        document.cookie=tmpname+"; expires=Thu, 01-Jan-1970 00:00:01 GMT"; 
                        if ((typeof(gWtId)!="undefined")&&(gWtId!="")){ 
                                WT.co_f=gWtId; 
                                WT.vt_f="0"; 
                        } 
                        else if ((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){ 
                                WT.co_f=gTempWtId; 
                                WT.vt_f="1"; 
                        } 
                        else{ 
                                WT.co_f="2"; 
                                var cur=dCur.getTime().toString(); 
                                for (var i=2;i<=(32-cur.length);i++){ 
                                        WT.co_f+=Math.floor(Math.random()*16.0).toString(16); 
                                } 
                                WT.co_f+=cur; 
                                WT.vt_f="1"; 
                        } 
                        WT.vt_f_a=(typeof(gWtAccountRollup)!="undefined")?"0":"1"; 
                        WT.vt_f_s="1"; 
                        WT.vt_f_d="1"; 
                } 
                else{ 
                        WT.vt_f="2"; 
                        WT.vt_f_a="2"; 
                        return; 
                } 
        } 
        WT.co_f=escape(WT.co_f); 
        WT.vt_sid=WT.co_f+"."+dSes.getTime(); 
        var expiry="; expires="+dExp.toGMTString(); 
        document.cookie=name+"="+"id="+WT.co_f+":lv="+dCur.getTime().toString()+":ss="+dSes.getTime().toString()+expiry+"; path=/"+(((typeof(gFpcDom)!="undefined")&&(gFpcDom!=""))?("; domain="+gFpcDom):("")); 
} 

// Code section for Use the new first-party cookie generated with this tag. 
var gFpc="WT_FPC"; 
var gWtId=""; 
var gTempWtId=""; 
if (gService){ 
        var gConvert=true; 
} 


function dcsMultiTrack(){ 
        for (var i=0;i<arguments.length;i++){ 
                if (arguments[i].indexOf('WT.')==0){ 
                                WT[arguments[i].substring(3)]=arguments[i+1]; 
                                i++; 
                } 
                if (arguments[i].indexOf('DCS.')==0){ 
                                DCS[arguments[i].substring(4)]=arguments[i+1]; 
                                i++; 
                } 
                if (arguments[i].indexOf('DCSext.')==0){ 
                                DCSext[arguments[i].substring(7)]=arguments[i+1]; 
                                i++; 
                } 
        } 
        var dCurrent=new Date(); 
        DCS.dcsdat=dCurrent.getTime(); 
        
} 


function dcsAdv(){ 
        dcsFunc("dcsCookie"); 
} 

//--> 


<!-- END OF SDC Advanced Tracking Code --> 

<!-- START OF SmartSource Data Collector TAG --> 
<!-- Copyright (c) 1996-2005 WebTrends Inc.  All rights reserved. --> 
<!-- V7.5 --> 
<!-- $DateTime: 2005/07/20 17:14:11 $ --> 
<!-- 
gVersion="1.0"; 
//--> 
<!-- 
gVersion="1.1"; 
//--> 
<!-- 
gVersion="1.2"; 
var RE={"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g}; 
//--> 
<!-- 
gVersion="1.3"; 
if (window.ActiveXObject){ 
        var gFV=""; 
        for (var gVer=2;gVer<=10;gVer++){ 
                try{ 
                        var gFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+gVer+"');"); 
                        if (gFlash){ 
                                gFV=gVer+".0"; 
                                break; 
                        } 
                } 
                catch(e){ 
                } 
        } 
} 
//--> 
<!-- 
gVersion="1.4"; 
//--> 
<!-- 
gVersion="1.5"; 
//--> 
<!-- 
var gImages=new Array; 
var gIndex=0; 
var DCS=new Object(); 
var WT=new Object(); 
var DCSext=new Object(); 
var gQP=new Array(); 


//--> 
<!-- 
function dcsVar(){ 
        var dCurrent=new Date(); 
        WT.tz=dCurrent.getTimezoneOffset()/60*-1; 
        if (WT.tz==0){ 
                WT.tz="0"; 
        } 
        WT.bh=dCurrent.getHours(); 
        WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage; 
        if (typeof(screen)=="object"){ 
                WT.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth; 
                WT.sr=screen.width+"x"+screen.height; 
        } 
        if (typeof(navigator.javaEnabled())=="boolean"){ 
                WT.jo=navigator.javaEnabled()?"Yes":"No"; 
        } 
        if (document.title){ 
                WT.ti=document.title; 
        } 
        WT.js="Yes"; 
        if (typeof(gVersion)!="undefined"){ 
                WT.jv=gVersion; 
        } 
        if (document.body&&document.body.addBehavior){ 
                document.body.addBehavior("#default#clientCaps"); 
                if (document.body.connectionType){ 
                        WT.ct=document.body.connectionType; 
                } 
                document.body.addBehavior("#default#homePage"); 
                WT.hp=document.body.isHomePage(location.href)?"1":"0"; 
        } 
        if (parseInt(navigator.appVersion)>3){ 
                if ((navigator.appName=="Microsoft Internet Explorer")&&document.body){ 
                        WT.bs=document.body.offsetWidth+"x"+document.body.offsetHeight; 
                } 
                else if (navigator.appName=="Netscape"){ 
                        WT.bs=window.innerWidth+"x"+window.innerHeight; 
                } 
        } 
        WT.fi="No"; 
        if (window.ActiveXObject){ 
                if ((typeof(gFV)!="undefined")&&(gFV.length>0)){ 
                                        WT.fi="Yes"; 
                        WT.fv=gFV; 
                } 
        } 
        else if (navigator.plugins&&navigator.plugins.length){ 
                for (var i=0;i<navigator.plugins.length;i++){ 
                        if (navigator.plugins[i].name.indexOf('Shockwave Flash')!=-1){ 
                                WT.fi="Yes"; 
                                WT.fv=navigator.plugins[i].description.split(" ")[2]; 
                                break; 
                        } 
                } 
        } 
//        WT.sp="@@SPLITVALUE@@"; 
        DCS.dcsdat=dCurrent.getTime(); 
        DCS.dcssip=window.location.hostname; 
        DCS.dcsuri=window.location.pathname; 
        if (window.location.search){ 
                DCS.dcsqry=window.location.search; 
                if (gQP.length>0){ 
                        for (var i=0;i<gQP.length;i++){ 
                                var pos=DCS.dcsqry.indexOf(gQP[i]); 
                                if (pos!=-1){ 
                                        var front=DCS.dcsqry.substring(0,pos); 
                                        var end=DCS.dcsqry.substring(pos+gQP[i].length,DCS.dcsqry.length); 
                                        DCS.dcsqry=front+end; 
                                } 
                        } 
                } 
        } 
        if ((window.document.referrer!="")&&(window.document.referrer!="-")){ 
                if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){ 
                        DCS.dcsref=window.document.referrer; 
                } 
        } 
} 

function A(N,V){ 
        return "&"+N+"="+dcsEscape(V); 
} 

function dcsEscape(S){ 
        if (typeof(RE)!="undefined"){ 
                var retStr = new String(S); 
                for (R in RE){ 
                        retStr = retStr.replace(RE[R],R); 
                } 
                return retStr; 
        } 
        else{ 
                return escape(S); 
        } 
} 

function dcsLoadHref(evt){ 
        if ((typeof(gHref)!="undefined")&&(gHref.length>0)){ 
                window.location=gHref; 
                gHref=""; 
        } 
} 

function dcsCreateImage(dcsSrc){ 
        if (document.images){ 
                gImages[gIndex]=new Image; 
                if ((typeof(gHref)!="undefined")&&(gHref.length>0)){ 
                        gImages[gIndex].onload=gImages[gIndex].onerror=dcsLoadHref; 
                } 
                gImages[gIndex].src=dcsSrc; 
                gIndex++; 
        } 
        else{ 
                document.write('<IMG BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+dcsSrc+'">'); 
        } 
} 

function dcsMeta(){ 
        var elems; 
        if (document.all){ 
                elems=document.all.tags("meta"); 
        } 
        else if (document.documentElement){ 
                elems=document.getElementsByTagName("meta"); 
        } 
        if (typeof(elems)!="undefined"){ 
                for (var i=1;i<=elems.length;i++){ 
                        var meta=elems.item(i-1); 
                        if (meta.name){ 
                                if (meta.name.indexOf('WT.')==0){ 
                                        WT[meta.name.substring(3)]=meta.content; 
                                } 
                                else if (meta.name.indexOf('DCSext.')==0){ 
                                        DCSext[meta.name.substring(7)]=meta.content; 
                                } 
                                else if (meta.name.indexOf('DCS.')==0){ 
                                        DCS[meta.name.substring(4)]=meta.content; 
                                } 
                        } 
                } 
        } 
} 



function dcsFunc(func){ 
        if (typeof(window[func])=="function"){ 
                window[func](); 
        } 
} 

dcsVar(); 
dcsMeta(); 
dcsFunc("dcsAdv"); 


 function highlightObject(buttonid)
{
	document.getElementById(buttonid).className="sm_sel";
}

 
//--> 