addLoadEvent(searchText)
addLoadEvent(clearText)
addLoadEvent(gotoURL) 
var defQueryVal = 'Search ';
var blank_pattern=/^[ \t\n]*$/;
function searchCheck(field)
      {
        if (field.value == defQueryVal)
          {
             field.value = '';
          }
        if (blank_pattern.test(field.value))
          {
             alert('Please type the word(s) you wish to search for.');
             field.focus();
             return false;
           }else 
                out(field.value,'s',field.value);
       return true;
       } 
function searchText()
    {
         var searchBox=document.getElementById('searchBox');
         searchBox.onblur=setText; 
    } 
function setText()
    {
    var searchBox=document.getElementById('searchBox');
        if(searchBox.value=='')
        {
        searchBox.value='Search ';
        }
    } 
function clearText()
    {
        var searchBox=document.getElementById('searchBox'); 
        searchBox.onfocus=clear;                
    } 
function clear()
    {
        var searchBox=document.getElementById('searchBox');
        if(searchBox.value=='Search ')
        { 
        searchBox.value='';
        }
    } 
/* ActiveX Object, Embed Javascript fix
   Code has been copied and modified from the Apple QuickTime Solution
   By RODl on 27th April 2006
   Functions to call from your HTML document include (don't forget the NOSCRIPT HTML): 
   U_WriteOBJECT(srcfile, width, height, classid, pluginspageURL, codebaseURL, 
                 param1, value1...param99, value99);
   U_WriteOBJECT_XHTML(srcfile, width, height, classid, pluginspageURL, codebaseURL, 
                 param1, value1...param99, value99);
*/
/************** LOCALIZABLE GLOBAL VARIABLES ****************/
var gArgCountErr =	'The \'%%\' function requires an even number of arguments.'
				+	'\nArguments should be in the form \'atttributeName\', \'attributeValue\', ...';
/******************** END LOCALIZABLE **********************/
var gTagAttrs				= null;
function _UComplain(callingFcnName)
{
	alert(gArgCountErr.replace('%%', callingFcnName));
}
function _UAddAttribute(prefix, slotName, tagName)
{
	var		value;
	value = gTagAttrs[prefix + slotName];
	if ( null == value )
		value = gTagAttrs[slotName];
	if ( null != value )
	{
		if ( 0 == slotName.indexOf(prefix) && (null == tagName) )
			tagName = slotName.substring(prefix.length); 
		if ( null == tagName ) 
			tagName = slotName;
		return tagName + '=\'' + value + '\' ';
	}
	else
		return '';
}
function _UAddObjectAttr(slotName, tagName)
{
	// don't bother if it is only for the embed tag
	if ( 0 == slotName.indexOf('emb#') )
		return '';
	if ( 0 == slotName.indexOf('obj#') && (null == tagName) )
		tagName = slotName.substring(4); 
	return _UAddAttribute('obj#', slotName, tagName);
}
function _UAddEmbedAttr(slotName, tagName)
{
	// don't bother if it is only for the object tag
	if ( 0 == slotName.indexOf('obj#') )
		return '';
	if ( 0 == slotName.indexOf('emb#') && (null == tagName) )
		tagName = slotName.substring(4); 
	return _UAddAttribute('emb#', slotName, tagName);
}
function _UAddObjectParam(slotName, generateXHTML)
{
	var		paramValue;
	var		paramStr = '';
	var		endTagChar = (generateXHTML) ? ' />' : '>';
	if ( -1 == slotName.indexOf('emb#') )
	{
		// look for the OBJECT-only param first. if there is none, look for a generic one
		paramValue = gTagAttrs['obj#' + slotName];
		if ( null == paramValue )
			paramValue = gTagAttrs[slotName];
		if ( 0 == slotName.indexOf('obj#') )
			slotName = slotName.substring(4); 
		if ( null != paramValue )
			paramStr = '  <param name=\'' + slotName + '\' value=\'' + paramValue + '\'' + endTagChar + '\n';
	}
	return paramStr;
}
function _UDeleteTagAttrs()
{
	for ( var ndx = 0; ndx < arguments.length; ndx++ )
	{
		var attrName = arguments[ndx];
		delete gTagAttrs[attrName];
		delete gTagAttrs['emb#' + attrName];
		delete gTagAttrs['obj#' + attrName];
	}
}
// generate an embed and object tag, return as a string
function _UGenerate(callingFcnName, generateXHTML, args)
{
	// is the number of optional arguments even?
	if ( args.length < 6 || (0 != (args.length % 2)) )
	{
		_UComplain(callingFcnName);
		return '';
	}
	// allocate an array, fill in the required attributes with fixed place params and defaults
	gTagAttrs = new Array();
	gTagAttrs['src'] = args[0];
	gTagAttrs['width'] = args[1];
	gTagAttrs['height'] = args[2];
	gTagAttrs['classid'] = args[3];
	gTagAttrs['pluginspage'] = args[4];
	// set up codebase attribute with specified or default version before parsing args so
	// anything passed in will override
	gTagAttrs['codebase'] = args[5];
	var	attrName,
		attrValue;
	// add all of the optional attributes to the array
	for ( var ndx = 6; ndx < args.length; ndx += 2)
	{
		attrName = args[ndx].toLowerCase();
		attrValue = args[ndx + 1];
		// 'name' and 'id' should have the same value, the former goes in the embed and the later goes in
		//  the object. use one array slot 
		if ( 'name' == attrName || 'id' == attrName )
			gTagAttrs['name'] = attrValue;
		else 
			gTagAttrs[attrName] = attrValue;
	}
	// init both tags with the required and 'special' attributes
	var objTag =  '<object '
					+ _UAddObjectAttr('classid')
					+ _UAddObjectAttr('width')
					+ _UAddObjectAttr('height')
					+ _UAddObjectAttr('codebase')
					+ _UAddObjectAttr('name', 'id')
					+ _UAddObjectAttr('tabindex')
					+ _UAddObjectAttr('hspace')
					+ _UAddObjectAttr('vspace')
					+ _UAddObjectAttr('border')
					+ _UAddObjectAttr('align')
					+ _UAddObjectAttr('class')
					+ _UAddObjectAttr('title')
					+ _UAddObjectAttr('accesskey')
					+ _UAddObjectAttr('noexternaldata')
					+ '>\n'
					+ _UAddObjectParam('src', generateXHTML);
	var embedTag = '  <embed '
					+ _UAddEmbedAttr('src')
					+ _UAddEmbedAttr('width')
					+ _UAddEmbedAttr('height')
					+ _UAddEmbedAttr('pluginspage')
					+ _UAddEmbedAttr('name')
					+ _UAddEmbedAttr('align')
					+ _UAddEmbedAttr('tabindex');
	// delete the attributes/params we have already added
	_UDeleteTagAttrs('src','width','height','pluginspage','classid','codebase','name','tabindex',
					'hspace','vspace','border','align','noexternaldata','class','title','accesskey');
	// and finally, add all of the remaining attributes to the embed and object
	for ( var attrName in gTagAttrs )
	{
		attrValue = gTagAttrs[attrName];
		if ( null != attrValue )
		{
			embedTag += _UAddEmbedAttr(attrName);
			objTag += _UAddObjectParam(attrName, generateXHTML);
		}
	} 
	// end both tags, we're done
	return objTag + embedTag + '> </em' + 'bed>\n</ob' + 'ject' + '>';
}
// return the object/embed as a string
function U_GenerateOBJECTText()
{
	return _UGenerate('U_GenerateOBJECTText', false, arguments);
}
function U_GenerateOBJECTText_XHTML()
{
	return _UGenerate('U_GenerateOBJECTText_XHTML', true, arguments);
}
function U_WriteOBJECT()
{
	document.writeln(_UGenerate('U_WriteOBJECT', false, arguments));
}
function U_WriteOBJECT_XHTML()
{
	document.writeln(_UGenerate('U_WriteOBJECT_XHTML', true, arguments));
}
/* The  gotoURL function for the drop down lists
*/
 
function gotoURL(myForm,mySelect,popup)
	{


	if (myForm && mySelect && popup)
		{
		var myOpen = eval('document.' + myForm + '.' + mySelect + '.value');
			
			if (popup == 'true')
				{
				window.open(myOpen);
				}
			else
				{
				window.location=myOpen;
				}
			
		}
	}
 
/*
 addLoadEvent by Simon Willison
 http://www.sitepoint.com/blog-post-view.php?id=171578
 
 works in Opera 7.5, FireFox IE 5, 5.5 and 6 for Windows; 
 IE 5 and Safari for Mac; Opera 7.5 and FireFox on Mac
*/
 
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
 
 
function SharePriceChange(change){
        if  (change > 0 ){
             return ' <img src="/Images/up_arrow.gif" alt="up">';
        }else{
            if (change < 0) {
                return  ' <img src="/Images/down_arrow.gif" alt="down">';
            }else{
                return  ' ';
            }
       }
}
 
function displayRow(sName, sDisplayName, sCurrency){  
  /* 20-02-06 Replaced 'sHigh' with 'sSharePrice' - ROD
  /* sHigh = eval(sName + '_High') */
  /* 20-02-06 Replaced 'sChangePct' with 'sChange' - ROD */
  var sChangePct = eval(sName + '_ChangePct');
  var sSharePrice = eval(sName + '_SharePrice');
  document.write ('<tr><td class="firstRow">' + sDisplayName + '</td><td>' + sCurrency + '</td><td class="textright">'+ sSharePrice + '</td><td class="textcenter">'+ sChangePct + '</td><td>' + SharePriceChange(sChangePct) +'</td></tr>');
}
 

// 18-02-05 
// flash player 6 detection
// 29-01-08 Removed the flash player javascript garbage - ROD
var MM_contentVersion = 6;
var MM_FlashCanPlay = true;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;


function Is () {
	var agt=navigator.userAgent.toLowerCase();
	var txtShort = "WinNT4.0";
	var txtLong = "Windows NT 4.0";
	var txtAztec = "Aztec";
	
	this.NotNT4 = false;
	
	if (agt.indexOf(txtShort.toLowerCase())==-1) {
		if (agt.indexOf(txtLong.toLowerCase())==-1) {
			this.NotNT4 = true;
		}
		else
		{
			/*
			** Debug Code
  			**
			** alert('Wheel Debug\n\nNT4 detected; Flash disabled.');
			*/
		}
	}
	else
	{
		/*
		** Debug Code
  		**
		** alert('Wheel Debug\n\nNT4 detected; Flash disabled.');
		*/
	}
	
	this.NotAztec = false;
	
	if (agt.indexOf(txtAztec.toLowerCase())==-1) {
		this.NotAztec = true;
	}
	else
	{
		/*
		** Debug Code
	  	**
		** alert('Wheel Debug\n\nAztec detected; Flash disabled.');
		*/
	}
}

function goBadega(url)
{
var str = 'http:\/\/korma.unilever.com/cc/specmail.nsf/enquiry?open&country='+url;
window.open(str,'printWindow','location=yes,menubar=yes,scrollbars=yes,resizable=yes,width=655,height=635');
}function displayInDIV(DIVid,selectListObject){
document.getElementById(DIVid).innerHTML = selectListObject.value;           
}
//-----------------------------------------------------
// Check for URL parameter and the country name
// this is the case for the careers contact us
// assumes. Pass the DIV id where the country should be displayed
// as parameter
//-----------------------------------------------------
function checkQs(DIVid,selectListId) { //
var list
var text
if (document.location.search.length > 1){ // Get country name
var text = document.location.search.toLowerCase();
text = text.replace("?","");
text = text.replace("_","");
list = document.getElementById(selectListId);
for (i = 0; i <= list.length; i++){
      
if (list.options[i].text.toLowerCase() == text){
list.options[i].selected = true;
displayInDIVbyId(DIVid,selectListId)
continue;
}
}
}
}

function displayInDIVbyId(DIVid,selectListId){
var list, i
list = document.getElementById(selectListId);
i = list.selectedIndex;
document.getElementById(DIVid).innerHTML = list.options[i].value;           
}


var selected

function toggleDisplay(list){
var i, me, id
    if (selected){
    selected.style.display="none";
    }

    id=list.options[list.selectedIndex].text;

    try {
      me = document.getElementById(id.replace(/\ /g,'_'));
      selected = me

      if (selected) {
    
		if (me.style.display=="block"){
			me.style.display="none";
			}
		else {
			if (me.style.display=="none"){
				me.style.display="block";
				}
			else {
				me.style.display="block";
				}
       			}
      }
    } catch(e) {
      /* do nothing with the error */
    }
  }

/* ---------------------------------------------------------------------------------------------------------------------------- */
/* 
	function checkNotFirst 
	Created on 4th July 2007
	Checks a specified 'select' object  to see if the selected option is not the first option
*/
		function checkNotFirst(oSelect)
		{
			var bNotFirst = false;
			if (oSelect) {
				if (oSelect.tagName == 'SELECT') {
					if (oSelect.selectedIndex > 0) {
						bNotFirst = true;
					}
				}
			}
			return bNotFirst;
		}
/* ---------------------------------------------------------------------------------------------------------------------------- */
		function myaddEvent(obj, evType, fn){ 
		 if (obj.addEventListener){ 
		   obj.addEventListener(evType, fn, false); 
		   return true; 
		 } else if (obj.attachEvent){ 
		   var r = obj.attachEvent("on"+evType, fn); 
		   return r; 
		 } else { 
		   return false; 
		 } 
		}

		var iFlashMovieCnt = 0;
		function createFlashMovie(iWidth, iHeight, sBgColour, bBtnMenu, bAllowFS, bBtnFS, bAutoPlay, bLoop, bBtnLoop, bBtnPlayList, sScale, sSplash, sSplashParams, sMovie, sMovieParams, sPlayList, sConfig, bHideBtns, bUseFlash9FS, sConfigMisc, iSection, sReplacementMovieDiv, sScriptAccess)
		{
			if (typeof(iSection) == 'undefined') {
				var iSection = 0;
			}
		
			//apply fix to script access
			var sScriptAccessValue = 'always';
			if (typeof(sScriptAccess) != 'undefined') {
				sScriptAccessValue = sScriptAccess;
			}

			//apply fix to event writeout flash (else IE has a partial page load)
			//08-01-2009 replaced '&' with 'and' - ROD
			var sVideoTitle = document.title.replace(/(\'|\")/g,'').replace(/(\&amp\;|\&)/g,'and');

			if (typeof(sReplacementMovieDiv) == 'undefined') {
				document.writeln('\<div id=\"tflashvid' + iFlashMovieCnt + '\" style=\"width: ' + iWidth + 'px; height: ' + iHeight + 'px; background-color: #e0e0e0;\"\>');
				document.writeln ('\<' + '\/div' + '\>');
				sReplacementMovieDiv = 'tflashvid' + iFlashMovieCnt;
			}
			
			if (bBtnMenu != true) { bBtnMenu = false; }
			if (bAllowFS != true) { bAllowFS = false; }
			if (bBtnFS != true) { bBtnFS = false; }
			if (bAutoPlay != true) { bAutoPlay = false; }
			if (bLoop != true) { bLoop = false; }
			if (bBtnLoop != true) { bBtnLoop = false; }
			if (bBtnPlayList != true) { bBtnPlayList = false; }
			if (bHideBtns != true) { bHideBtns = false; }
			if (bUseFlash9FS != true) { bUseFlash9FS = false; }

			iFlashMovieCnt++;
			var sFlashMovieFSJS = "/include/js/flashmoviefs.js";

			var sFlashPlayer;
			
			switch(iSection) {
				case 1:
					sFlashPlayer = "/images/FlowPlayerorange.swf";
					break;
				case 2:
					sFlashPlayer = "/images/FlowPlayergreen.swf";
					break;
				case 3:
					sFlashPlayer = "/images/FlowPlayer.swf";
					break;
				case 4:
					sFlashPlayer = "/images/FlowPlayerBlue.swf";
					break;
				case 9:
					sFlashPlayer = "/images/FlowPlayer-network.swf";
					break;
				default:
					sFlashPlayer = "/images/FlowPlayer.swf";
					break;
			}
			
			var sFlashID = "FlashMovie" + iFlashMovieCnt;
			var sPStart = "\<" + "param name=\"";
			var sPMiddle = "\" value=\"";
			var sPEnd = "\" \/" + "\>\n";

			// Add random seed to player swf
			sFlashPlayer = sFlashPlayer + '?r=' + new Date().getTime();

			// start object...
			var sFlashOutput = "\<object id=\"" + sFlashID + "\" name=\"" + sFlashID + "\"";
				sFlashOutput += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\"";
				sFlashOutput += " classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
				sFlashOutput += " width=\"" + iWidth + "\"";
				sFlashOutput += " height=\"" + iHeight + "\"";
				sFlashOutput += "\/" + "\>\n";

				//added 'wmode' transparency to enable content over video
				sFlashOutput += sPStart + "wmode" + sPMiddle + "transparent" + sPEnd;
				sFlashOutput += sPStart + "bgcolor" + sPMiddle + sBgColour + sPEnd;
				sFlashOutput += sPStart + "movie" + sPMiddle + sFlashPlayer + sPEnd;
				sFlashOutput += sPStart + "quality" + sPMiddle + "high" + sPEnd;
				sFlashOutput += sPStart + "allowScriptAccess" + sPMiddle + sScriptAccessValue + sPEnd;
if (bUseFlash9FS) {
				sFlashOutput += sPStart + "allowfullscreen" + sPMiddle + "true" + sPEnd;
}

				sFlashOutput += sPStart + "flashvars" + sPMiddle + "config={ ";
				if (sConfig == '') {
					sFlashOutput += "googleAnalyticsPrefix: \'" + sVideoTitle + "\', ";
					sFlashOutput += "baseURL: \'\', ";
					sFlashOutput += "hideControls: " + bHideBtns + ", ";
					sFlashOutput += "autoPlay: " + bAutoPlay + ", ";
					sFlashOutput += "loop: " + bLoop + ", ";
					sFlashOutput += "initialScale: \'" + sScale + "\', ";
					sFlashOutput += "showLoopButton: " + bBtnLoop + ", ";
					sFlashOutput += "showMenu: " + bBtnMenu + ", ";
					sFlashOutput += "showFullScreenButton: " + bBtnFS + ", ";
					sFlashOutput += "showPlayListButtons: " + bBtnPlayList + ", ";
					sFlashOutput += "autoBuffering: " + true + ", ";
if (bUseFlash9FS) {
					sFlashOutput += "useNativeFullScreen: " + true + ", ";
} else {
					sFlashOutput += "fullScreenScriptURL: \'" + sFlashMovieFSJS + "\', ";
}

if (sConfigMisc != '') {
					sFlashOutput += sConfigMisc + ", ";
}
					sFlashOutput += "playList: "
					if (sPlayList == '') {
						if (sSplash != "") {
							sSplash = " url: \'" + sSplash + "\'";
							if (sSplashParams != "") {
								sSplash += ", " + sSplashParams;
							}
							sSplash += " }, {";
						}
						sMovie = " url: \'" + sMovie + "\'";
						if (sMovieParams != "") {
							sMovie += ", " + sMovieParams;
						}
						sFlashOutput += "[ {" + sSplash + sMovie + " } ] }";
					} else {
						sFlashOutput += sPlayList + " }";
					}
				} else {
					sFlashOutput += sConfig;
				}
				sFlashOutput += sPEnd;
				
					// start embed...
					sPStart = " ";
					sPMiddle = "=\"";
					sPEnd = "\" ";
	

					sFlashOutput += "\<embed id=\"" + sFlashID + "\" name=\"" + sFlashID + "\"";
					sFlashOutput += " type=\"application/x-shockwave-flash\"";
					sFlashOutput += " src=\"" + sFlashPlayer + "\"";
					sFlashOutput += " width=\"" + iWidth + "\"";
					sFlashOutput += " height=\"" + iHeight + "\"";
					sFlashOutput += " pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"";
					sFlashOutput += " quality=\"high\"";
					sFlashOutput += " allowscriptaccess=\"" + sScriptAccessValue + "\"";
					sFlashOutput += " bgcolor=\"" + sBgColour + "\"";

if (bUseFlash9FS) {
					sFlashOutput += " allowfullscreen=\"true\"";
}
					//added 'wmode' transparency to enable content over video
					sFlashOutput += sPStart + "wmode" + sPMiddle + "transparent" + sPEnd;
					sFlashOutput += sPStart + "flashvars" + sPMiddle + "config={ ";
					if (sConfig == '') {
						sFlashOutput += "googleAnalyticsPrefix: \'" + sVideoTitle + "\', ";
						sFlashOutput += "baseURL: \'\', ";
						sFlashOutput += "hideControls: " + bHideBtns + ", ";
						sFlashOutput += "autoPlay: " + bAutoPlay + ", ";
						sFlashOutput += "loop: " + bLoop + ", ";
						sFlashOutput += "initialScale: \'" + sScale + "\', ";
						sFlashOutput += "showLoopButton: " + bBtnLoop + ", ";
						sFlashOutput += "showMenu: " + bBtnMenu + ", ";
						sFlashOutput += "showFullScreenButton: " + bBtnFS + ", ";
						sFlashOutput += "showPlayListButtons: " + bBtnPlayList + ", ";
						sFlashOutput += "autoBuffering: " + true + ", ";
if (bUseFlash9FS) {
						sFlashOutput += "useNativeFullScreen: " + true + ", ";
} else {
						sFlashOutput += "fullScreenScriptURL: \'" + sFlashMovieFSJS + "\', ";
}

if (sConfigMisc != '') {
						sFlashOutput += sConfigMisc + ", ";
}
						sFlashOutput += "playList: "
		
						if (sPlayList == '') {
							sFlashOutput += "[ {" + sSplash + sMovie + " } ] }";
						} else {
							sFlashOutput += sPlayList + " }";
						}
					} else {
						sFlashOutput += sConfig;
					}
					sFlashOutput += sPEnd;
	
					sFlashOutput += "\/" + "\>\n";
					// end embed...

				sFlashOutput += "\<" + "\/object" + "\>\n";
				// end object...
				
				//document.writeln(sFlashOutput);
				
				//apply fix to work with redesign div (video_...) method, disabling event
				if (sReplacementMovieDiv.indexOf('video_') >=0) {
						var otflashvid = document.getElementById(sReplacementMovieDiv);
						if (otflashvid) {
							otflashvid.innerHTML = sFlashOutput;
						}
						otflashvid = null;
				} else {
				//apply fix to event writeout flash (else IE has a partial page load)
					myaddEvent(window, 'load', function() {
						try {
							var otflashvid = document.getElementById(sReplacementMovieDiv);
							if (otflashvid) {
								otflashvid.innerHTML = sFlashOutput;
							}
							otflashvid = null;
						} catch(e) {
						}
					});
				}
		}

		function consoleLog(sLog) {
			if (typeof(console) != 'undefined') {
				try {
					//console.log(sLog);
				} catch(e) {
				}
			}
		}
		
		function setDivHTML(sThisDiv, sThisHTML) {
			consoleLog("changing play state: " + sThisHTML);
			var oThisDiv = document.getElementById(sThisDiv);
			if (oThisDiv) {
				oThisDiv.innerHTML = sThisHTML;
			}
		}

		var urchinTrackerFR = true;
		var urchinTrackerNowPlaying = false;
		// flowplayer works with google analytics, now it'll work with webtrends too!
		function urchinTracker(a) {
			try {
				consoleLog("urchin tracker: " + a);
				var thisPrefix = 'Video: ';
				if (typeof(a) != 'undefined') {
					if ((a.indexOf('.flv') >= 0) || (a.indexOf('.FLV') >= 0)) {
						if (a.indexOf('/') != -1) {
							var aSplit = a.split('/');
							var thisTitle = aSplit[1];
							var thisEvent = aSplit[2].toLowerCase();
							var thisHost = window.location.host;
							var thisPath = window.location.href.split(thisHost);
							if (thisPath.length > 1) {
								thisPath = thisPath[1];
								if (thisPath.indexOf('?') >= 1) {
									thisPath = thisPath.split('?')[0];
								}
								if (thisPath == '') {
									thisPath = '/';
								}
							} else {
								thisPath = '/';
							}

							//detect and control now playing display
							if (typeof(sNowPlayingDiv) != 'undefined') {
								if (!urchinTrackerNowPlaying) {
									urchinTrackerNowPlaying = true;
								} else {
									switch (thisEvent) {
										case 'start':
											setDivHTML(sNowPlayingDiv, sNowPlayingHTML);
											break;
										case 'resume':
											setDivHTML(sNowPlayingDiv, sNowPlayingHTML);
											break;
										case 'pause':
											setDivHTML(sNowPlayingDiv, sNowPausedHTML);
											break;
										case 'finish':
											setDivHTML(sNowPlayingDiv, '');
											break;
									}
								}
							}

							//webstatistics
							if (thisEvent == 'resume' || thisEvent == 'pause') {
								if ((urchinTrackerFR) && (thisEvent == 'resume')) {
									urchinTrackerFR = false;
									if (typeof(DCS.dcsqry) != 'undefined') {
										//consoleLog("OLD DCS.dcsqry: " + DCS.dcsqry);
									}
									DCS.dcsqry = '?linkid=video';
									// Uses webtrends to record playback statistics
									dcsMultiTrack("DCS.dcssip",thisHost,"DCS.dcsuri",thisPath,"WT.ti",thisPrefix + thisTitle + ' (played)');
								}
							}
						} else {
							//consoleLog('no /:' + a);
						}
					} else {
						//consoleLog('no .flv:' + a);
					}
				} else {
					//consoleLog('no a');
				}
			} catch(e) {
				consoleLog('error during javascript processing');
			}
		}
		
addLoadEvent(searchText)
addLoadEvent(clearText)
addLoadEvent(gotoURL) 
var defQueryVal = 'Search ';
var blank_pattern=/^[ \t\n]*$/;
function searchCheck(field)
      {
        if (field.value == defQueryVal)
          {
             field.value = '';
          }
        if (blank_pattern.test(field.value))
          {
             alert('Please type the word(s) you wish to search for.');
             field.focus();
             return false;
           }else 
                out(field.value,'s',field.value);
       return true;
       } 
function searchText()
    {
         var searchBox=document.getElementById('searchBox');
         searchBox.onblur=setText; 
    } 
function setText()
    {
    var searchBox=document.getElementById('searchBox');
        if(searchBox.value=='')
        {
        searchBox.value='Search ';
        }
    } 
function clearText()
    {
        var searchBox=document.getElementById('searchBox'); 
        searchBox.onfocus=clear;                
    } 
function clear()
    {
        var searchBox=document.getElementById('searchBox');
        if(searchBox.value=='Search ')
        { 
        searchBox.value='';
        }
    }/* ActiveX Object, Embed Javascript fix
   Code has been copied and modified from the Apple QuickTime Solution
   By RODl on 27th April 2006
   Functions to call from your HTML document include (don't forget the NOSCRIPT HTML): 
   U_WriteOBJECT(srcfile, width, height, classid, pluginspageURL, codebaseURL, 
                 param1, value1...param99, value99);
   U_WriteOBJECT_XHTML(srcfile, width, height, classid, pluginspageURL, codebaseURL, 
                 param1, value1...param99, value99);
*/
/************** LOCALIZABLE GLOBAL VARIABLES ****************/
var gArgCountErr =	'The \'%%\' function requires an even number of arguments.'
				+	'\nArguments should be in the form \'atttributeName\', \'attributeValue\', ...';
/******************** END LOCALIZABLE **********************/
var gTagAttrs				= null;
function _UComplain(callingFcnName)
{
	alert(gArgCountErr.replace('%%', callingFcnName));
}
function _UAddAttribute(prefix, slotName, tagName)
{
	var		value;
	value = gTagAttrs[prefix + slotName];
	if ( null == value )
		value = gTagAttrs[slotName];
	if ( null != value )
	{
		if ( 0 == slotName.indexOf(prefix) && (null == tagName) )
			tagName = slotName.substring(prefix.length); 
		if ( null == tagName ) 
			tagName = slotName;
		return tagName + '=\'' + value + '\' ';
	}
	else
		return '';
}
function _UAddObjectAttr(slotName, tagName)
{
	// don't bother if it is only for the embed tag
	if ( 0 == slotName.indexOf('emb#') )
		return '';
	if ( 0 == slotName.indexOf('obj#') && (null == tagName) )
		tagName = slotName.substring(4); 
	return _UAddAttribute('obj#', slotName, tagName);
}
function _UAddEmbedAttr(slotName, tagName)
{
	// don't bother if it is only for the object tag
	if ( 0 == slotName.indexOf('obj#') )
		return '';
	if ( 0 == slotName.indexOf('emb#') && (null == tagName) )
		tagName = slotName.substring(4); 
	return _UAddAttribute('emb#', slotName, tagName);
}
function _UAddObjectParam(slotName, generateXHTML)
{
	var		paramValue;
	var		paramStr = '';
	var		endTagChar = (generateXHTML) ? ' />' : '>';
	if ( -1 == slotName.indexOf('emb#') )
	{
		// look for the OBJECT-only param first. if there is none, look for a generic one
		paramValue = gTagAttrs['obj#' + slotName];
		if ( null == paramValue )
			paramValue = gTagAttrs[slotName];
		if ( 0 == slotName.indexOf('obj#') )
			slotName = slotName.substring(4); 
		if ( null != paramValue )
			paramStr = '  <param name=\'' + slotName + '\' value=\'' + paramValue + '\'' + endTagChar + '\n';
	}
	return paramStr;
}
function _UDeleteTagAttrs()
{
	for ( var ndx = 0; ndx < arguments.length; ndx++ )
	{
		var attrName = arguments[ndx];
		delete gTagAttrs[attrName];
		delete gTagAttrs['emb#' + attrName];
		delete gTagAttrs['obj#' + attrName];
	}
}
// generate an embed and object tag, return as a string
function _UGenerate(callingFcnName, generateXHTML, args)
{
	// is the number of optional arguments even?
	if ( args.length < 6 || (0 != (args.length % 2)) )
	{
		_UComplain(callingFcnName);
		return '';
	}
	// allocate an array, fill in the required attributes with fixed place params and defaults
	gTagAttrs = new Array();
	gTagAttrs['src'] = args[0];
	gTagAttrs['width'] = args[1];
	gTagAttrs['height'] = args[2];
	gTagAttrs['classid'] = args[3];
	gTagAttrs['pluginspage'] = args[4];
	// set up codebase attribute with specified or default version before parsing args so
	// anything passed in will override
	gTagAttrs['codebase'] = args[5];
	var	attrName,
		attrValue;
	// add all of the optional attributes to the array
	for ( var ndx = 6; ndx < args.length; ndx += 2)
	{
		attrName = args[ndx].toLowerCase();
		attrValue = args[ndx + 1];
		// 'name' and 'id' should have the same value, the former goes in the embed and the later goes in
		//  the object. use one array slot 
		if ( 'name' == attrName || 'id' == attrName )
			gTagAttrs['name'] = attrValue;
		else 
			gTagAttrs[attrName] = attrValue;
	}
	// init both tags with the required and 'special' attributes
	var objTag =  '<object '
					+ _UAddObjectAttr('classid')
					+ _UAddObjectAttr('width')
					+ _UAddObjectAttr('height')
					+ _UAddObjectAttr('codebase')
					+ _UAddObjectAttr('name', 'id')
					+ _UAddObjectAttr('tabindex')
					+ _UAddObjectAttr('hspace')
					+ _UAddObjectAttr('vspace')
					+ _UAddObjectAttr('border')
					+ _UAddObjectAttr('align')
					+ _UAddObjectAttr('class')
					+ _UAddObjectAttr('title')
					+ _UAddObjectAttr('accesskey')
					+ _UAddObjectAttr('noexternaldata')
					+ '>\n'
					+ _UAddObjectParam('src', generateXHTML);
	var embedTag = '  <embed '
					+ _UAddEmbedAttr('src')
					+ _UAddEmbedAttr('width')
					+ _UAddEmbedAttr('height')
					+ _UAddEmbedAttr('pluginspage')
					+ _UAddEmbedAttr('name')
					+ _UAddEmbedAttr('align')
					+ _UAddEmbedAttr('tabindex');
	// delete the attributes/params we have already added
	_UDeleteTagAttrs('src','width','height','pluginspage','classid','codebase','name','tabindex',
					'hspace','vspace','border','align','noexternaldata','class','title','accesskey');
	// and finally, add all of the remaining attributes to the embed and object
	for ( var attrName in gTagAttrs )
	{
		attrValue = gTagAttrs[attrName];
		if ( null != attrValue )
		{
			embedTag += _UAddEmbedAttr(attrName);
			objTag += _UAddObjectParam(attrName, generateXHTML);
		}
	} 
	// end both tags, we're done
	return objTag + embedTag + '> </em' + 'bed>\n</ob' + 'ject' + '>';
}
// return the object/embed as a string
function U_GenerateOBJECTText()
{
	return _UGenerate('U_GenerateOBJECTText', false, arguments);
}
function U_GenerateOBJECTText_XHTML()
{
	return _UGenerate('U_GenerateOBJECTText_XHTML', true, arguments);
}
function U_WriteOBJECT()
{
	document.writeln(_UGenerate('U_WriteOBJECT', false, arguments));
}
function U_WriteOBJECT_XHTML()
{
	document.writeln(_UGenerate('U_WriteOBJECT_XHTML', true, arguments));
}
/* The  gotoURL function for the drop down lists
*/
 
function gotoURL(myForm,mySelect,popup)
	{


	if (myForm && mySelect && popup)
		{
		var myOpen = eval('document.' + myForm + '.' + mySelect + '.value');
			
			if (popup == 'true')
				{
				window.open(myOpen);
				}
			else
				{
				window.location=myOpen;
				}
			
		}
	}
 
/*
 addLoadEvent by Simon Willison
 http://www.sitepoint.com/blog-post-view.php?id=171578
 
 works in Opera 7.5, FireFox IE 5, 5.5 and 6 for Windows; 
 IE 5 and Safari for Mac; Opera 7.5 and FireFox on Mac
*/
 
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
 
 
/*
function SharePriceChange(change){
        if  (change > 0 ){
             return ' <img src="/images/so_grow-ico.gif" alt="up">';
        }else{
            if (change < 0) {
                return  ' <img src="/images/so_fall-ico.gif" alt="down">';
            }else{
                return  ' ';
            }
       }
}

function displayRow(sName, sDisplayName, sCurrency){  
  var sChangePct = eval(sName + '_ChangePct');
  var sSharePrice = eval(sName + '_SharePrice');
  document.write ('<tr><td class="firstRow">' + sDisplayName + '</td><td>' + sCurrency + '</td><td class="textright">'+ sSharePrice + '</td><td class="textcenter">'+ sChangePct + '</td><td>' + SharePriceChange(sChangePct) +'</td></tr>');
}
*/ 

// 18-02-05 
// flash player 6 detection
// 29-01-08 Removed the flash player javascript garbage - ROD
var MM_contentVersion = 6;
var MM_FlashCanPlay = true;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;


function Is () {
	var agt=navigator.userAgent.toLowerCase();
	var txtShort = "WinNT4.0";
	var txtLong = "Windows NT 4.0";
	var txtAztec = "Aztec";
	
	this.NotNT4 = false;
	
	if (agt.indexOf(txtShort.toLowerCase())==-1) {
		if (agt.indexOf(txtLong.toLowerCase())==-1) {
			this.NotNT4 = true;
		}
		else
		{
			/*
			** Debug Code
  			**
			** alert('Wheel Debug\n\nNT4 detected; Flash disabled.');
			*/
		}
	}
	else
	{
		/*
		** Debug Code
  		**
		** alert('Wheel Debug\n\nNT4 detected; Flash disabled.');
		*/
	}
	
	this.NotAztec = false;
	
	if (agt.indexOf(txtAztec.toLowerCase())==-1) {
		this.NotAztec = true;
	}
	else
	{
		/*
		** Debug Code
	  	**
		** alert('Wheel Debug\n\nAztec detected; Flash disabled.');
		*/
	}
}

function goBadega(url)
{
var str = 'http:\/\/korma.unilever.com/cc/specmail.nsf/enquiry?open&country='+url;
window.open(str,'printWindow','location=yes,menubar=yes,scrollbars=yes,resizable=yes,width=655,height=635');
}function displayInDIV(DIVid,selectListObject){
document.getElementById(DIVid).innerHTML = selectListObject.value;           
}
//-----------------------------------------------------
// Check for URL parameter and the country name
// this is the case for the careers contact us
// assumes. Pass the DIV id where the country should be displayed
// as parameter
//-----------------------------------------------------
function checkQs(DIVid,selectListId) { //
var list
var text
if (document.location.search.length > 1){ // Get country name
var text = document.location.search.toLowerCase();
text = text.replace("?","");
text = text.replace("_","");
list = document.getElementById(selectListId);
for (i = 0; i <= list.length; i++){
      
if (list.options[i].text.toLowerCase() == text){
list.options[i].selected = true;
displayInDIVbyId(DIVid,selectListId)
continue;
}
}
}
}

function displayInDIVbyId(DIVid,selectListId){
var list, i
list = document.getElementById(selectListId);
i = list.selectedIndex;
document.getElementById(DIVid).innerHTML = list.options[i].value;           
}


var selected

function toggleDisplay(list){
var i, me, id
    if (selected){
    selected.style.display="none";
    }

    id=list.options[list.selectedIndex].text;

    try {
      me = document.getElementById(id.replace(/\ /g,'_'));
      selected = me

      if (selected) {
    
		if (me.style.display=="block"){
			me.style.display="none";
			}
		else {
			if (me.style.display=="none"){
				me.style.display="block";
				}
			else {
				me.style.display="block";
				}
       			}
      }
    } catch(e) {
      /* do nothing with the error */
    }
  }

/* ---------------------------------------------------------------------------------------------------------------------------- */
/* 
	function checkNotFirst 
	Created on 4th July 2007
	Checks a specified 'select' object  to see if the selected option is not the first option
*/
		function checkNotFirst(oSelect)
		{
			var bNotFirst = false;
			if (oSelect) {
				if (oSelect.tagName == 'SELECT') {
					if (oSelect.selectedIndex > 0) {
						bNotFirst = true;
					}
				}
			}
			return bNotFirst;
		}
/* ---------------------------------------------------------------------------------------------------------------------------- */function myaddEvent(obj, evType, fn){ 
		 if (obj.addEventListener){ 
		   obj.addEventListener(evType, fn, false); 
		   return true; 
		 } else if (obj.attachEvent){ 
		   var r = obj.attachEvent("on"+evType, fn); 
		   return r; 
		 } else { 
		   return false; 
		 } 
		}

		var iFlashMovieCnt = 0;
		function createFlashMovie(iWidth, iHeight, sBgColour, bBtnMenu, bAllowFS, bBtnFS, bAutoPlay, bLoop, bBtnLoop, bBtnPlayList, sScale, sSplash, sSplashParams, sMovie, sMovieParams, sPlayList, sConfig, bHideBtns, bUseFlash9FS, sConfigMisc, iSection, sReplacementMovieDiv, sScriptAccess)
		{
			if (typeof(iSection) == 'undefined') {
				var iSection = 0;
			}
		
			//apply fix to script access
			var sScriptAccessValue = 'always';
			if (typeof(sScriptAccess) != 'undefined') {
				sScriptAccessValue = sScriptAccess;
			}

			//apply fix to event writeout flash (else IE has a partial page load)
			var sVideoTitle = document.title.replace(/\'/g,'');

			if (typeof(sReplacementMovieDiv) == 'undefined') {
				document.writeln('\<div id=\"tflashvid\" style=\"width: ' + iWidth + 'px; height: ' + iHeight + 'px;\"\>');
				document.writeln ('\<' + '\/div' + '\>');
				sReplacementMovieDiv = 'tflashvid';
			}
			
			if (bBtnMenu != true) { bBtnMenu = false; }
			if (bAllowFS != true) { bAllowFS = false; }
			if (bBtnFS != true) { bBtnFS = false; }
			if (bAutoPlay != true) { bAutoPlay = false; }
			if (bLoop != true) { bLoop = false; }
			if (bBtnLoop != true) { bBtnLoop = false; }
			if (bBtnPlayList != true) { bBtnPlayList = false; }
			if (bHideBtns != true) { bHideBtns = false; }
			if (bUseFlash9FS != true) { bUseFlash9FS = false; }

			iFlashMovieCnt++;
			var sFlashMovieFSJS = "/include/js/flashmoviefs.js";

			var sFlashPlayer;
			
			switch(iSection) {
				case 1:
					sFlashPlayer = "/images/FlowPlayerorange.swf";
					break;
				case 2:
					sFlashPlayer = "/images/FlowPlayergreen.swf";
					break;
				case 3:
					sFlashPlayer = "/images/FlowPlayer.swf";
					break;
				case 4:
					sFlashPlayer = "/images/FlowPlayerBlue.swf";
					break;
				default:
					sFlashPlayer = "/images/FlowPlayer.swf";
					break;
			}
			
			var sFlashID = "FlashMovie" + iFlashMovieCnt;
			var sPStart = "\<" + "param name=\"";
			var sPMiddle = "\" value=\"";
			var sPEnd = "\" \/" + "\>\n";

			// start object...
			var sFlashOutput = "\<object id=\"" + sFlashID + "\" name=\"" + sFlashID + "\"";
				sFlashOutput += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\"";
				sFlashOutput += " classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
				sFlashOutput += " width=\"" + iWidth + "\"";
				sFlashOutput += " height=\"" + iHeight + "\"";
				sFlashOutput += "\/" + "\>\n";

				sFlashOutput += sPStart + "bgcolor" + sPMiddle + sBgColour + sPEnd;
				sFlashOutput += sPStart + "movie" + sPMiddle + sFlashPlayer + sPEnd;
				sFlashOutput += sPStart + "quality" + sPMiddle + "high" + sPEnd;
				sFlashOutput += sPStart + "allowScriptAccess" + sPMiddle + sScriptAccessValue + sPEnd;
if (bUseFlash9FS) {
				sFlashOutput += sPStart + "allowfullscreen" + sPMiddle + "true" + sPEnd;
}

				sFlashOutput += sPStart + "flashvars" + sPMiddle + "config={ ";
				if (sConfig == '') {
					sFlashOutput += "googleAnalyticsPrefix: \'" + sVideoTitle + "\', ";
					sFlashOutput += "baseURL: \'\', ";
					sFlashOutput += "hideControls: " + bHideBtns + ", ";
					sFlashOutput += "autoPlay: " + bAutoPlay + ", ";
					sFlashOutput += "loop: " + bLoop + ", ";
					sFlashOutput += "initialScale: \'" + sScale + "\', ";
					sFlashOutput += "showLoopButton: " + bBtnLoop + ", ";
					sFlashOutput += "showMenu: " + bBtnMenu + ", ";
					sFlashOutput += "showFullScreenButton: " + bBtnFS + ", ";
					sFlashOutput += "showPlayListButtons: " + bBtnPlayList + ", ";
					sFlashOutput += "autoBuffering: " + true + ", ";
if (bUseFlash9FS) {
					sFlashOutput += "useNativeFullScreen: " + true + ", ";
} else {
					sFlashOutput += "fullScreenScriptURL: \'" + sFlashMovieFSJS + "\', ";
}

if (sConfigMisc != '') {
					sFlashOutput += sConfigMisc + ", ";
}
					sFlashOutput += "playList: "
					if (sPlayList == '') {
						if (sSplash != "") {
							sSplash = " url: \'" + sSplash + "\'";
							if (sSplashParams != "") {
								sSplash += ", " + sSplashParams;
							}
							sSplash += " }, {";
						}
						sMovie = " url: \'" + sMovie + "\'";
						if (sMovieParams != "") {
							sMovie += ", " + sMovieParams;
						}
						sFlashOutput += "[ {" + sSplash + sMovie + " } ] }";
					} else {
						sFlashOutput += sPlayList + " }";
					}
				} else {
					sFlashOutput += sConfig;
				}
				sFlashOutput += sPEnd;
				
					// start embed...
					sPStart = " ";
					sPMiddle = "=\"";
					sPEnd = "\" ";
	

					sFlashOutput += "\<embed id=\"" + sFlashID + "\" name=\"" + sFlashID + "\"";
					sFlashOutput += " type=\"application/x-shockwave-flash\"";
					sFlashOutput += " src=\"" + sFlashPlayer + "\"";
					sFlashOutput += " width=\"" + iWidth + "\"";
					sFlashOutput += " height=\"" + iHeight + "\"";
					sFlashOutput += " pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"";
					sFlashOutput += " quality=\"high\"";
					sFlashOutput += " allowscriptaccess=\"" + sScriptAccessValue + "\"";
					sFlashOutput += " bgcolor=\"" + sBgColour + "\"";

if (bUseFlash9FS) {
					sFlashOutput += " allowfullscreen=\"true\"";
}

					sFlashOutput += sPStart + "flashvars" + sPMiddle + "config={ ";
					if (sConfig == '') {
						sFlashOutput += "googleAnalyticsPrefix: \'" + sVideoTitle + "\', ";
						sFlashOutput += "baseURL: \'\', ";
						sFlashOutput += "hideControls: " + bHideBtns + ", ";
						sFlashOutput += "autoPlay: " + bAutoPlay + ", ";
						sFlashOutput += "loop: " + bLoop + ", ";
						sFlashOutput += "initialScale: \'" + sScale + "\', ";
						sFlashOutput += "showLoopButton: " + bBtnLoop + ", ";
						sFlashOutput += "showMenu: " + bBtnMenu + ", ";
						sFlashOutput += "showFullScreenButton: " + bBtnFS + ", ";
						sFlashOutput += "showPlayListButtons: " + bBtnPlayList + ", ";
						sFlashOutput += "autoBuffering: " + true + ", ";
if (bUseFlash9FS) {
						sFlashOutput += "useNativeFullScreen: " + true + ", ";
} else {
						sFlashOutput += "fullScreenScriptURL: \'" + sFlashMovieFSJS + "\', ";
}

if (sConfigMisc != '') {
						sFlashOutput += sConfigMisc + ", ";
}
						sFlashOutput += "playList: "
		
						if (sPlayList == '') {
							sFlashOutput += "[ {" + sSplash + sMovie + " } ] }";
						} else {
							sFlashOutput += sPlayList + " }";
						}
					} else {
						sFlashOutput += sConfig;
					}
					sFlashOutput += sPEnd;
	
					sFlashOutput += "\/" + "\>\n";
					// end embed...

				sFlashOutput += "\<" + "\/object" + "\>\n";
				// end object...
				
				//document.writeln(sFlashOutput);
				
				//apply fix to event writeout flash (else IE has a partial page load)
				myaddEvent(window, 'load', function() {
					try {
						var otflashvid = document.getElementById(sReplacementMovieDiv);
						if (otflashvid) {
							otflashvid.innerHTML = sFlashOutput;
						}
						otflashvid = null;
					} catch(e) {
					}
				});
		}

		function consoleLog(sLog) {
			if (typeof(console) != 'undefined') {
				try {
					//console.log(sLog);
				} catch(e) {
				}
			}
		}
		
		function setDivHTML(sThisDiv, sThisHTML) {
			consoleLog("changing play state: " + sThisHTML);
			var oThisDiv = document.getElementById(sThisDiv);
			if (oThisDiv) {
				oThisDiv.innerHTML = sThisHTML;
			}
		}

		var urchinTrackerFR = true;
		var urchinTrackerNowPlaying = false;
		// flowplayer works with google analytics, now it'll work with webtrends too!
		function urchinTracker(a) {
			try {
				consoleLog("urchin tracker: " + a);
				var thisPrefix = 'Video: ';
				if (typeof(a) != 'undefined') {
					if ((a.indexOf('.flv') >= 0) || (a.indexOf('.FLV') >= 0)) {
						if (a.indexOf('/') != -1) {
							var aSplit = a.split('/');
							var thisTitle = aSplit[1];
							var thisEvent = aSplit[2].toLowerCase();
							var thisHost = window.location.host;
							var thisPath = window.location.href.split(thisHost);
							if (thisPath.length > 1) {
								thisPath = thisPath[1];
								if (thisPath.indexOf('?') >= 1) {
									thisPath = thisPath.split('?')[0];
								}
								if (thisPath == '') {
									thisPath = '/';
								}
							} else {
								thisPath = '/';
							}

							//detect and control now playing display
							if (typeof(sNowPlayingDiv) != 'undefined') {
								if (!urchinTrackerNowPlaying) {
									urchinTrackerNowPlaying = true;
								} else {
									switch (thisEvent) {
										case 'start':
											setDivHTML(sNowPlayingDiv, sNowPlayingHTML);
											break;
										case 'resume':
											setDivHTML(sNowPlayingDiv, sNowPlayingHTML);
											break;
										case 'pause':
											setDivHTML(sNowPlayingDiv, sNowPausedHTML);
											break;
										case 'finish':
											setDivHTML(sNowPlayingDiv, '');
											break;
									}
								}
							}

							//webstatistics
							if (thisEvent == 'resume' || thisEvent == 'pause') {
								if ((urchinTrackerFR) && (thisEvent == 'resume')) {
									urchinTrackerFR = false;
									if (typeof(DCS.dcsqry) != 'undefined') {
										//consoleLog("OLD DCS.dcsqry: " + DCS.dcsqry);
									}
									DCS.dcsqry = '?linkid=video';
									// Uses webtrends to record playback statistics
									dcsMultiTrack("DCS.dcssip",thisHost,"DCS.dcsuri",thisPath,"WT.ti",thisPrefix + thisTitle + ' (played)');
								}
							}
						} else {
							//consoleLog('no /:' + a);
						}
					} else {
						//consoleLog('no .flv:' + a);
					}
				} else {
					//consoleLog('no a');
				}
			} catch(e) {
				consoleLog('error during javascript processing');
			}
		}/* ------------------------------------------------------------------------------------------------------------------ */
/* DR Check code  */
/* ------------------------------------------------------------------------------------------------------------------ */
	function IsDRSite()
	{
		var bIsDRSite = false;
		var oDocument = document.documentElement;
		if (oDocument) {
			var sHTML = oDocument.innerHTML;
			if (sHTML.indexOf("by HTTrack Website Copier") != -1) {
				bIsDRSite = true;
			}
		}
		return bIsDRSite;
	}
/* ------------------------------------------------------------------------------------------------------------------ */