if (typeof addthis_widget15 == "undefined")
{
   var addthis_widget15 = 'addthis';
   var at15O = 'http://s7.addthis.com/';
   var at15o = '/global/images/bookmark/';
   var at15Y = 'http://s7.addthis.com/select/';
   var at15y = new Array( );
   at15y['ask'] = ['Ask', 'ask.png'];
   at15y['delicious'] = ['Del.icio.us', 'delicious.png'];
   at15y['digg'] = ['Digg', 'digg.png'];
   at15y['email'] = ['Email', 'email.png'];
   at15y['favorites'] = ['Favorites', 'favorites.png'];
   at15y['facebook'] = ['Facebook', 'facebook.gif'];
   at15y['fark'] = ['Fark', 'fark.png'];
   at15y['furl'] = ['Furl', 'furl.gif'];
   at15y['google'] = ['Google', 'goog.png'];
   at15y['live'] = ['Live', 'live.gif'];
   at15y['myspace'] = ['MySpace', 'myspace.png'];
   at15y['myweb'] = ['Yahoo MyWeb', 'yahoo-myweb.png'];
   at15y['newsvine'] = ['Newsvine', 'newsvine.png'];
   at15y['reddit'] = ['Reddit', 'reddit.gif'];
   at15y['sk*rt'] = ['Sk*rt', 'skrt.gif'];
   at15y['slashdot'] = ['Slashdot', 'slashdot.png'];
   at15y['stumbleupon'] = ['StumbleUpon', 'su.png'];
   at15y['stylehive'] = ['Stylehive', 'stylehive.gif'];
   at15y['tailrank'] = ['Tailrank', 'tailrank2.png'];
   at15y['technorati'] = ['Technorati', 'technorati.png'];
   at15y['thisnext'] = ['ThisNext', 'thisnext.gif'];
   at15y['twitter'] = ['Twitter', 'twitter.gif'];
   at15y['ballhype'] = ['BallHype', 'ballhype.png'];
   at15y['yardbarker'] = ['Yardbarker', 'yardbarker.png'];
   at15y['kaboodle'] = ['Kaboodle', 'kaboodle.gif'];
   at15y['more'] = ['More ...', 'more.gif'];

   function at15I(at15i)
   {
      return document.getElementById(at15i);

   }

   function addthis_clearclosewin15( )
   {
      if (typeof at15A != "undefined")
      clearTimeout(at15A);
   }

   function addthis_open(at15a, at15E, at15e, at15U)
   {
      addthis_clearclosewin15( );
      addthis_url = at15e;
      addthis_title = at15U;
      if (addthis_url == '' || addthis_url == '[URL]')  addthis_url = location.href;
      if (addthis_title == '' || addthis_title == '[TITLE]') addthis_title = document.title;
      var at15u = 020;
      var at15Z = at15a.getElementsByTagName('img');
      if (at15Z && at15Z[0])
      {
         at15a = at15Z[0];
         at15u = 0;
      }
      atshow(at15E);
      var at15z = at15X(at15a);
      var at15x = at15z[0] + addthis_offset_left;
      var at15W = at15z[1] + at15u + 1 + addthis_offset_top;
      var at15w = at15V( );
      var at15v = at15T( );
      var at15t = at15I('addthis_dropdown15');
      at15t.style.display = 'block';
      if (at15x - at15v[0] + at15t.clientWidth + 024 > at15w[0])
      at15x = at15x - at15t.clientWidth + 062;
      if (at15W - at15v[1] + at15t.clientHeight + at15a.clientHeight + 024 > at15w[1])
      at15W = at15W - at15t.clientHeight - 024;
      at15t.style.left = at15x + 'px';
      at15t.style.top = (at15W + at15a.clientHeight) + 'px';
      if (addthis_hide_embed)
      {
         var at15S = at15x + at15t.clientWidth;
         var at15s = at15W + at15t.clientHeight;
         var at15R = document.getElementsByTagName('embed');
         var at15r = 0, at15Q = 0, at15q = 0;
         for (at15P = 0; at15P < at15R.length; at15P ++ )
         {
            at15r = at15X(at15R[at15P]);
            at15Q = at15r[0];
            at15q = at15r[1];
            if (at15x < at15Q + at15R[at15P].clientWidth && at15W < at15q + at15R[at15P].clientHeight)
            {
               if (at15S > at15Q && at15s > at15q)
               {
                  if (at15R[at15P].style.visibility != 'hidden')
                  {
                     at15R[at15P].at15p = true;
                     at15R[at15P].style.visibility = 'hidden';

                  }
               }
            }
         }
      }
      at15N( );
      return false;

   }

   function at15N( )
   {
      if (at15n)return;
      var at15M = addthis_options.replace(/\s/g, '');
      var at15m = at15M.split(',');
      for (var at15P = 0; at15P < at15m.length; at15P ++ )
      {
         var at15L = at15m[at15P];
         if (at15L in at15y)
         {
            var at15l = at15I('addthis_' + at15L + '15');
            if (at15l)at15l.src = at15o + at15y[at15L][1];

         }
      }
      at15n = true;

   }

   function addthis_close( )
   {
      at15A = setTimeout("addthis_closewin15()", 0764);
   }

   function addthis_closewin15( )
   {
      var at15t = at15I('addthis_dropdown15');
      at15t.style.display = 'none';
      var at15R = document.getElementsByTagName('embed');
      if (addthis_hide_embed)
      {
         for (at15P = 0; at15P < at15R.length; at15P ++ )
         {
            if (at15R[at15P].at15p)at15R[at15P].style.visibility = 'visible';

         }
      }
      return false;

   }
   function addthis_sendto(at15K)
   {
      if (at15K == 'email')
      {
         atshow(at15K);
         return false;

      }
      addthis_closewin15( );
      if (at15K == 'favorites')
      {
         if (document.all)window.external.AddFavorite(addthis_url, addthis_title);
         else window.sidebar.addPanel(addthis_title, addthis_url, '');
         return false;

      }
      if (at15K == 'stumbleupon')at15K = 'su';
      if (at15K == 'sk*rt')at15K = 'skrt';
      window.open(at15k(at15K), 'addthis', 'scrollbars=yes,menubar=no,width=620,height=500,resizable=yes,toolbar=no,location=no,status=no');
      return false;

   }
   function at15k(at15K)
   {
      var at15J = encodeURIComponent(addthis_url);
      var at15j = encodeURIComponent(addthis_title);
      var at15H = encodeURIComponent(addthis_logo);
      return 'http://www.addthis.com/bookmark.php?v=15&winname=addthis&pub=' + addthis_pub + '&s=' + at15K + '&url=' + at15J + '&title=' + at15j + '&logo=' + at15H + '&logobg=' + addthis_logo_background + '&logocolor=' + addthis_logo_color;

   }
   function at15X(at15h)
   {
      var at15G = 0, at15g = 0;
      do
      {
         at15G += at15h.offsetTop || 0;
         at15g += at15h.offsetLeft || 0;
         at15h = at15h.offsetParent;

      }
      while (at15h);
      return [at15g, at15G];

   }
   function at15V( )
   {
      var at15F = 0;
      var at15f = 0;
      if (typeof(window.innerWidth) == 'number')
      {
         at15F = window.innerWidth;
         at15f = window.innerHeight;

      }
      else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
      {
         at15F = document.documentElement.clientWidth;
         at15f = document.documentElement.clientHeight;

      }
      else if (document.body && (document.body.clientWidth || document.body.clientHeight))
      {
         at15F = document.body.clientWidth;
         at15f = document.body.clientHeight;

      }
      return [at15F, at15f];

   }
   function at15T( )
   {
      var at15D = 0;
      var at15d = 0;
      if (typeof(window.pageYOffset) == 'number')
      {
         at15d = window.pageYOffset;
         at15D = window.pageXOffset;

      }
      else if (document.body && (document.body.scrollLeft || document.body.scrollTop))
      {
         at15d = document.body.scrollTop;
         at15D = document.body.scrollLeft;

      }
      else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop))
      {
         at15d = document.documentElement.scrollTop;
         at15D = document.documentElement.scrollLeft;

      }
      return [at15D, at15d];

   }
   function at15C( )
   {
      var at15c = document.createElement('link');
      at15c.rel = 'stylesheet';
      at15c.type = 'text/css';
      at15c.href = addthis_css;
      at15c.media = 'all';
      document.lastChild.firstChild.appendChild(at15c);

   }
   
   function CreateMailMessage2()
   {
    CreateMailMessage('Link of Interest:','This link, ' + addthis_url + ', might interest you.');
   }
   
   function at15B( )
   {
      at15b( );
      at15C( );
            
      var at15o0 = '<div id="addthis_dropdown15" onmouseover="addthis_clearclosewin15()" onmouseout="addthis_close()" style="z-index: 1000000; position: absolute; display: none">';
      at15o0 += '<table width="100%" cellpadding="2" cellspacing="0" style="background-color: #FFFFFF; height: 18px; border-bottom: solid 1px #CCCCCC">';
      at15o0 += '<tr><td padding-left:3px">';
      at15o0 += '<IMG style="MARGIN-TOP: 2px; FLOAT: left; MARGIN-LEFT: 5px" height=16 alt="Share With a Friend" src="' + at15o + 'Icon_Email_Dove_16.gif" width=16 border=0>&nbsp;&nbsp;';
      at15o0 += '<a href="javascript:CreateMailMessage2();">';
      at15o0 += '<span id="at_caption"></span></a>';
      at15o0 += '</td><td align="right" padding-right: 3px">' + addthis_brand + '</td></tr>';
      at15o0 += '</table>';              
      
      var at15O0 = false;
      at15o0 += '<div id="at_share">';
      at15o0 += '<table id="addthis_services" width="100%" cellpadding="0">';
      at15o0 += '<tr><td colspan="2" style="height: 0px"></td></tr>';
      var at15m = addthis_options.split(',');
      for (var at15P = 0; at15P < at15m.length; at15P ++ )
      {
         var at15L = at15m[at15P];
         if (at15L in at15y)
         {
            if ( ! at15O0)at15o0 += '<tr>';
            at15o0 += '\x3ctd width=\"50%\" style=\"height: 19px\">\x3ca href=\"/\" onclick=\"return addthis_sendto(\''+at15L+'\');\">\x3cimg id=\"addthis_'+at15L+'15" alt="" width="16" height="16" />&nbsp; ' + at15y[at15L][0] + '</a></td>';
            if (at15O0)at15o0 += '</tr>';
            at15O0 = ! at15O0;

         }
      }
      if (at15O0)at15o0 += '<td></td></tr>';
      at15o0 += '<tr><td colspan="2" style="height: 2px"></td></tr>';
      at15o0 += '</table>';
      at15o0 += '\x3c/div>\n';
      at15o0 += '<div id="at_email" style="display: none; padding-left: 20px; padding-top: 6px">';
      at15o0 += '<table border="0">';
      at15o0 += '<tr><td >To:</td><td><input id="at_to" type="text" style="width: 130px; height: 18px; value=" email address" onfocus="checkto(this)" /></td</tr>';
      at15o0 += '<tr><td >From:</td><td><input id="at_from" type="text" style="width: 130px; height: 18px; color: #999999" value=" email address" onfocus="checkto(this)"/></td</tr>';
      at15o0 += '<tr><td valign="top">Note:</td><td><textarea id="at_msg" style="width: 130px; height: 36px;"/></textarea></td</tr>';
      at15o0 += '<tr><td colspan="2" align="right"><span id="at_success" style="color: #777777;"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="Send" onclick="return addthis_send()" /></td</tr>';
      at15o0 += '</table>';
      at15o0 += '\x3c/div>\n';
      at15o0 += '\x3c/div>\n';
      at15l0 = document.createElement('div');
      at15l0.innerHTML = at15o0;
      document.body.insertBefore(at15l0, document.body.firstChild); at15l0.style.zIndex = 03641100;
   }
   function at15b( )
   {
      at15n = false;
      if (typeof addthis_pub == 'undefined')addthis_pub = '';
      if (typeof at15i0 == 'undefined')at15i0 = 'Share with a friend';
      if (typeof addthis_brand == 'undefined')addthis_brand = '';
      if (typeof addthis_logo == 'undefined')addthis_logo = '';
      if (typeof addthis_logo_background == 'undefined')addthis_logo_background = '';
      if (typeof addthis_logo_color == 'undefined')addthis_logo_color = '';
      if (typeof addthis_options == 'undefined')addthis_options = 'favorites, digg, delicious, google, myspace, facebook, reddit, newsvine, live, more';
      if (typeof addthis_offset_top != 'number')addthis_offset_top = 0;
      if (typeof addthis_offset_left != 'number')addthis_offset_left = 0;
      if (typeof addthis_caption_share == 'undefined')addthis_caption_share = 'Share with a friend';
      if (typeof addthis_caption_email == 'undefined')addthis_caption_email = 'Email a Friend';
      if (typeof addthis_css == 'undefined')addthis_css = '/global/css/addthis_widget.css';
      if (typeof addthis_hide_embed == 'undefined')addthis_hide_embed = true;
      addthis_options = addthis_options.replace(/\s/g, '');

   }
   function atshow(at15I0)
   {
      var at15o1 = at15I('at_share');
      var at15O1 = at15I('at_email');
      var at15l1 = at15I('at_caption');
      var at15i1 = at15I('at_success');
      at15o1.style.display = 'none';
      at15O1.style.display = 'none';
      at15i1.innerHTML = '';
      if (at15I0 == 'share' || at15I0 == '')
      {
         at15o1.style.display = 'block';
         at15l1.innerHTML = addthis_caption_share;

      }
      else
      {
         at15O1.style.display = 'block';
         at15l1.innerHTML = addthis_caption_email;

      }
   }
   function addthis_send( )
   {
      var at15I1 = at15I('at_from');
      var at15o2 = at15I('at_to');
      var at15O2 = at15I('at_img');
      var at15i1 = at15I('at_success');
      var at15l2 = at15I('at_msg');
      if (at15I1.value.indexOf('@') < 0 || at15o2.value.indexOf('@') < 0 || at15I1.value.indexOf('.') < 0 || at15o2.value.indexOf('.') < 0)
      {
         alert('Please enter a valid email address!');
         return;

      }
      at15i2 = Math.random( );
      at15I2 = 'http://www.addthis.com/tellfriend.php?pub=' + encodeURIComponent(addthis_pub) + '&url=' + encodeURIComponent(addthis_url) + '&fromname=aaa&fromemail=' + encodeURIComponent(at15I1.value) + '&tofriend=' + encodeURIComponent(at15o2.value) + '&note=' + encodeURIComponent(at15l2.value) + '&r=' + at15i2;
      at15O2.src = at15I2;
      at15i1.innerHTML = 'Message Sent!';
      at15A = setTimeout("addthis_closewin15()", 02260);
      return false;

   }
   function checkto(at15o3)
   {
      at15o3.style.color = '#000000';
      if (at15o3.value == ' email address')at15o3.value = '';

   }
   at15B( );

}

var overWork;

function ShowWorkspace()
{
	var o = document.getElementById('Workspace');
	if(o != null)
	{
		
		o.style.top = (parseInt(GetPosition(document.getElementById('WorkspaceLink'), 'top')) + 26) + 'px';
		o.style.left= (parseInt(GetPosition(document.getElementById('WorkspaceLink'), 'left')) - 12) + 'px';
		o.style.display = 'inline';
		
	}
}

function ActivateWorkspace()
{
	overWork = true;
}

function BeginHideWorkspace()
{
	overWork = false;
	setTimeout('HideWorkspace()', 1000);
}

function HideWorkspace()
{
	if(!overWork)
	{
		document.getElementById('Workspace').style.display = 'none';
		
	}
}
function GetPosition(object, offset)
{
	var totaloffset = ((offset == 'top') ? object.offsetTop : object.offsetLeft );
	var parent = object.offsetParent;
	if (parent != null)
		totaloffset += GetPosition(parent, offset);
	
	return totaloffset;
}
var popup = '&nowrapper=2';
var popupq = '?nowrapper=2';

function AddPopup(url)
{
	if(url.indexOf('?') >=0)
	{
		return url + popup
	}
	return url + popupq;
}

function OpenCBS(url) {
	        open("/global/scripts/jump_frame.epx?content=" + url,"CBS","width=575,height=515,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=yes");
}

function OpenDemo(url) {
	        open("/global/scripts/jump_frame.epx?content=" + url,"demo","width=610,height=410,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=yes");
}

function OpenOnlineDemo(url) {
	        open("/global/scripts/jump_frame.epx?content=" + url,"onlinedemo","width=810,height=625,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=no,status=no,dependent=no,scrollbars=no");
}
	
function OpenPDF(url,closelabel) {
	if(!closelabel) closelabel="";
	        open("/global/scripts/jump_frame.epx?content=" + url + "&CloseLabel=" + closelabel,"pdf","width=610,height=480,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=yes");
}

function OpenVideo(url) {
	        open("/global/scripts/jump_frame.epx?content=" + url,"video","width=545,height=420,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=no,status=no,dependent=no,scrollbars=no");
}

function OpenMediaPlayer(url,closelabel,country) {
	        open("/global/scripts/jump_frame.epx?CloseLabel=" + closelabel + "&country=" + country + "&content=" + url,"video","width=545,height=420,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=no,status=no,dependent=no,scrollbars=no");
}

function OpenSite(url,width,height,closelabel) {
	if(!closelabel) closelabel="";
	        open("/global/scripts/jump_frame.epx?content=" + escape(url) + "&CloseLabel=" + closelabel,"site","width="+width+",height="+height+",left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=no");
}

function OpenSite640(url,closelabel) {
	var url = unescape(url);

	if(url.indexOf('/mk/get/sap_cfe?') >= 0)
	{
		var query = url.substring(url.indexOf('?') + 1);
		query = query.replace(/PDF_URL1/i, 'collateral');
		query = query.replace(/Atype/i, 'type');
		location.replace('/cdrp/index.epx?referrer=' + escape(location.href) + '&' + query);
	}else{
		if(!closelabel) closelabel="";
			open("/global/scripts/jump_frame.epx?content=" + escape(url) + "&CloseLabel=" + closelabel,"site","width=640,height=480,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=no");
	}
}

function OpenSitePrebooking(url,closelabel,title,country) {
	if(!closelabel) closelabel="";
	        open("/global/scripts/jump_frame.epx?pagetitle=" + title + "&country=" + country + "&content=" + escape(url) + "&CloseLabel=" + closelabel,"site","width=640,height=480,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=no");
}


		function nameParent(newName,url) {
		window.name = newName;
	        OpenSite800(url)
}

function OpenSite800(url,closelabel) {
	if(!closelabel) closelabel="";
	        open("/global/scripts/jump_frame.epx?content=" + escape(url) + "&CloseLabel=" + closelabel,"site","width=800,height=520,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=no");
}

function OpenCSP() {
	        open('/partners/software/directory/directory.asp','csp','width=650,height=450,left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=yes');
}

function OpenCalc(url,title,width,height) {
	        open("/global/scripts/jump_frame.epx?CalcDisplay=1&content=" + escape(url) +"&title=" + escape(title),"site","width="+width+",height="+height+",left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=yes,status=no,dependent=no,scrollbars=no");
}

function OpenCalc_(url) {
	        open( url,'calc','width=900,height=600,menubar=yes,toolbar=yes,locationbar=yes,resizable=yes,status=no,dependent=no,scrollbars=yes');
}

function OpenWebcast (url, title) {
    		open(AddPopup(url), title, 'width=840,height=610,left=20,top=20,menubar=no,toolbar=no,locationbar=no,directories=no,resizable=yes,status=no,dependent=no,scrollbars=yes');
}  
function openBrWindow(theURL,winName,features){
  	window.open(theURL,winName,features);
}
function OpenDiscussion (url, title) {
  		discussion = window.open(AddPopup(url), title, "width=820,height=760,left=20,top=20,menubar=no,toolbar=no,locationbar=no,directories=no,resizable=yes,status=no,dependent=no,scrollbars=yes"); discussion.focus();
}

function OpenDragonAnalyzer (url, title, thisaction) {
 	if (thisaction.length>0) ACTION=thisaction;
	window.open(url,title,'width=716,height=600,scrollbars=yes,menubar=yes');
}

function Search_SpecChar(){
   if(document.SAPcom_search.ct.value=="poland"){
	var search_query;
	var query_len;
	search_query=document.SAPcom_search.q1.value;
	query_len=search_query.length;
	var ucode;
	ucode="";

	for(i=0;i<query_len;i++){
		if(i==query_len-1){
			ucode=ucode + search_query.charCodeAt(i);
		}else{
			ucode=ucode + search_query.charCodeAt(i) + "-";
		}
	}
	document.SAPcom_search.q2.name="q1";
	document.SAPcom_search.q2.value=ucode;
	document.SAPcom_search.q1.name="q2";
    }
}

/***********************************************************
Added 8/11/2004 By C5054450
Search
Site Roles 
***********************************************************/
function searchPressed(obj, postback)
{
	var evt;
	var etype;
	
	if(window.event)
	{
		evt = window.event;
		etype = 1;
	}
	else if(arguments.callee)
	{
		evt = arguments.callee.caller.arguments[0];
		etype = 2;
	}
	if(evt)
	{
		var keyCode = evt.keyCode ? evt.keyCode : evt.which ? evt.which : evt.charCode;
		if(keyCode == 13)
		{
			eval(postback);

			if(etype == 1)
			{
				evt.cancelBubble = true;
				evt.returnValue = false;
			}else{
				return false;
			}
		}
	}
}

function changeRole(strValue)
{
	if (strValue != "")
	{
		var dt = new Date();
		dt.setDate(dt.getDate() + 10);
		document.cookie = "role=" + escape(strValue) + "; path=/; expires=" + dt.toGMTString();
	}
}
/*
function changeRole(select)
{
	if (select != null && select.selectedIndex != -1)
	{
		var dt = new Date();
		dt.setDate(dt.getDate() + 10);

		document.cookie = "role=" + escape(select.options[select.selectedIndex].text) + "; path=/; expires=" + dt.toGMTString();
		alert(document.cookie);
	}
}
*/
function cleanForm()
{
	for(i = 0; i < document.forms[0].length; i++)
	{
		var el = document.forms[0][i];
		if(el.type == 'text' || el.type == 'textarea')
		{
			while(el.value.indexOf('>') >= 0 || el.value.indexOf('<') >= 0 || el.value.indexOf('javascript') >= 0 || el.value.indexOf('onkeypress') >= 0)
			{
				el.value = el.value.replace('<', '').replace('>', '').replace('javascript', '').replace('onkeypress', '');
			}
		}
	}
}

function win(url)
{
	window.open(url,"x","width=670, height=575")
}


function launchCollateral()
{
	var width = CollateralWindowWidth;
	var height = CollateralWindowHeight;
	var url = collateralURL;

	if(isPDF)
	{
		window.open(collateralURL, '', 'menubar=yes, toolbar=yes, locationbar=yes, resizable=yes, status=yes, scrollbars=yes');
	}
	else if(isFlash)
	{		
		if(location.search.indexOf('demoPlayMaster.html') >= 0)
		{
			if(width == null || width == 0)
				width = 840;
			if(height == null || height == 0)
				height = 675;
			window.open(url,"x","width=" + width + ", height=" + height + ", resizable=yes")
		}
		else
		{
		if(location.search.indexOf('flash_detection.epx') >= 0)
		{
			if(width == null || width == 0)
				width = 670;
			if(height == null || height == 0)
				height = 575;
			window.open(url,"x","width=" + width + ", height=" + height + ", resizable=yes")
		}
		else
		{
			//url = "/global/scripts/jump_frame.epx?content=" + url;
						if(width == null || width == 0)
							width = 810;

						if(height == null || height == 0)
							height = 625;
			
						//window.open(url,"onlinedemo","width=" + width + ",height=" + height + ",left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=no,status=no,dependent=no,scrollbars=no");
						
			window.open(url,"x","width=" + width + ", height=" + height + ", resizable=yes")
		}
		}
	}		
	else if(isVideo)
	{
		url = "/global/scripts/jump_frame.epx?content=" + url;

		if(width == null || width == 0)
			width = 545;
		if(height == null || height == 0)
			height = 625;
		
		window.open(url,"video","width=" + width + ",height=" + height + ",left=20,top=20,menubar=no,toolbar=no,locationbar=no,resizable=no,status=no,dependent=no,scrollbars=no");
	}
	else if(isDownload)
	{
		location.href = collateralURL;
	}
	else
	{
		if(width != null || width != 0 && height != null || height != 0)
		{
			window.open(collateralURL, '', 'height=' + height + ',width=' + width + ', menubar=yes, toolbar=yes, locationbar=yes, resizable=yes, status=yes, scrollbars=yes');
		}
		else
		{
			window.open(collateralURL, '', 'menubar=yes, toolbar=yes, locationbar=yes, resizable=yes, status=yes, scrollbars=yes');
		}
	}
	return false;
}

function CampaignCodeOnload()
{
	var key = 'campaigncode=';
	var search = location.search.toLowerCase();
	if(search.indexOf(key) >= 0)
	{
		var campaign_code = search.substring(search.indexOf(key) + key.length);
		if(campaign_code.indexOf('&') >= 0)
			campaign_code = campaign_code.substring(0, campaign_code.indexOf('&'));
		if(!(document.cookie.indexOf('cmpgn.init.code') >= 0))
			document.cookie = "cmpgn.init.code=" + campaign_code + "; Path=/";
	}
	AddToSiteCookie("cmpgn.url", location.href);
}

function launchCallMeNow(template,thisaction)
{
	if (thisaction.length>0) ACTION=thisaction;
	webVoicePop('Template='+template);
}

function GetCookie(Name) 
{
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) 
	{
		offset = document.cookie.indexOf(search)
		if (offset != -1) 
		{ 
			offset += search.length
			end = document.cookie.indexOf(";", offset);
			if (end == -1) 
				end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

function SetCookie(Name, Value, Expires) 
{
	var today = new Date();
	today.setTime( today.getTime() );

	if (Expires) Expires = Expires * 1000 * 60 * 60 * 24;
	var expires_date = new Date(today.getTime() + (Expires));
	
	var domain="";
	if (document.domain.indexOf(".sap.com")>-1)
		domain = ".sap.com";
	

	document.cookie = Name + "=" +escape(Value) +
	((Expires) ? ";expires=" + expires_date.toGMTString() : "" ) + ";path=/;" +
	((domain) ? ";domain=" + domain : "" );
}

function DeleteCookie(Name) 
{
	if (GetCookie(Name))
		SetCookie(Name,'',-1);
}

function AddToSiteCookie(Key, Value)
{
	var cookie = GetCookie("SAP.SITE.COOKIE");
	var items = new Array();
	items = cookie.split("&");
	var added = false;

	if(items.length > 0)
	{
		cookie = '';
		for(i = 0; i < items.length -1; i++)
		{
			if(items[i] != '')
			{
				if(items[i].indexOf(Key + "=") >= 0)
				{
					cookie += Key + "=" + escape(Value) + "&";
					added = true;
				}else{
					cookie += items[i] + "&";
				}
			}
		}
		cookie = cookie.substring(0, cookie.length - 1);
		if(!added)
			cookie += Key + "=" + escape(Value);
	}else{
		if(cookie.length != 0)
			cookie += "&";
		cookie += Key + "=" + escape(Value);
	}
	cookie = "SAP.SITE.COOKIE=" + cookie + "; path=/; "
	if (strDomain && strDomain != null && strDomain != '')
		cookie += 'domain=' + strDomain;
	document.cookie = cookie;
}


function CreateMailMessage(subject,message)
{
  var lnk="mailto:?";
  (subject.length>0)?lnk+="subject="+escape(subject)+"&":lnk=lnk;
  (message.length>0)?lnk+="body="+escape(message):lnk=lnk;
  location.href=lnk;
}


function __track(url,ref,ip)
{
	if (url.length>0){
		var imgurl="/global/images/sitetracker.gif?";
		imgurl+="url="+url;
		if (ref.length>0) imgurl+="&ref="+escape(ref);
		else imgurl+="&ref="+location.pathname;
		imgurl+="&ip="+ip;
		imgurl+="&rr="+parseInt(Math.random()*Math.pow(10,7));
		var trkimg = new Image();
		trkimg.src = imgurl;
		//trkimg="";
	}
}

function OpenTrackedItem(url,ref,newwin,title,features)
{
	if (url.length>0){
		__track(url,ref,'');
		if(newwin)
		{
			var nwin=window.open(url,title,features);
			if(!nwin) alert("It appears pop-up blocking is preventing this item from opening.\n\nPlease enable pop-ups for www.SAP.com and try again.");
		}
		else location.href=url;
	}
}
function GetPosition(object, offset)
{
	var totaloffset = ((offset == 'top') ? object.offsetTop : object.offsetLeft );
	var parent = object.offsetParent;
	if (parent != null)
		totaloffset += GetPosition(parent, offset);
	
	return totaloffset;
}
function GetWindowInfo()
{
	var top, left, width, height;
	
	if( typeof( window.pageYOffset ) == 'number' ) {
		top = window.pageYOffset;
		left = window.pageXOffset;
	} else if( document.documentElement) {
		top = document.documentElement.scrollTop;
		left = document.documentElement.scrollLeft;
	} else if( document.body) {
		top = document.body.scrollTop;
		left = document.body.scrollLeft;
	}
	
	if( typeof( window.innerWidth ) == 'number' ) {
		width = window.innerWidth;
		height = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		width = document.documentElement.clientWidth;
		height = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		width = document.body.clientWidth;
		height = document.body.clientHeight;
	}
	
	return {top:top, left:left, width:width, height:height};
}
function GetObjectInfo(o)
{
	var top, left, width, height;
	if( typeof( o.innerWidth ) == 'number' ) {
		width = o.innerWidth;
		height = o.innerHeight;
	} else if( o && ( o.clientWidth || o.clientHeight ) ) {
		width = o.clientWidth;
		height = o.clientHeight;
	} else if(o.style.width){
		width = parseInt(o.style.width, 10)
		height = parseInt(o.style.height, 10)
	}
	top = GetPosition(o, 'top');
	left = GetPosition(o, 'left');

	return {top:top, left:left, width:width, height:height};
}

//Calls ROI engine (roi.js) and send special action of the web controls
function ROIAction(actionnumber)
{
try	{
var tracking_obj = createITT();
tracking_obj.ACTION = actionnumber;
tracking_obj.submit_action();
	}
	catch(e){}
}

function GetROIAction(strurl)
{
  if(strurl.indexOf('yourinfo.epx')>0)  return '09'; 
  if(strurl.indexOf('confirmation.epx')>0) return '05'; 
  if(strurl.indexOf('contactsap/index.epx')>0) return '07'; 
  if(strurl.indexOf('contactsap/confirm.epx')>0) return '08'; 
  if(strurl.indexOf('contactsap/contact_warning.epx')>0) return '150'; 
  if(strurl.indexOf('login.epx')>0) return '03'; 
  if(strurl.indexOf('login4.epx')>0) return '155';
  if(strurl.indexOf('profile/upgrade')>0) return '156';
  if(strurl.indexOf('login4.epx')>0) return '155';
  if(strurl.indexOf('submitsuccess.epx?orderform=InvestorPackageOrder')>0) return '159';
  if(strurl.indexOf('submitsuccess.epx?orderform=SMSStockRegistration')>0) return '162';
  if(strurl.indexOf('events/search/index.epx')>0) return '154';		
		
	return null;
}


function GetCurrentSite()
{  // returns country site based on current URL
	var clist="africa,algeria,americas,andeancarib,argentina,asia,australia,austria,baltics,belgie,belgique,belux,bolivia,brazil,bulgaria,canada,caribe,centralamerica,chile,china,cis,colombia,croatia,cyprus,cz,denmark,estonia,finland,france,germany,greece,hk,hungary,india,indonesia,ireland,israel,italy,japan,korea,latvia,lithuania,malaysia,mena,mexico,morocco,netherlands,newzealand,norway,peru,philippines,poland,portugal,romania,serbia,singapore,sk,slovenia,southafrica,spain,suisse,sweden,swiss,taiwan,thailand,tunisia,turkey,uk,uruguay,usa,venezuela,westbalkans";
	var countries = clist.split(",");
	var path=location.pathname.substr(1,location.pathname.length-1).toLowerCase();
	var dname, cnt, found="global";
	try{
	if(path.indexOf("/")>-1)
		dname=path.substr(0,path.indexOf("/"));
	else
		dname="";
	if(dname.length>0)
		for(cnt=0;cnt<countries.length;cnt++)
			if(dname==countries[cnt])
				found=dname;
	}catch(e){}
	return found;
}
function DropDownList(id, postback, items)
{
	this.id = id;
	this.items = new Array();
	this.items = items;
	this.visible = false;
	this.postback = postback;
	return this;
}
DropDownList.prototype.ShowList = function()
{
	document.getElementById(this.id + '_List').style.visibility = 'visible';
	if(document.getElementById(this.id + '_Img'))
		document.getElementById(this.id + '_Img').src = '/global/images/LanguageSelectorIconOver.gif';
	
	this.visible = true;
}
DropDownList.prototype.HideList = function()
{
	this.visible = false;
	if(this.hideInterval == null)
		this.hideInterval = setInterval(this.id + '.DoHideList()', 1000);
}
DropDownList.prototype.DoHideList = function()
{
	if(!this.visible)
	{
		document.getElementById(this.id + '_List').style.visibility = 'hidden';
		if(document.getElementById(this.id + '_Img'))
			document.getElementById(this.id + '_Img').src = '/global/images/LanguageSelectorIcon.gif';
		clearInterval(this.hideInterval);
		this.hideInterval = null;
	}
}
DropDownList.prototype.Highlight = function(index)
{
	document.getElementById(this.id + '_' + index).className = 'DropDownListItemHighlight';
	this.visible = true;
	return true;
}
DropDownList.prototype.RemoveHighlight = function(index)
{
	document.getElementById(this.id + '_' + index).className = 'DropDownListItem';
	this.visible = false;
	return true;
}
DropDownList.prototype.SelectItem = function(index)
{
	this.visible = false;
	this.DoHideList();
	if(!this.postback)
	{
		document.getElementById(this.id + 'SelectedIndex').value = index;
		document.getElementById(this.id + 'Title').innerHTML = this.items[index];
	}
	return true;
}
//Begin Form
function Form(id, post){this.id = id;this.post = post;this.subVal = new Array();return this;}
Form.prototype.RegisterSubmitValidation = function(field, errorMessage, method){this.subVal[this.subVal.length] = {field:field,errorMessage:errorMessage,method:method};}

Form.prototype.SubmitValidate = function()
{	
	if(this.subVal.length > 0)
	{
		for(var i = 0; i < this.subVal.length; i++)
		{
			
			if(this.subVal[i].field != null && typeof(this.subVal[i].field.GetElement) != 'undefined' && this.subVal[i].field.GetElement() != null)
				this.subVal[i].index = this.subVal[i].field.GetElement().tabIndex;
			else
				this.subVal[i].index = 1000;
			
		}
		this.subVal.sort(function(a,b){return a.index - b.index}); 

		for(var i = 0; i < this.subVal.length; i++)
		{
			if(this.subVal[i].method != null)
			{
				if(!this.subVal[i].method(this.subVal[i].errorMessage))
				{
					if(this.subVal[i].field != null && typeof(this.subVal[i].field.GetElement) != 'undefined' && this.subVal[i].field.GetElement() != null)
						this.subVal[i].field.GetElement().focus();
					return false;
				}
			}
			else
			{
				if(!this.subVal[i].field.Validate(this.subVal[i].errorMessage))
					return false;
			}
		}
	}
	return true;
}

Form.prototype.Submit = function()
{
	var doSubmit = true;
	cleanForm();
	if(this.subVal.length > 0)
		doSubmit = this.SubmitValidate();
	
	if(doSubmit && this.OnBeforeSubmit != null)
		doSubmit = this.OnBeforeSubmit();

	if(doSubmit)
	{
		if(this.post != null)
			eval(this.post);
		else
			document.forms[0].submit();
	}
}
//End Form

//Begin TextBox
function TextBox(id, clientId){this.id = id;this.clientId = clientId;this.visible = true;this.reqCond = new Array();this.changes = new Array();this.reqCondCnt = 0;return this;}
TextBox.prototype.GetElement = function(){if(this.el == null){this.el = document.getElementById(this.clientId);}return this.el;}
TextBox.prototype.Validate = function(errorMessage){return _ValidateValue(this.GetElement(), this.Value(), this.reqCond, errorMessage);}
TextBox.prototype.Value = function(){this.GetElement();if(this.el != null){return this.el.value;}}
TextBox.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
TextBox.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
TextBox.prototype.Changed = function(){_TextChanged(this.GetElement());}
TextBox.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End TextBox

//Begin HtmlDropDownList
function HtmlDropDownList(id, clientId){this.id = id;this.clientId = clientId;this.dispCond = new Array();this.valCond = new Array();this.reqCond = new Array();this.changes = new Array();this.reqCondCnt = 0;this.visible = true;return this;}
HtmlDropDownList.prototype.GetElement = function(){if(this.el == null){this.el = document.getElementById(this.clientId);}return this.el;}
HtmlDropDownList.prototype.Validate = function(errorMessage){return _ValidateValue(this.GetElement(), this.Value(), this.reqCond, errorMessage);}
HtmlDropDownList.prototype.Value = function(){return _ListValue(this);}
HtmlDropDownList.prototype.AddConditionalDisplayField = function(childField, value){this.dispCond[this.dispCond.length] = {childField:childField,value:value};}
HtmlDropDownList.prototype.AddConditionalValueField = function(childField, parentCategoryID, childCategoryID, shortTranslation, localeID){this.valCond[this.valCond.length] = {childField:childField,parentCategoryID:parentCategoryID,childCategoryID:childCategoryID,shortTranslation:shortTranslation,localeID:localeID};}
HtmlDropDownList.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
HtmlDropDownList.prototype.Changed = function()
{
	this.GetElement();
	if(this.dispCond.length > 0)
	{
		for(var i = 0; i < this.dispCond.length; i++)
		{
			this.dispCond[i].childField.Visible(this.el.options[this.el.selectedIndex].id == this.dispCond[i].value);
		}
	}
	if(this.valCond.length > 0)
	{
		for(var i = 0; i < this.valCond.length;  i++)
		{
			var remote = new RemoteMethod('CodesRemote.epi?kNtBzmUK9zU');
			remote.MethodName = 'GetCodeTranslationsByParentCategoryWithLocaleID';
			remote.AddArguments(this.valCond[i].parentCategoryID, this.el.options[this.el.selectedIndex].value, this.valCond[i].childCategoryID, this.valCond[i].localeID);
			remote.LocalObjectID = this.id;
			remote.LocalAction = 'Populate';
			remote.Invoke();
		}
	}
	if(this.changes.length > 0)
	{
		for(var i = 0; i < this.changes.length;  i++)
		{
			this.changes[i].child.ConditionallyRequired(this.Value().toLowerCase() == this.changes[i].value.toLowerCase());
		}		
	}
}
HtmlDropDownList.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
HtmlDropDownList.prototype.SetValues = function(values, shortTrans)
{
	var selectedValue;

	this.GetElement();
	selectedValue = this.el.options[this.el.options.selectedIndex].value;

	if(this.el.options[0].value == '')
		this.el.options.length = 1;
	else
		this.el.options.length = 0;
	
	this.el.options.selectedIndex = 0;
	
	for(var i = 0; i < values.length; i++)
	{
		this.el.options[this.el.options.length] = new Option(((shortTrans != null && shortTrans) ? values[i].ShortTranslation : values[i].LongTranslation), values[i].Code);
		if(selectedValue == values[i].Code)
			this.el.options[this.el.options.length - 1].selected = true;
	}
}
HtmlDropDownList.prototype.Populate = function(args)
{
	if(args != null)
	{
		var list = eval(args);

		if(this.valCond.length > 0)
		{
			for(var i = 0; i < this.valCond.length;  i++)
			{
				if(list[0] == this.valCond[i].parentCategoryID && list[1] == this.el.options[this.el.selectedIndex].value && list[2] == this.valCond[i].childCategoryID)
				{
					if(list[4].length > 0)
					{
						this.valCond[i].childField.SetValues(list[4],this.valCond[i].shortTranslation);
						this.valCond[i].childField.Visible(true);
					}else{
						this.valCond[i].childField.Visible(false);
					}
				}
			}
		}
	}
}
HtmlDropDownList.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End HtmlDropDownList

//Begin CheckBox
function CheckBox(id, clientId){this.id = id;this.clientId = clientId;this.visible = true;this.dispCond = new Array();this.reqCond = new Array();this.reqCondCnt = 0;this.changes = new Array();return this;}
CheckBox.prototype.GetElement = function(){if(this.el == null){this.el = document.getElementById(this.clientId);}return this.el;}
CheckBox.prototype.Checked = function(){this.GetElement();if(this.el != null){return this.el.checked;}return false;}
CheckBox.prototype.Validate = function(errorMessage){_ValidateChecked(this.GetElement(), this.Checked(), this.reqCond, errorMessage);}
CheckBox.prototype.Changed = function(){_CheckChanged(this);}
CheckBox.prototype.AddConditionalDisplayField = function(childField, value){this.dispCond[this.dispCond.length] = {childField:childField,value:value};}
CheckBox.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
CheckBox.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
CheckBox.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End CheckBox

//Begin CheckBoxList
function CheckBoxList(id, clientId){this.id = id;this.clientId = clientId;this.els = new Array();this.visible = true;this.dispCond = new Array();this.reqCondCnt = 0;this.reqCond = new Array();this.changes = new Array();return this;}
CheckBoxList.prototype.GetElements = function(){return _GetItems(this);}
CheckBoxList.prototype.Validate = function(errorMessage){return _ValidateList(this, errorMessage);}
CheckBoxList.prototype.Values = function(){var values = new Array();this.GetElements();if(this.els.length > 0){for(var j = 0; j < this.els.length; j++){if(this.els[j].checked){values[values.length] = this.els[j].value;}}}return values;}
CheckBoxList.prototype.AddConditionalDisplayField = function(childField, value){this.dispCond[this.dispCond.length] = {childField:childField,value:value};}
CheckBoxList.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
CheckBoxList.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
CheckBoxList.prototype.Changed = function(){_ChangedList(this);}
CheckBoxList.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End CheckBoxList

//Begin RadioButtonList
function RadioButtonList(id, clientId){this.id = id;this.clientId = clientId;this.els = new Array();this.visible = true;this.dispCond = new Array();this.reqCondCnt = 0;this.reqCond = new Array();this.changes = new Array();return this;}
RadioButtonList.prototype.GetElements = function(){return _GetItems(this);}
RadioButtonList.prototype.Validate = function(errorMessage){return _ValidateList(this, errorMessage);}
RadioButtonList.prototype.Value = function(){this.GetElements();if(this.els.length > 0){for(var j = 0; j < this.els.length; j++){if(this.els[j].checked){if(this.values != null){for(var k = 0; k < this.values.length; k++){if(this.values[k].id == this.els[j].value){if(this.values[k].v != null){return this.values[k].v;}else{return this.values[k].ci + '.' + this.values[k].co;}k = this.values.length;j = this.els.length;}}}else{return this.els[j].value;}}}}return '';}
RadioButtonList.prototype.AddConditionalDisplayField = function(childField, value){this.dispCond[this.dispCond.length] = {childField:childField,value:value};}
RadioButtonList.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
RadioButtonList.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
RadioButtonList.prototype.Changed = function(){_ChangedList(this);}
RadioButtonList.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End RadioButtonList

//Begin RadioButton
function RadioButton(id, clientId){this.id = id;this.clientId = clientId;this.visible = true;this.dispCond = new Array();this.reqCond = new Array();this.reqCondCnt = 0;this.changes = new Array();return this;}
RadioButton.prototype.GetElement = function(){if(this.el == null){this.el = document.getElementById(this.clientId);}return this.el;}
RadioButton.prototype.Checked = function(){this.GetElement();if(this.el != null){return this.el.checked;}return false;}
RadioButton.prototype.Validate = function(errorMessage){_ValidateChecked(this.GetElement(), this.Checked(), this.reqCond, errorMessage);}
RadioButton.prototype.AddConditionalDisplayField = function(childField, value){this.dispCond[this.dispCond.length] = {childField:childField,value:value};}
RadioButton.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
RadioButton.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
RadioButton.prototype.Changed = function(){_CheckChanged(this);}
RadioButton.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End RadioButton

//Begin ListBox
function ListBox(id, clientId){this.id = id;this.clientId = clientId;this.visible = true;this.dispCond = new Array();this.reqCond = new Array();this.reqCondCnt = 0;this.changes = new Array();return this;}
ListBox.prototype.GetElement = function(){if(this.el == null){this.el = document.getElementById(this.clientId);}return this.el;}
ListBox.prototype.Validate = function(errorMessage)
{
	this.GetElement();
	if(this.el != null)
	{
		if(this.el.options[this.el.selectedIndex].value == '')
		{
			alert(errorMessage);
			this.el.focus();
			return false;
		}
		return true;
	}
	return false;
}
ListBox.prototype.Value = function()
{
	this.GetElement();
	if(this.el != null)
		if(this.values != null)
		{
			for(var j = 0; j < this.values.length; j++)
				if(this.values[j].id == this.el.options[i].value)
				{
					if(this.values[j].v != null)
						return this.values[j].v;
					else
						return this.values[j].ci + '.' + this.values[j].co;
				}
		}
		else
			return this.el.options[this.el.selectedIndex].value;
	return '';
}
ListBox.prototype.Values = function()
{
	var vals = new Array();
	
	this.GetElement();
	if(this.el != null)
	{
		for(var i = 0; i < this.el.options.length; i++)
		{
			if(this.el.options[i].selected)
			{
				if(this.values != null)
				{
					for(var j = 0; j < this.values.length; j++)
						if(this.values[j].id == this.el.options[i].value)
						{
							if(this.values[j].v != null)
								vals[vals.length] = this.values[j].v;
							else
								vals[vals.length] = this.values[j].ci + '.' + this.values[j].co;
							j = this.values.length;
						}
				}else
					vals[vals.length] = this.el.options[i].value;
			}
		}
	}
	return '';
}
ListBox.prototype.AddConditionalDisplayField = function(childField, value){this.dispCond[this.dispCond.length] = {childField:childField,value:value};}
ListBox.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
ListBox.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
ListBox.prototype.Changed = function()
{
	this.GetElement();
	if(this.dispCond.length > 0)
		for(var i = 0; i < this.dispCond.length; i++)
		{
			for(var j = 0; j < this.el.options.length; j++)
				if(this.el.options[j].id == this.dispCond[i].value)
					this.dispCond[i].childField.Visible(this.el.options[j].selected);
		}
}
ListBox.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End ListBox

//Begin TextArea
function TextArea(id, clientId){this.id = id;this.clientId = clientId;this.reqCond = new Array();this.visible = true;this.reqCondCnt = 0;this.changes = new Array();return this;}
TextArea.prototype.GetElement = function(){if(this.el == null){ this.el = document.getElementById(this.clientId); }return this.el;}
TextArea.prototype.Validate = function(errorMessage)
{
	this.GetElement();
	if(this.el != null)
	{
		if(this.el.value.length == 0)
		{
			alert(errorMessage);
			this.el.focus();
			return false;
		}
		return true;
	}
	return false;
}
TextArea.prototype.Value = function(){this.GetElement();if(this.el != null){return this.el.value;}}
TextArea.prototype.Visible = function(value){this.visible = SetVisible(this.id, value);}
TextArea.prototype.AddConditionalRequiredField = function(parentField, value, errorMessage){_AddRequiredField(this, parentField, value, errorMessage);}
TextArea.prototype.Changed = function(){_TextChanged(this.GetElement());}
TextArea.prototype.ConditionallyRequired = function(blnIsRequired){_ConditionallyRequired(this, blnIsRequired);}
//End TextArea

function ValidateEmail(errorMessage){var strRegEx = /^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;if(Email != null && Email.Value().length > 0){if(strRegEx.test(Email.Value())){return true;}else{alert(errorMessage);return false;}}return true;}
function cleanForm(){for(i = 0; i < document.forms[0].length; i++){var el = document.forms[0][i];if(el.type == 'text' || el.type == 'textarea'){while(el.value.indexOf('>') >= 0 || el.value.indexOf('<') >= 0 || el.value.indexOf('javascript') >= 0 || el.value.indexOf('onkeypress') >= 0){el.value = el.value.replace('<', '').replace('>', '').replace('javascript', '').replace('onkeypress', '');}}}}
function SetVisible(id, value){ var el = document.getElementById('Boundary_' + id); if(el != null) { el.style.display = (value ? '' : 'none'); } return value; }

function _ValidateValue(el, val, req, err)
{
	var blnProcess = false;
	var parent;
	var value;
	
	if(req.length > 0)
	{
		for(var i = 0; i < req.length; i++)
		{
			parent = req[i].parentField;
			if(typeof(parent.Checked) != 'undefined')
			{
				if(req[i].value.toLowerCase() == (parent.Checked() ? 'true' : 'false'))
					blnProcess = true;
			}
			else if(typeof(parent.Value) != 'undefined')
			{
				if(parent.Value().toLowerCase() == req[i].value.toLowerCase())
					blnProcess = true;
			}
		}
		if(!blnProcess)
			return true;
	}	
	if(el != null)
	{
		if(val.length == 0)
		{
			alert(err);
		  	el.focus();
			return false;
		}
		return true;
	}
	return false;
}

function _ValidateChecked(el, val, req, err)
{
	var blnProcess = false;
	var parent;
	var value;
	
	if(req.length > 0)
	{
		for(var i = 0; i < req.length; i++)
		{
			parent = req[i].parentField;
			if(typeof(parent.Checked) != 'undefined')
			{
				if(req[i].value.toLowerCase() == (parent.Checked() ? 'true' : 'false'))
					blnProcess = true;
			}
			else if(typeof(parent.Value) != 'undefined')
			{
				if(parent.Value().toLowerCase() == req[i].value.toLowerCase())
					blnProcess = true;
			}
		}
		if(!blnProcess)
			return true;
	}	
	if(el != null)
	{
		if(!val)
		{
			alert(err);
		  	el.focus();
			return false;
		}
		return true;
	}
	return false;
}

function _AddRequiredField(obj, parentField, value, errorMessage)
{
	obj.reqCond[obj.reqCond.length] = {parentField:parentField, value:value, errorMessage:errorMessage};
	parentField.changes[parentField.changes.length] = {child:obj, value:value};
}

function _TextChanged(el)
{
	while(el.value.indexOf('>') >= 0 || el.value.indexOf('<') >= 0 || el.value.indexOf('javascript') >= 0 || el.value.indexOf('onkeypress') >= 0)
	{
		el.value = el.value.replace('<', '').replace('>', '').replace('javascript', '').replace('onkeypress', '');
	}
}

function _ConditionallyRequired(obj, blnIsRequired)
{
	if(blnIsRequired)
	{
		obj.reqCondCnt++;
	}else{
		if(obj.reqCondCnt > 0)
			obj.reqCondCnt--;
	}

	var obj2 = document.getElementById(obj.clientId.substring(0, obj.clientId.lastIndexOf('_') + 1) + 'mlblRequired');
	if(obj2 != null)
	{
		if(obj.reqCondCnt > 0)
		{
			obj2.style.display = '';
		}else{
			obj2.style.display = 'none';
		}
	}
}

function _ListValue(obj)
{	
	obj.GetElement();
	if(obj.el != null)
		if(obj.values != null)
		{
			for(var j = 0; j < obj.values.length; j++)
				if(obj.values[j].id == obj.el.options[obj.el.selectedIndex].value || obj.values[j].id == obj.el.options[obj.el.selectedIndex].id)
				{
					if(obj.values[j].v != null)
						return obj.values[j].v;
					else
						return obj.values[j].ci + '.' + obj.values[j].co;
				}
		}
		else
			return obj.el.options[obj.el.selectedIndex].value;
	return '';
}

function _CheckChanged(obj)
{
	obj.GetElement();
	if(obj.dispCond.length > 0)
		for(var i = 0; i < obj.dispCond.length; i++)
		{
			obj.dispCond[i].childField.Visible( ( obj.Checked() ? (obj.dispCond[i].value.toLowerCase() == 'true') : (obj.dispCond[i].value.toLowerCase() == 'false')));
		}
	if(obj.changes.length > 0)
	{
		for(var i = 0; i < obj.changes.length;  i++)
		{
			if(obj.Checked() && obj.changes[i].value.toLowerCase() == 'true')
				obj.changes[i].child.ConditionallyRequired(true);
			else if(!obj.Checked() && obj.changes[i].value.toLowerCase() == 'false')
				obj.changes[i].child.ConditionallyRequired(true);
			else
				obj.changes[i].child.ConditionallyRequired(false);
		}		
	}
}

function _ValidateList(obj, errorMessage)
{
	var retVal = false;
	obj.GetElements();
	if(obj.els.length > 0)
	{
		for(j = 0; j < obj.els.length; j++)
		{
			if(obj.els[j].checked)
			{
				retVal = true;
				j = obj.els.length;
			}
		}
	}
	if(!retVal)
		alert(errorMessage);
	return retVal;
}

function _ChangedList(obj)
{
	if(obj.Value != null)
	{
		if(obj.prev == null)
			obj.prev = obj.Value();
		else if(obj.prev == obj.Value())
			return;
		else
			obj.prev = obj.Value();		
	}
	
	obj.GetElements();
	if(obj.dispCond.length > 0)
	{
		for(var i = 0; i < obj.dispCond.length; i++)
		{
			for(var j = 0; j < obj.els.length; j++)
			{
				if(obj.els[j].id == obj.dispCond[i].value)
				{
					obj.dispCond[i].childField.Visible(obj.els[j].checked);
					j = obj.els.length;
				}
			}
		}
	}
	if(obj.changes.length > 0)
	{
		for(var i = 0; i < obj.changes.length; i++)
		{
			obj.changes[i].child.ConditionallyRequired(obj.changes[i].value.toLowerCase() == obj.Value().toLowerCase());
		}
	}

}

function _GetItems(obj)
{
	if(obj.els.length == 0)
	{
		var els = document.getElementsByTagName('input');
		for(var i = 0; i < els.length; i++)
		{
			if(els[i].id.indexOf(obj.clientId) == 0)
			{
				obj.els[obj.els.length] = els[i];
			}
		}
	}
	return obj.els;
}
function frmChecker(id)
{
	this.id = id;
	this.clientID = '';
	this.uniqueID = '';
	this.form = null;
	this.warnURL = '';
	this.warnWin = null;
	this.tags = new Array();
	this.vals = new Array();
	this.href = '';
	this.initialized = false;

	return this;
}

frmChecker.prototype.route = function()
{
	if(this.href.indexOf('javascript:') > -1)
	{
		eval(unescape(this.href.substring(this.href.indexOf('javascript:') + 11)));
	}else{
		location.href = this.href;
	}
}

frmChecker.prototype.checkForm = function()
{
	var pass = true;
	
	for(i = 0; i < this.tags.length; i++)
	{
		var tagID = '';
		if(this.tags[i].id)
			tagID = this.tags[i].id;
		else if(this.tags[i].name)
			tagID = this.tags[i].name;
		switch(this.tags[i].type)
		{
			case 'radio':
			case 'checkbox':
				if(this.vals[tagID] != null && this.tags[i].checked != this.vals[tagID])
					pass = false;
				break;
			case 'text':
			case 'textarea':
				if(this.vals[tagID] != null && this.tags[i].value != this.vals[tagID])
					pass = false;
				break;
			case 'select-one':
			case 'select-multiple':
				if(this.vals[tagID] != null && this.tags[i].selectedIndex != this.vals[tagID])
					pass = false;
				break;
		}
	}
	return pass;	
}

frmChecker.prototype.Initialize = function(clientID, uniqueID, form, warnURL)
{
	this.clientID = clientID;
	this.uniqueID = uniqueID;
	this.form = form;
	this.warnURL = warnURL;
	this.initialized = true;

	for(i = 0; i < this.form.length; i++)
	{
		var fieldID = '';
		var ind = -1;
		
		if(this.form[i].id)
		{
			fieldID = this.form[i].id;
			ind = fieldID.indexOf(this.clientID)
		}
		else if(this.form[i].name)
		{
			fieldID = this.form[i].name;
			ind = fieldID.indexOf(this.uniqueID)
		}
		
		if(ind == 0)
		{
			switch(this.form[i].type)
			{
				case 'radio':
				case 'checkbox':
					this.tags[this.tags.length] = this.form[i];
					this.vals[fieldID] = this.form[i].checked;
					break;
				case 'text':
					this.tags[this.tags.length] = this.form[i];
					this.vals[fieldID] = this.form[i].value;
					break;
				case 'textarea':
					this.tags[this.tags.length] = this.form[i];
					this.vals[fieldID] = this.form[i].value;
					break
				case 'select-one':
				case 'select-multiple':
					this.tags[this.tags.length] = this.form[i];
					this.vals[fieldID] = this.form[i].selectedIndex;
					break;
			}
		}
	}
	
	var save = this.form[this.clientID + '_frmSaveState']
	if(save == null)
		save = this.form[this.uniqueID + ':frmSaveState']

	if(save != null)
	{
		var items = save.value.split('||')
		for(i = 1; i < items.length; i++)
		{
			eval('var frmTemp = ' + items[i])
			this.vals[frmTemp.id] = frmTemp.value
			frmTemp = null;
		}
		save.value = ''
	}
	
	for(i = 0; i < document.links.length; i++)
	{
		if(document.links[i].onclick == null)
			document.links[i].onclick = displayWarning
	}
}

frmChecker.prototype.saveState = function()
{
	var save = this.form[this.clientID + '_frmSaveState']
	if(save == null)
		save = this.form[this.uniqueID + ':frmSaveState']
		
	if(save != null)
	{
		for(i = 0; i < this.tags.length; i++)
		{
			var tagID = '';
			if(this.tags[i].id)
				tagID = this.tags[i].id;
			else if(this.tags[i].name)
				tagID = this.tags[i].name;
				
			switch(this.tags[i].type)
			{
				case 'radio':
				case 'checkbox':
					if(this.vals[tagID] != null && this.tags[i].checked != this.vals[tagID])
						save.value += '||{id : \'' + tagID + '\', value: ' + this.vals[tagID] + '}'
					break;
				case 'text':
					if(this.vals[tagID] != null && this.tags[i].value != this.vals[tagID])
						save.value += '||{id : \'' + tagID + '\', value: \'' + this.vals[tagID].replace("'", "\'") + '\'}'
					break;
				case 'textarea':
						if(this.vals[tagID] != null && this.tags[i].value != this.vals[tagID])
							save.value += '||{id : \'' + tagID + '\', value: \'' + this.vals[tagID].replace("'", "\'") + '\'}'
						break;
				case 'select-one':
				case 'select-multiple':
					if(this.vals[tagID] != null && this.tags[i].selectedIndex != this.vals[tagID])
						save.value += '||{id : \'' + tagID + '\', value: ' + this.vals[tagID] + '}'
					break;
			}
		}
	}
}

frmChecker.prototype.warn = function(obj)
{
	if(this.form != null)
	{
		var objID = '';
		var ind = 0;
		if(obj.id)
		{
			objID = obj.id;
			ind = objID.indexOf(this.clientID)
		}
		else if(obj.name)
		{
			objID = obj.name;
			ind = objID.indexOf(this.uniqueID)
		}
			
        if(obj.href.indexOf('javascript:form.Submit();') == -1 && (obj.href.indexOf('PostBack') == -1 || (obj.href.indexOf('PostBack') > -1 && ind == -1)))
		{
			if(!this.checkForm())
			{
				this.href = obj.href;
				var width = 400;
				var height = 220;
				var top = 0;
				var left = 0;
				
				top = (screen.availHeight - height) / 2;
				left = (screen.availWidth - width) / 2;
				
				if(typeof(window) != 'undefined')
					this.warnWin = window.open(this.warnURL, 'warning', 'resizeable=yes, width=' + width + ',height=' + height + ',top=' + top + ',left=' + left);
				else
					this.warnWin = open(this.warnURL, 'warning', 'resizeable=yes, width=400,height=220,top=300,left=450');

				return false;
			}
		}
	}
	return true;
}

var myFormChecker = new frmChecker('myFormChecker')

function displayWarning()
{
	return myFormChecker.warn(this);
}

onfocus = function()
{
	if(myFormChecker.initialized)
		if(myFormChecker.warnWin != null && !myFormChecker.warnWin.closed)
			myFormChecker.warnWin.focus();
}

function frmCancel()
{
	if(typeof(window.opener.myFormChecker) != 'undefined')
		window.opener.myFormChecker.route();
	self.close();
}

function openerFocus()
{
	if(window.opener)
		window.opener.focus();
}
var HiddenMenus = new Array();

function HiddenMenu(id, objectID)
{
	this.id = id;
	this.objectID = objectID;
	this.addSelf = false;
	HiddenMenus[HiddenMenus.length] = this;
	this.off = 6;
	if(navigator != null && navigator.userAgent != null)
		if(navigator.userAgent.indexOf('MSIE') > -1 && navigator.userAgent.indexOf('MSIE 7.') == -1)
		{
			this.off = 2;
		}
	return this;
}

function AddSelf(obj, href, title)
{
   var newtitle = "Overview";
   if (obj.addSelf == false)
   {
   	obj.addSelf = true;
   	var span = document.createElement("SPAN");
   	span.className = "FlyoutLevel01";

	if(document.all)
        {
     		span.innerText = newtitle;
	} 
	else
        {
    		span.textContent = newtitle;
	}
   
   	var link = document.createElement("A");
   	link.href = href;
   	link.className = "FlyoutBg";
   	link.title = newtitle;
   	link.appendChild(span);
   	
   	var div = document.getElementById(obj.objectID);
   	div.insertBefore(link,div.childNodes[0]);
   	
   }
}

var urlsections=["solutions/executiveview/","usa/solutions/executiveview/"];
function CheckAdd(p, obj)
{
  for(i in urlsections)
  {
	var index = p.pathname.toLowerCase().indexOf(urlsections[i]);

	if ( index ==0 || index == 1)
	  AddSelf(obj,p.href,p.title);
  }
}

HiddenMenu.prototype.Display = function()
{
	this.visible = true;
	this.evt = (window.event ? window.event : arguments.callee.caller.arguments[0]);
	this.src = (this.evt.srcElement ? this.evt.srcElement : this.evt.target)
	var p = this.src.parentNode;

	CheckAdd(p, this);
		
	this.src.parentNode.parentNode.parentNode.childNodes[0].src = '/global/images/LeftNavArrowRightOver.gif'
	for(i = 0; i < HiddenMenus.length; i++)
	{
		if(HiddenMenus[i] != this)
		{
			HiddenMenus[i].visible = false;
			HiddenMenus[i].DoHide();
		}
	}
	setTimeout(this.id + '.DoDisplay()', 500);
}
HiddenMenu.prototype.DoDisplay = function(e)
{
	var top, height;
	
	if(this.visible && (!this.obj || this.obj.style.display != 'inline'))
	{
		var evt = this.evt;
		var win = GetWindowInfo();
		var objInfo, srcInfo;
	
		if(evt)
		{
			this.obj = document.getElementById(this.objectID);
			srcInfo = GetObjectInfo(this.src);
			this.obj.style.top = (srcInfo.top + 1) + 'px';
			this.obj.style.left = (srcInfo.left + 200) + 'px';
			this.obj.style.width = '0px';
			this.Expand();	
			this.obj.style.display = 'inline';
			objInfo = GetObjectInfo(this.obj);
			
			if(objInfo.top + objInfo.height > win.top + win.height)
				this.obj.style.top = (srcInfo.top + srcInfo.height - objInfo.height - this.off) + 'px';
				
			if(this.off == 2)
			{
				if(this.obj.insertAdjacentHTML)
				{
					this.iframe = document.getElementById(this.objectID + '_iframe');
					if(this.iframe == null)
					{
						this.obj.insertAdjacentHTML("afterEnd", '<IFRAME style="position: absolute;height:0;width:0;z-index:4;" src="javascript:false;" frameBorder="0" scrolling="no" id="' + this.objectID + '_iframe" />');
						this.iframe = document.getElementById(this.objectID + '_iframe');
					}
					this.iframe.style.top = this.obj.style.top;
					this.iframe.style.left = this.obj.style.left
					this.iframe.style.width = this.obj.offsetWidth;
					this.iframe.style.height = this.obj.offsetHeight;
				}
			}
		}
	}
}
HiddenMenu.prototype.Show = function()
{
	this.visible = true;
	return true;
}
HiddenMenu.prototype.Hide = function()
{
	this.visible = false;
	setTimeout(this.id + '.DoHide()', 150);
}
HiddenMenu.prototype.DoHide = function()
{
	if(!this.visible)
	{
		if(this.src)
			this.src.parentNode.parentNode.parentNode.childNodes[0].src = '/global/images/LeftNavArrowRight.gif'
		if(this.off == 2)
		{
			var iframe = document.getElementById(this.objectID + '_iframe');
			if(iframe != null)
				document.getElementById(this.objectID).parentNode.removeChild(iframe);
		}
		document.getElementById(this.objectID).style.display = 'none';
	}
}
HiddenMenu.prototype.Expand = function()
{
	if(parseInt(this.obj.style.width, 10) < 200)
	{
		this.obj.style.width = (parseInt(this.obj.style.width, 10) + 40) + 'px';
		if(this.off == 2)
		{
			if(this.iframe != null)
			{
				this.iframe.style.width = this.obj.offsetWidth;
				this.iframe.style.height = this.obj.offsetHeight;
			}
		}
		setTimeout(this.id + '.Expand()', 5);
	}
}
var rememberWin = null;
	
function RememberMe()
{
	if(typeof(window) != 'undefined')
		rememberWin = window.open('~/profile/remember_me.epx', 'warning', 'resizeable=yes, width=400,height=180,top=300,left=450');
	else
		rememberWin = open('~/profile/remember_me.epx', 'warning', 'resizeable=yes, width=400,height=180,top=300,left=450');
	rememberWin.focus();
	return false;
}

onfocus = function()
{
	if(rememberWin != null && !rememberWin.closed)
		rememberWin.focus();
}
var pfnXHR = null;

if (typeof(XMLHttpRequest) == 'undefined') {
	var XMLHttpRequest = function() {
		var r = null;
		if (pfnXHR) return pfnXHR();
		else {
			try	{
				pfnXHR = function() { return new ActiveXObject('Msxml2.XMLHTTP'); }
				r = pfnXHR();
			}
			catch(e) {
				try	{
					pfnXHR = function() { return new ActiveXObject('Microsoft.XMLHTTP'); }
					r = pfnXHR();
				}
				catch(ee){
					pfnXHR = function() { return null; }
				}
			}
			return r;
		}
	}
}

function RemoteMethod(URL)
{
	this.RemoteURL = URL;
	this.MethodName = null;
	this.RemoteArgs = new Array();
	this.LocalObjectID = null;
	this.LocalAction = null;
}

RemoteMethod.prototype.AddArguments = function()
{
	// necessary because "arguments" isn't necessarily an array; in FireFox it's an object
	for (i = 0; i < arguments.length; i++) {
		this.AddArgument(arguments[i]);
	}
}

RemoteMethod.prototype.AddArgument = function(arg)
{
	this.RemoteArgs.push(arg);
}

RemoteMethod.prototype.Invoke = function()
{
	var req = new XMLHttpRequest();
	var pfnCallback = this.LocalAction;
	var objCallback = this.LocalObjectID;
	var async = pfnCallback != null;
	if (async)
	{
		req.onreadystatechange = function()
		{
			// only if req shows "loaded"
			if (req.readyState == 4)
			{
				// only if "OK"
				if (req.status == 200)
				{
					if (req.responseText)
						if(objCallback != null)
						{
							eval(objCallback + '.' + pfnCallback + '(' + req.responseText + ')');
						}
						else
							pfnCallback(eval(req.responseText));
					else
						if(objCallback != null)
						{
							eval(objCallback + '.' + pfnCallback + '(null)');
						}
						else
							pfnCallback(null);
			   	}else{
					pfnCallback(null);
				    window.status = "There was a problem retrieving the XML data:\n" +
						req.statusText;
			    	}
		    	}
      		}	
    	}
	req.open("POST", this.RemoteURL, true);
	var obj = {"method":this.MethodName, "arguments":this.RemoteArgs}
	var jsonStr = JSON.stringify(obj);
	req.send(jsonStr);
}

function remoteInvoke(scriptName, methodName) {
	var req = new XMLHttpRequest();
	var args = null;
	var pfnCallback = null;
	if (arguments.length > 2) {
		args = new Array();
		for (var i = 2; i < arguments.length; i++) {
			if (typeof(arguments[i]) == "function") {
				pfnCallback = arguments[i];
			}
			else {
				args.push(arguments[i]);
			}
		}
	}
	var async = pfnCallback != null;
	if (async) {
        req.onreadystatechange = function() {
		    // only if req shows "loaded"
		    if (req.readyState == 4) {
			    // only if "OK"
			    if (req.status == 200) {
			        if (req.responseText)
			            pfnCallback(eval(req.responseText));
			        else
				        pfnCallback(null);
			    } else {
				    window.status = "There was a problem retrieving the XML data:\n" +
				    	req.statusText;
			    }
		    }
        }
    }
	req.open("POST", scriptName, true);
	var obj = {"method":methodName, "arguments":args}
	var jsonStr = JSON.stringify(obj);
	req.send(jsonStr);
}



///JSON stuff
/*
Copyright (c) 2005 JSON.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The Software shall be used for Good, not Evil.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

var JSON = {
    org: 'http://www.JSON.org',
    copyright: '(c)2005 JSON.org',
    license: 'http://www.crockford.com/JSON/license.html',
    stringify: function (arg) {
        var c, i, l, s = '', v;

        switch (typeof arg) {
        case 'object':
            if (arg) {
                if (arg.constructor == Array) {
                    for (i = 0; i < arg.length; ++i) {
                        v = this.stringify(arg[i]);
                        if (s) {
                            s += ',';
                        }
                        s += v;
                    }
                    return '[' + s + ']';
                } else if (typeof arg.toString != 'undefined') {
                    for (i in arg) {
                        v = arg[i];
                        if (typeof v != 'undefined' && typeof v != 'function') {
                            v = this.stringify(v);
                            if (s) {
                                s += ',';
                            }
                            s += this.stringify(i) + ':' + v;
                        }
                    }
                    return '{' + s + '}';
                }
            }
            return 'null';
        case 'number':
            return isFinite(arg) ? String(arg) : 'null';
        case 'string':
            l = arg.length;
            s = '"';
            for (i = 0; i < l; i += 1) {
                c = arg.charAt(i);
                if (c >= ' ') {
                    if (c == '\\' || c == '"') {
                        s += '\\';
                    }
                    s += c;
                } else {
                    switch (c) {
                        case '\b':
                            s += '\\b';
                            break;
                        case '\f':
                            s += '\\f';
                            break;
                        case '\n':
                            s += '\\n';
                            break;
                        case '\r':
                            s += '\\r';
                            break;
                        case '\t':
                            s += '\\t';
                            break;
                        default:
                            c = c.charCodeAt();
                            s += '\\u00' + Math.floor(c / 16).toString(16) +
                                (c % 16).toString(16);
                    }
                }
            }
            return s + '"';
        case 'boolean':
            return String(arg);
        default:
            return 'null';
        }
    }
};

//<!-- Acronym Media ROI Engine Tracking Code v4.40 - DO NOT MODIFY -->
var _S_NOFPC=true;
function createITT(){var pid='10002109824374';var trdom='roiengine.sap.com';var sectrdom='roiengine.sap.com';return new ITT(pid,trdom,sectrdom);}
function ITT(pid,trdom,sectrdom){var i;this.version="4.40";this.dbg=false;this.PID=pid;this._ud="undefined";this.tpc=(typeof window._S_NOTPC!=this._ud&&window._S_NOTPC)?'&tp=0':'';this.BD=(window.location.protocol.indexOf('https:')==0?'https://'+sectrdom:'http://'+trdom);this.BU=this.BD+'/p.pl?a='+this.PID+this.tpc+'&v='+this.version;this.URL=this.getClnUrl(document.URL?document.URL:document.location);if(typeof window._S_URL!=this._ud)this.URL=this.getClnUrl(window._S_URL);this.cfn=new Array;this.cfv=new Array;this.IT="";var nan=navigator.appName;this.net=(nan=="Netscape");this.mic=(nan.substring(0,9)=="Microsoft"&&(typeof navigator.plugins==this._ud||navigator.plugins.length==0));this.mac=(navigator.userAgent.indexOf('Mac')>=0);this.gec=(navigator.userAgent.indexOf('Firefox')>=0||navigator.userAgent.indexOf('Netscape')>=0);this.date=new Date();this.DOCUMENTNAME=document.title;this.CAMPAIGN="";this.CMPPARM="";this.PROMO="";this.PROMOPARM="";this.EXCL="";this.FPCR="";this.FPCN='fpc'+this.PID;this.FPCV="";this.FPCD="";this.ENC="";this.itvs="";this.itsid="";this.itvid="";this.place=document.body;var heads=document.getElementsByTagName('head');if(typeof heads!=this._ud&&heads.length>0)this.place=heads[0];this.FLV=this.flash();if(typeof window.ITTs==this._ud)window.ITTs=new Array;this.idx=window.ITTs.length;window.ITTs[this.idx]=this;eval("ITT.prototype._e=function(){window.ITTs["+this.idx+"]._track(false,true);return true;}");this.ita=["URL","f","DOCUMENTNAME","b","DOCUMENTGROUP","c","MEMBERID","m","ACTION","x","AMOUNT","xa","ORDERID","oc","_S_TAX","xt","_S_SHIPPING","xs","_S_DISCOUNT","xd","_S_SKU","p","_S_PRODUCTS","u","_S_UNITS","q","_S_AMOUNTS","r","_S_CMPQUERY","cq","_S_ISK","isk","_S_ISR","isr"];for(i=0;i<10;i++){eval("window.ITTs["+this.idx+"].ita[window.ITTs["+this.idx+"].ita.length]=\"_S_P"+(1+i)+"\";window.ITTs["+this.idx+"].ita[window.ITTs["+this.idx+"].ita.length]=\"p"+(1+i)+"\"");}for(i=0;i<99;i++){eval("window.ITTs["+this.idx+"].ita[window.ITTs["+this.idx+"].ita.length]=\"_s_cf"+((i<9)?"0":"")+(1+i)+"\";window.ITTs["+this.idx+"].ita[window.ITTs["+
this.idx+"].ita.length]=\"cf"+(1+i)+"\"");}if(typeof window.imgs==this._ud)window.imgs=new Array;if(typeof document.charset!=this._ud)this.ENC=document.charset;else if(typeof document.characterSet!=this._ud)this.ENC=document.characterSet;else if(typeof window._S_ENC!=this._ud)this.ENC=window._S_ENC;this.FPCR='&ittidx='+this.idx+'&fpc='+escape(this.getCookie(this.FPCN));}
ITT.prototype.pp=function(){var i;for(i=0;i+1<this.ita.length;i+=2){if(i>0)eval("if ((typeof window."+this.ita[i]+" != 'undefined') && (window."+this.ita[i]+" != '')){window.ITTs["+this.idx+"]."+this.ita[i]+"=window."+this.ita[i]+";window."+this.ita[i]+"='';}");eval("if ((typeof window.ITTs["+this.idx+"]."+this.ita[i]+" != 'undefined') && (window.ITTs["+this.idx+"]."+this.ita[i]+" != '')){window.ITTs["+this.idx+"].IT+=\"&"+this.ita[i+1]+"=\"+escape(window.ITTs["+this.idx+"]."+this.ita[i]+");}");}}
ITT.prototype.flash=function(){if(typeof window._s_itt_flash==this._ud){var fd="";var np=navigator.plugins;if(np!=null&&np.length>0){if(np["Shockwave Flash 2.0"]||np["Shockwave Flash"]){var swVer2=np["Shockwave Flash 2.0"]?" 2.0":"";fd=np["Shockwave Flash"+swVer2].description;}}else{var _vb=document.createElement("script");_vb.language="VBScript";_vb.text='\nFunction sVBSwfVer(i)\non error resume next\nDim swC,swV\nswV=0\nset swC=CreateObject("ShockwaveFlash.ShockwaveFlash."+CStr(i))\nif(IsObject(swC))then\nswV=swC.GetVariable("$version")\nend if\nsVBSwfVer=swV\nEnd Function\n';this.place.appendChild(_vb);fd=sVBSwfVer(1);}window._s_itt_flash=fd;return window._s_itt_flash;}return window._s_itt_flash;}
ITT.prototype.setCookie=function(name,value,off){var _d=new Date();_d.setTime(_d.getTime()+(off*1000));var expiry=(off>0)?"; expires="+_d.toGMTString():"";if((typeof(_S_DOMAIN)!=this._ud)&&(_S_DOMAIN!=""))this.FPCD=_S_DOMAIN;var cookie=name+"="+value+expiry+"; path=/"+((this.FPCD!="")?("; domain="+this.FPCD):(""));document.cookie=cookie;}
ITT.prototype.deleteCookie=function(name){document.cookie=name+"=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";}
ITT.prototype.getCookie=function(name){var dc=document.cookie;var pos=dc.indexOf(name+"=");if(pos!=-1){var start=pos+name.length+1;var end=dc.indexOf(";",start);if(end==-1){end=dc.length;}return dc.substring(start,end);}return"";}
ITT.prototype.FPCSupport=function(){if(typeof window._S_NOFPC!=this._ud&&window._S_NOFPC)return false;if(this.getCookie(this.FPCN)!="")return true;var _dn="itfpctmp";var _d=new Date();var _dt=_d.getTime();this.setCookie(_dn,_dt,180);var _dr=this.getCookie(_dn);if(_dr==_dt){this.deleteCookie(_dn);return true;}return false;}
ITT.prototype.ol=function(){if(typeof window._S_ONLOAD!=this._ud&&!window._S_ONLOAD)return;if((window.screen)||((new Array()).toSource)||((new Array()).shift&&this.mic)){if(window.onload){eval("if(!window._s_itt_ool"+this.idx+")window._s_itt_ool"+this.idx+"=window.onload;");}eval("function olo"+this.idx+"(evt){if(window._s_itt_ool"+this.idx+")window._s_itt_ool"+this.idx+"(evt);var ln=document.links.length;for(var i=0;i<ln;i++){if(document.links[i].onclick)document.links[i].oc"+this.idx+"=document.links[i].onclick;eval(\"document.links[i].onclick=function(e){var rv=true;if(this.oc"+this.idx+")rv=this.oc"+this.idx+"(e);window.ITTs["+this.idx+"].oco(this);return rv;}\");}}");eval("window.onload=olo"+this.idx+";");}}
ITT.prototype.chkl0=function(x,y,z,Z,r){for(var i=0;i<y.length&&x.length>z;i++){var d=x.length-z;var l1=x.indexOf("&"+y[i]+"=");if(l1>0){l1+=y[i].length+2;var l2=x.indexOf("&",l1);if(l2>0){var bbf=l1;var iq=x.toLowerCase().indexOf("%3f",l1);var ik=x.toLowerCase().indexOf("%3d",l1);if(l2-l1>d+r.length+Z){l1+=l2-l1-d-r.length;for(var k=1;k<10;k++){if(x.charAt(l1-k)=='%'){l1-=k;break;}}}else if(l2-l1>Z){l1+=Z;for(var k=1;k<10;k++){if(x.charAt(l1-k)=='%'){l1-=k;break;}}}else continue;var x2=x.substring(0,l1);if(iq>0&&iq<l2){if(ik<0||ik>l2)x2+="%3D";x2+="%26";}x2+=r;x2+=x.substring(l2);x=x2;}}}if(x.length>z)return this.chkl(x,y,z,Z/2,r);return x;}
ITT.prototype.chkl=function(x,y,z,Z,r){x=this.chkl0(x,y,z,Z,r);if(x.length>z)x=this.chkl0(x,y,z,Z/2,r);return x;}
ITT.prototype.trk=function(s){var i=window.imgs.length;var _s=this.chkl(this.BU+"&enc="+escape(this.ENC)+this.IT+s+"&ix="+i+this.FPCR,["e","t","f","b"],2000,200,"[truncated]");window.imgs[i]=new Image();if(this.dbg)alert(_s);else if(this.net||(typeof window._S_BT!=this._ud&&window._S_BT))setTimeout("window.imgs["+i+"].src='"+_s+"';",1);else window.imgs[i].src=_s;this.reset();this.IT="";return _s;}
ITT.prototype.reset=function(){var i;for(i=8;i+1<this.ita.length;i+=2){eval("if ((typeof window.ITTs["+this.idx+"]."+this.ita[i]+" != 'undefined') && (window.ITTs["+this.idx+"]."+this.ita[i]+" != '')){window.ITTs["+this.idx+"]."+this.ita[i]+" = ''}");}}
ITT.prototype.gcpn=function(x){var z=location.search;var i=z.indexOf("?"+x+"=");var j=z.indexOf("&"+x+"=");if((i==0)||(j>-1)){var k=(i==0)?0:j;var l=z.indexOf('&',k+1);return z.substring(k+2+x.length,(l>-1)?l:z.length);}return"";}
ITT.prototype.getFileName=function(x){var i=x.indexOf("?");if(i>0)x=x.substring(0,i);return(x.substring(x.lastIndexOf("/")+1,x.length));}
ITT.prototype.gh=function(x){var i=x.host.indexOf(":");return(i>=0)?x.host.substring(0,i):x.host;}
ITT.prototype.ghs=function(x){var i=x.indexOf("//");if(i>=0){x=x.substring(i+2,x.length);i=x.indexOf('/');if(i>=0)return x.substring(0,i);return x.substring(i+2,x.length);}return"";}
ITT.prototype.gpr=function(x){var y=x.protocol;var i=y.indexOf(":");return(i>=0)?y:y+":";}
ITT.prototype.gp=function(x){var y=x.pathname;var i=y.indexOf("/");return(i==0)?y:"/"+y;}
ITT.prototype.mxDmnRGXP=function(v){if(v.toUpperCase().indexOf("REGEXP:")==0)return new RegExp(v.substring(7),"i");else return new RegExp(this.mxRgXpStr(v),"i");}
ITT.prototype.mxRgXpStr=function(e){while(e.indexOf(" ")>=0)e=e.replace(" ","");var r="";var a=e.split(",");for(var i=0;i<a.length;i++){var b=a[i].split(".");for(var j=0;j<b.length;j++)if(b[j].indexOf("*")>=0)b[j]="\.\+";if(b.length>0)a[i]=b.join("\\.");}if(a.length>0)r+=a.join("$|^");if(r.length>0)return"^"+r+"$";return"";}
ITT.prototype.customfield_reset=function(){this.cfn.length=0;this.cfv.length=0;}
ITT.prototype.customfield_submit=function(){if(this.cfn.length>0&&this.cfv.length>0){var _u=this.cf_ts();this.customfield_reset();this.pp();return this.trk(_u);}return"";}
ITT.prototype.customfield_set=function(n,v){this.cfn[this.cfn.length]=n;this.cfv[this.cfv.length]=v;}
ITT.prototype.cf_ts=function(){var i;var _u="&cf=1";for(i=0;i<this.cfn.length&&i<this.cfv.length;i++){_u+="&cn"+i+"="+escape(this.cfn[i])+"&cv"+i+"="+escape(this.cfv[i]);}return _u;}
ITT.prototype.submit_action=function(){this.pp();this.trk("&ca=1");}
ITT.prototype.submit_icmp=function(){this.pp();this.trk("&ci=1");}
ITT.prototype.exitlink=function(ln){this.pp();this.trk('&el='+escape(ln));}
ITT.prototype.el=function(x){if(this.gh(location)==this.gh(x))return true;var pt=(typeof window.DOMAINS!=this._ud&&window.DOMAINS!="")?this.mxDmnRGXP(window.DOMAINS):this.mxDmnRGXP(this.gh(location));if(pt.test(this.gh(x)))return true;if(x.href.indexOf("java")!=0)this.exitlink(x.href);return true;}
ITT.prototype.download=function(fn){this.pp();this.trk("&fn="+escape(fn));}
ITT.prototype.oco=function(x){if(typeof x.pathname!=this._ud){var fn=this.getFileName(x.pathname);if(fn!=""){var pt=new RegExp("\\..?html?|\\.asp|\\.cfm|\\.jsp|\\.cgi|\\.php[3-5]?|\\.pl|\\.taf|\\.tml|\\.dll|\\.vm|\\.mv|\\.do|\\.go|\\.weml|\\.tpl|\\.rcmx|jsessionid","i");if((!pt.test(fn))&&(fn.indexOf(".")!=-1)){if(((this.EXCL!="")&&(!this.mxDmnRGXP(this.EXCL).test(x.pathname)))||(this.EXCL.length==0)){this.download(x.href);}}else this.el(x);}else this.el(x);}}
ITT.prototype._track=function(_d,_i){var t="";var r=document.referrer;if(typeof _S_REFERRER!=this._ud&&_S_REFERRER.length>0)r=_S_REFERRER;else{if((navigator.userAgent.indexOf('Mac')>=0)&&(navigator.userAgent.indexOf('MSIE 4')>=0))r=document.referrer;else if(_d){window._itt_e=window.onerror;window.onerror=this._e;if(document.location!=top.location){r=top.document.referrer;t=top.location.href;}}else{this.IT+="&nr=t";}}if(window._itt_e)window.onerror=window._itt_e;else window.onerror=null;this.pp();if(r.length>0){var pt=(typeof window.DOMAINS!=this._ud&&window.DOMAINS!="")?this.mxDmnRGXP(window.DOMAINS):this.mxDmnRGXP(this.gh(location));this.IT+="&e="+escape(pt.test(this.ghs(r))?this.getClnUrl(r):r);}if(t.length>0)this.IT+="&t="+escape(t);var cs=this.FPCSupport();this.date=new Date();this.IT+="&flv="+escape(this.FLV);this.IT+="&d="+escape(this.date.toGMTString());this.IT+="&n="+escape(parseInt(this.date.getTimezoneOffset()/60));this.IT+="&g="+escape(this.net?navigator.language:navigator.userLanguage);this.IT+="&h="+escape((navigator.javaEnabled()?'Y':'N'));try{this.IT+="&j="+escape(screen.width+'x'+screen.height);this.IT+="&k="+escape((this.mic)?screen.colorDepth:screen.pixelDepth);}catch(e){}this.IT+="&l="+((cs)?"true":"false");if(this.CAMPAIGN!="")this.IT+="&cp="+escape(this.CAMPAIGN);if(this.CMPPARM!="")this.IT+="&cp="+escape(gcpn(this.CMPPARM));if(this.PROMO!="")this.IT+="&scp="+escape(this.PROMO);if(this.PROMOPARM!="")this.IT+="&scp="+escape(gcpn(this.PROMOPARM));if(typeof window._S_RUN!=this._ud&&!window._S_RUN)return;if(cs&&_i)this.fpc();else this.trk("");}
ITT.prototype.submit=function(){return this._track(true,false);}
ITT.prototype._submit=function(){return this._track(true,true);}
ITT.prototype.fpc=function(){this.getFPCvars();}
ITT.prototype.testscript=function(id){if(this.mac&&this.mic)return 0;else if(document.getElementById&&document.getElementById(id))return 1;else if(document.all&&document.all[id])return 2;else return 0;}
function _s_mozilla(){window._s_mozilla=new function(){};for(var i=0;i<window.ITTs.length;i++)window.ITTs[i]._s_w3c(0);}
ITT.prototype._s_w3c=function(mode){var m_url=this.chkl(this.BD+"/fpc.pl?a="+this.PID+this.tpc+'&v='+this.version+"&enc="+escape(this.ENC)+this.IT+this.FPCR,["e","t","f","b"],2000,200,"[truncated]");this.reset();this.IT="";if(mode==0){var idScr=document.createElement("SCRIPT");idScr.defer=true;idScr.type="text/javascript";idScr.src=m_url;this.place.appendChild(idScr);}else{document.write("<SCR"+"IPT Language='JavaScript' src='"+m_url+"'></SCR"+"IPT>");}}
ITT.prototype.getFPCvars=function(){if(this.mic)this._s_w3c(0);else if(this.gec)document.addEventListener("DOMContentLoaded",_s_mozilla,false);else this._s_w3c(1);}
ITT.prototype.setFPCookies=function(){if(this.FPCV!="")this.setCookie(this.FPCN,this.FPCV,31536000);}
ITT.prototype.page=function(docName,docGroup,memberid,action,amount){this.URL='FLASH';if(typeof FLASHURL!=this._ud)this.FU=FLASHURL;this.DOCUMENTNAME=docName;this.DOCUMENTGROUP=docGroup;this.MEMBERID=memberid;this.ACTION=action;this.AMOUNT=amount;this.submit();}
ITT.prototype.getClnUrl=function(u){var nonexc="_S_PEPOS,_S_PEPRM";if(typeof window._S_EXCLPRM==this._ud)return u;var u2=u.split('?');if(u2.length==1)return u;var p=u2[1].split('&');var exc=window._S_EXCLPRM.split(',');var r="";for(k=0;k<p.length;k++){var pn=p[k].split('=')[0];var re=new RegExp("\\b"+pn+"\\b","gi");if((pn!="")&&((re.test(nonexc))||(!re.test(exc))))r+=((r.length > 0)?"&":"")+p[k];}return u2[0]+((r.length>0)?"?"+r:"");}
function _s_customfield_reset(){_s_itt.cfn.length=0;_s_itt.cfv.length=0;}
function _s_customfield_submit(){if(_s_itt.cfn.length>0&&_s_itt.cfv.length>0){var _u=_s_itt.cf_ts();_s_itt.customfield_reset();_s_itt.pp();return _s_itt.trk(_u);}return"";}
function _s_customfield_set(n,v){_s_itt.cfn[_s_itt.cfn.length]=n;_s_itt.cfv[_s_itt.cfv.length]=v;}
function _s_action(a,xa,oc,xd,xt,xs){if(typeof a==_s_itt._ud||a=="")return;var IU="&ca=1"+"&x="+escape(a);if(typeof xa!=_s_itt._ud)IU+="&xa="+escape(xa);if(typeof oc!=_s_itt._ud)IU+="&oc="+escape(oc);if(typeof xd!=_s_itt._ud)IU+="&xd="+escape(xd);if(typeof xt!=_s_itt._ud)IU+="&xt="+escape(xt);if(typeof xs!=_s_itt._ud)IU+="&xs="+escape(xs);_s_itt.pp();_s_itt.trk(IU);}
function _s_exitlink(ln){_s_itt.pp();_s_itt.trk('&el='+escape(ln));}var _s_itt=createITT();_s_itt.ol();_s_itt._submit();var __IT=_s_itt;
//<!-- End of Acronym Media ROI Engine Tracking Code - DO NOT MODIFY -->





//SAP Flash JavaScript Routines...
//10.16.07
//Vince


/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;




//SWF Form Fix - solves the External Interface calls within a FORM tag in IE:
//
//Add this line to the END of SWFobject (after so.write("flashcontent"); ):
//
//SWFFormFix("myFlashObject");

SWFFormFixAuto = function(){
	if(navigator.appName.toLowerCase() != "microsoft internet explorer")return true;
	var objects = document.getElementsByTagName("object");
	if(objects.length == 0) return true;
	for(i=0;i<objects.length;i++){
		// here's all the objects on the page, now lets find the flash objects
		if(objects[i].classid == "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"){
			// this is a flash movie, apply the fix
			window[objects[i].id] = objects[i];
		}
	}
	var out = '';
	return true;
}
SWFFormFix = function(swfname){
	if(navigator.appName.toLowerCase() != "microsoft internet explorer")return false;
	var testnodename = "SWFFormFixTESTER";
	document.write('<div id="'+testnodename+'" onclick="SWFFormFixCallback(this,\''+swfname+'\');return false;" style="display:none">&nbsp;</div>');
	document.getElementById(testnodename).onclick();
}
SWFFormFixCallback = function (obj,swfname){
	var path = document;
	var error = false;
	var testnode = obj;
	while(obj = obj.parentNode){
		if(obj.nodeName.toLowerCase() == "form"){
			if(obj.name != undefined && obj.name != null && obj.name.length > 0){
				path = path.forms[obj.name];
			}else{
				alert("Error: one of your forms does not have a name!");
				error = true;
			}
		}
	}
	testnode.parentNode.removeChild(testnode);
	if(error) return false;
	window[swfname]=path[swfname];
	return true;
}



var nn4 = (document.layers) ? true : false
var ie = (document.all) ? true : false
var dom = (document.getElementById && !document.all) ? true : false

function browser(id){
  if(nn4) {
	  path = document.layers[id]
  }
  else if(ie) {
	  path = document.all[id]
	  bonus = 0;
  }
  else {
	  path = document.getElementById(id)
	  bonus = 3;
  }
return path  //return the path to the css layer depending on which browser is looking at the page
}



function rescaleFlash(id, fwidth, fheight) {
	var layer = browser(id) // get browser specific path to block element
	if (fheight > -1) {
		if(nn4){
			layer.height = fheight + bonus;
		}
		else{
			layer.style.height = fheight + bonus;
		}
		document[id].height = fheight + bonus;
	}
	if (fwidth > -1) {
		if(nn4){
			layer.width = fwidth;
		}
		else{
			layer.style.width = fwidth;
		}
		document[id].width = fwidth;
	}
}


function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}


function getMyColor(elementName)
{
	//return now if id not found
	if(document.getElementById(elementName) == null)
	{
		return null
	}
	var getColorName = document.getElementById(elementName).className;
	var findExact = ".Font"+getColorName;
	var ss = document.styleSheets[0];
	var rules = ss.cssRules?ss.cssRules:ss.rules;
	for(var i = 0; i < rules.length; i++)
	{
		var rule = rules[i];
		if(rule.selectorText == findExact)
		{
			var color = rule.style.color;
			if(color)
			{
				return color;
			}
		}
	}
}

function getMyColor2(colorScheme)
{
	var getColorName = colorScheme;
	var findExact = ".Font"+getColorName;
	var ss = document.styleSheets[0];
	var rules = ss.cssRules?ss.cssRules:ss.rules;
	for(var i = 0; i < rules.length; i++)
	{
		var rule = rules[i];
		if(rule.selectorText == findExact)
		{
			var color = rule.style.color;
		if(color)
			{
				return color;
			}
		}
	}
}


var searchComplete;
var criteria;
var searchPosition = -1;
var searchList;

function DoSearch(id, url)
{
	var s, f;
	s = document.getElementById(id);
	if(s != null && (Trim(s.value) != ''))
	{
		f = document.getElementById('SearchBySection');
		if(f != null && f.checked)
			location.href = location.href.substring(0, location.href.lastIndexOf('/') + 1) + 'search.epx?q1=' + encodeURIComponent(s.value);	
		else
			location.href = url + '?q1=' + encodeURIComponent(s.value);
	}
	return false;
}

function SearchOnEnter(id, url, e)
{
	var et;
	if(window.event)
	{
		if(!e)
			e = window.event;
		et = 1;
	}
	else if(window.Event)
	{
		if(!e)
			e = window.Event;
		et = 3;
	}
	else if(arguments.callee)
	{
		if(!e)
			e = arguments.callee.caller.arguments[0];
		et = 2;
	}
	if(e != null)
	{
		var kc = e.keyCode ? e.keyCode : e.charCode ? e.charCode: e.which;

		if(kc == 13)
		{
			if(searchPosition == -1 || searchComplete.style.display == 'none')
			{
				HideSearch();
				DoSearch(id, url);
			}
			else if(searchPosition > -1)
			{
				var obj = document.getElementById(id);
				if(obj != null)
				{
					obj.value = searchList[searchPosition];
					obj.focus();
					HideSearch();
				}
			}
			
			if(et == 1)
			{
				e.cancelBubble = true;
				e.returnValue = false;
			}else if(et == 3)
			{
				e.stopPropagation();
				e.preventDefault();
			}else{
				return false;
			}
		}
	}
}

function GetAutoComplete(id, url)
{
	var e, et;
	
	if(window.event)
	{
		e = window.event;
		et = 1;
	}
	else if(window.Event)
	{
		e = window.Event;
		et = 1;
	}
	else if(arguments.callee)
	{
		e = arguments.callee.caller.arguments[0];
		et = 2;
	}
	if(e)
	{
		var kc = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;
		if(kc == 27 || kc == 9) //esc
		{ 
			HideSearch();
			return false;
		}else if(kc == 40){
			searchPosition++;
			if(searchList && searchPosition >= searchList.length)
				searchPosition = 0;
		}else if(kc == 38){
			searchPosition--;
			if(searchPosition < -1)
				searchPosition = searchList.length - 1;
		}
		
		if(searchList && searchPosition > -1)
			for(i = 0; i < searchComplete.childNodes.length; i++)
				if(searchComplete.childNodes[i].tagName == 'A' || searchComplete.childNodes[i].tagName == 'a')
				{
					if(searchComplete.childNodes[i].title == searchList[searchPosition])
						searchComplete.childNodes[i].style.backgroundColor = '#f3bc33';
					else
						searchComplete.childNodes[i].style.backgroundColor = '#f9dd99';
				}
	}
	
	if(criteria != document.getElementById(id).value && document.getElementById(id).value.length > 0)
	{
		criteria = document.getElementById(id).value;
		searchComplete = document.getElementById('searchComplete');
		searchList = null;
		searchPosition = -1;
		if(searchComplete != null)
		{
			var rem = new RemoteMethod(url);
			rem.MethodName = 'GetAutoComplete';
			rem.AddArgument(criteria);
			rem.LocalAction = ShowSearch;
			rem.Invoke();
		}
	}
}

function Trim(value)
{
	return value.replace(/^\s+|\s+$/g,"");
}

function SetSearch(id, value)
{
	var obj = document.getElementById(id);
	if(obj != null)
	{
		criteria = null;
		obj.value = value;
		obj.focus();
		HideSearch();
	}
	return false;
}

function HideSearch()
{
	if(searchComplete)
	{
		criteria = null;
		searchComplete.style.display = 'none';
		searchComplete.innerHTML = '';
	}
}

function ShowSearch(args)
{
	if(args != null)
	{
		args = eval(args);
		
		if(args != null && args[0] == criteria && args[2])
		{
			searchComplete.innerHTML = args[1];
			searchComplete.style.display = 'inline';
			searchPosition = -1;
			searchList = args[2];
		}
	}else
		HideSearch();
}

function GetObjectFromEvent()
{
	var e;
	if(window.event)
		e = window.event;
	else if(window.Event)
		e = window.Event;
	else if(arguments.callee)
		e = arguments.callee.caller.arguments[0];
	if(e)
		return e.srcElement;
}

function SearchHighlight(key)
{
	for(i = 0; i < searchList.length;i++)
		if(searchList[i] == key)
			searchPosition = i;
	for(i = 0; i < searchComplete.childNodes.length; i++)
		if(searchComplete.childNodes[i].tagName == 'A' || searchComplete.childNodes[i].tagName == 'a')
		{
			if(searchComplete.childNodes[i].title == searchList[searchPosition])
				searchComplete.childNodes[i].style.backgroundColor = '#f3bc33';
			else
				searchComplete.childNodes[i].style.backgroundColor = '#f9dd99';
		}
}

function SearchNormal(key)
{
	for(i = 0; i < searchComplete.childNodes.length; i++)
		if(searchComplete.childNodes[i].tagName == 'A' || searchComplete.childNodes[i].tagName == 'a')
			searchComplete.childNodes[i].style.backgroundColor = '#f9dd99';
}

