function FLASHinitializeHTMLNavigation()
{
	$('#productnavigation ul li ul').hide();
	$('#productnavigation ul li ul li').hide();
	$('#productnavigation ul li.section').hover(
		function()
		{
			var leftPosition = $(this).offset().left - $('#SSE').offset().left;
			document.getElementById('SSE').itemOver($(this).attr("id"), leftPosition);
		},
		function ()
		{
			document.getElementById('SSE').itemOut($(this).attr("id"));
		}
	);
}

function ieInnerHTML(obj, convertToLowerCase) {
 var zz = obj.innerHTML
     ,z = zz.match(/<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/g);

  if (z){
    for (var i=0;i<z.length;i++){
      var y
          , zSaved = z[i]
          , attrRE = /\=[a-zA-Z\.\:\[\]_\(\)\&\$\%#\@\!0-9]+[?\s+|?>]/g;
      z[i] = z[i]
              .replace(/(<?\w+)|(<\/?\w+)\s/,function(a){return a.toLowerCase();});
      y = z[i].match(attrRE);//deze match

       if (y){
        var j = 0
            , len = y.length
        while(j<len){
          var replaceRE = /(\=)([a-zA-Z\.\:\[\]_\(\)\&\$\%#\@\!0-9]+)?([\s+|?>])/g
              , replacer = function(){
                  var args = Array.prototype.slice.call(arguments);
                  return '="'+(convertToLowerCase ? args[2].toLowerCase() : args[2])+'"'+args[3];
                };
          z[i] = z[i].replace(y[j],y[j].replace(replaceRE,replacer));
          j++;
        }
       }
       zz = zz.replace(zSaved,z[i]);
     }
   }
  return zz;
 }
 
function FLASHgetNavigationHTML()
{
	return ieInnerHTML(document.getElementById('productnavigation'), true);
}

function FLASHBrowserIsIE()
{
	return navigator.userAgent;
}


