/**
 * Copyright (c) 2002-2007 i-Seven A/S.
 * Herlev Hovedgade 195, 2730 Herlev, Denmark.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of i-Seven A/S. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with i-Seven A/S.
 */
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22755337-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
function getStringFromStyleSheet(style,value) {
  if (document.styleSheets) {
    for (var i=document.styleSheets.length-1;i>=0;i--) {
      var rules = document.all ? document.styleSheets[i].rules : document.styleSheets[i].cssRules;
      for (var j=rules.length-1;j>=0;j--) {
        if (rules[j].selectorText==style) {
	  return eval('rules[j].style.'+value);
        }
      }
    }
  }
}
function getNumberFromStyleSheet(style,value,defaultValue) {
  var value=getStringFromStyleSheet(style,value);
  if (value!='' && typeof(value)!='undefined')
    return parseInt(value)
  else
    return defaultValue;
}
function getFontFromStyleSheet(style,value,defaultValue) {
  var result=getStringFromStyleSheet(style,value);
  if (result=='') {
    result=getStringFromStyleSheet('FONT',value);
    if (result=='')
      result=defaultValue;
  }
  return result;
}
function isValueValid(value) {
  return value!=null && value!='undefined' && value!="";
}
function writeMailToLink(asMailTo, asDomain, asClass, asLinkText) {
  var cA = '@';
  document.write('<nobr><a href="mail'+'to:'+asMailTo+cA+asDomain+'"'+(asClass!=''?' class="'+asClass+'"':'')+'>'+(asLinkText!=''?asLinkText:asMailTo+cA+asDomain)+'</a></nobr>');
}

