function fncSVFormSubmit(strFormContainerID, strMethod, strAction) {
	if (strFormContainerID.length > 0) {
		var oSrcFormContainer = document.getElementById(strFormContainerID);
		var strNewFormID = strFormContainerID + "DYNFORM";
		
	  if (document.getElementById(strNewFormID)) {
	  	document.getElementById(strNewFormID).id = strNewFormID + "OLD";
	  }
	  
	  var oBody = document.body;
	  var oTmpForm = document.createElement('FORM');
	  oTmpForm.id = strNewFormID;
	  oTmpForm.method = strMethod;
	  oTmpForm.action = strAction;
	  oTmpForm.acceptCharset = "UTF-8";
	  
	  var oFormFields = oSrcFormContainer.getElementsByTagName("INPUT");
	  var strHTMLNewFields = "";
	  for (var i=0;i<oFormFields.length;i++) {
	  	strHTMLNewFields += "<input type=\"hidden\" name=\"" + oFormFields[i].name + "\" value=\"" + oFormFields[i].value + "\" />";  	
	  }
	  oFormFields = oSrcFormContainer.getElementsByTagName("TEXTAREA");
	  for (var i=0;i<oFormFields.length;i++) {
	  	strHTMLNewFields += "<input type=\"hidden\" name=\"" + oFormFields[i].name + "\" value=\"" + oFormFields[i].value + "\" />";  	
	  }
	  oFormFields = oSrcFormContainer.getElementsByTagName("SELECT");
	  for (var i=0;i<oFormFields.length;i++) {
	  	strHTMLNewFields += "<input type=\"hidden\" name=\"" + oFormFields[i].name + "\" value=\"" + oFormFields[i].value + "\" />";  	
	  }
	  
	  oTmpForm.innerHTML = strHTMLNewFields;
	  oBody.insertAdjacentElement("beforeEnd",oTmpForm);
	  oTmpForm.submit();
	}
	return false;
}

function fncSVSetOnclick() {
  if (typeof(strSessionID) == "string" && typeof(document.getElementById("idSharedVue")) != "undefined") {
    var oContent = document.getElementById("idSharedVue");
    var oAnchors = oContent.getElementsByTagName("a");    
    reURL = /\?/g; 
    for (var i=0; i<oAnchors.length; i++) {
      if (oAnchors[i].getAttribute("href")) {
        strHREF = oAnchors[i].getAttribute("href");
        if (strHREF.length > 0) {
          // if (strHREF.indexOf(strSessionID) < 0 && strHREF != "#") {
          if (strHREF != "#") {
            strClassName = oAnchors[i].className;
            
            if (strClassName.indexOf("clsNoSID") < 0) {
              if (strHREF.indexOf(strSessionID) < 0) {
                strHREF = strHREF + "&sid=" + strSessionID; 
              }       
            }
            strHREF = strHREF.replace(reURL, "&");
            strHREF = strHREF.replace("&","?");
            oAnchors[i].href = strHREF;
            //oAnchors[i].onclick = function() { fncSVClick(this.href);return false;}  //add a function
          }
        }
      }
    }
  }
}





  function fncSVShowNavPopup() {
    if (typeof(fncSVHideForcePopup) == "function") { fncSVHideForcePopup(); }
    if (typeof(fncSVHideIndustryPopup) == "function") { fncSVHideIndustryPopup(); }
    if (document.getElementById('idSVNavPopupContainer')) {
      document.getElementById('idSVNavPopupContainer').style.display = "block";
      if (typeof(fnvSVShowFreeTrialButton) == "function" && navigator.userAgent.indexOf('Safari') > 0) {
        fnvSVShowFreeTrialButton();
      }
    }
  }
  function fncSVHideNavPopup() {
    if (document.getElementById('idSVNavPopupContainer')) {
      document.getElementById('idSVNavPopupContainer').style.display = "none";
      if (typeof(fnvSVShowFreeTrialButton) == "function" && navigator.userAgent.indexOf('Safari') > 0) {
        fnvSVShowFreeTrialButton();
      }
    }
  }
  

  tmrSVPopupNav = null;
  
  function fncSVDelayHideNavPopup() {
    tmrSVPopupNav = setTimeout("fncSVHideNavPopup();",500);
  }
  function fncSVLongDelayHideNavPopup() {
    tmrSVPopupNav = setTimeout("fncSVHideNavPopup();",1200);
  }
  function fncSVCancelHideNavPopup() {
    clearTimeout(tmrSVPopupNav);
    tmrSVPopupNav = null;
  }
  
  
  
  function fncSVShowForcePopup() {
    if (typeof(fncSVHideNavPopup) == "function") { fncSVHideNavPopup(); }
    if (typeof(fncSVHideIndustryPopup) == "function") { fncSVHideIndustryPopup(); }
    if (document.getElementById('idSVForcePopupContainer')) {
      document.getElementById('idSVForcePopupContainer').style.display = "block";
      if (typeof(fnvSVShowFreeTrialButton) == "function" && navigator.userAgent.indexOf('Safari') > 0) {
        fnvSVShowFreeTrialButton();
      }
    }
  }
  function fncSVHideForcePopup() {
    if (document.getElementById('idSVForcePopupContainer')) {
      document.getElementById('idSVForcePopupContainer').style.display = "none";
      if (typeof(fnvSVShowFreeTrialButton) == "function" && navigator.userAgent.indexOf('Safari') > 0) {
        fnvSVShowFreeTrialButton();
      }
    }
  }
  

  tmrSVPopupForce = null;
  
  function fncSVDelayHideForcePopup() {
    tmrSVPopupForce = setTimeout("fncSVHideForcePopup();",500);
  }
  function fncSVLongDelayHideForcePopup() {
    tmrSVPopupForce = setTimeout("fncSVHideForcePopup();",1200);
  }
  function fncSVCancelHideForcePopup() {
    clearTimeout(tmrSVPopupForce);
    tmrSVPopupForce = null;
  }
  
  
  
  function fncSVShowIndustryPopup() {
    if (typeof(fncSVHideNavPopup) == "function") { fncSVHideNavPopup(); }
    if (typeof(fncSVHideForcePopup) == "function") { fncSVHideForcePopup(); }
    if (document.getElementById('idSVIndustryPopupContainer')) {
      document.getElementById('idSVIndustryPopupContainer').style.display = "block";
      if (typeof(fnvSVShowFreeTrialButton) == "function" && navigator.userAgent.indexOf('Safari') > 0) {
        fnvSVShowFreeTrialButton();
      }
    }
  }
  function fncSVHideIndustryPopup() {
    if (document.getElementById('idSVIndustryPopupContainer')) {
      document.getElementById('idSVIndustryPopupContainer').style.display = "none";
      if (typeof(fnvSVShowFreeTrialButton) == "function" && navigator.userAgent.indexOf('Safari') > 0) {
        fnvSVShowFreeTrialButton();
      }
    }
  }
  

  tmrSVPopupIndustry = null;
  
  function fncSVDelayHideIndustryPopup() {
    tmrSVPopupIndustry = setTimeout("fncSVHideIndustryPopup();",500);
  }
  function fncSVLongDelayHideIndustryPopup() {
    tmrSVPopupIndustry = setTimeout("fncSVHideIndustryPopup();",1200);
  }
  function fncSVCancelHideIndustryPopup() {
    clearTimeout(tmrSVPopupIndustry);
    tmrSVPopupIndustry = null;
  }
  
  
  function fnvSVShowFreeTrialButton() {
    if (typeof(intMinNavWidth) != "number") {
      intMinNavWidth = 460
    } 
    document.getElementById('idSVNavFreeButtonContainer').style.display = "none";
    var intSVNavWidth = document.getElementById('idSVNavPrimary').offsetWidth;
    var strButton = strSharedVueSkinURL + "nav-logo.gif";
    /*
    if (!isNaN(intSVNavWidth) && intSVNavWidth >= 555) {
      strButton = strSharedVueSkinURL + "nav-button-freetrial.gif";
    }
    */
    document.getElementById('idSVFreeButton').src = strButton;
    if (!isNaN(intSVNavWidth) && intSVNavWidth >= intMinNavWidth) {
      document.getElementById('idSVNavFreeButtonContainer').style.width = intSVNavWidth + "px";
      if (document.getElementById('idSVContentTrialButton')) {
        // document.getElementById('idSVContentTrialButton').style.display = "none";
      }
      document.getElementById('idSVNavFreeButtonContainer').style.display = "block";
    }
    else {
      if (document.getElementById('idSVContentTrialButton')) {
        // document.getElementById('idSVContentTrialButton').style.display = "block";
      }
    }
  }
  
  function fncSVAppendResize(fncToAppend) {
    if (typeof(fncToAppend) == "function") {
      if (typeof window.addEventListener != 'undefined') {
      	window.addEventListener('resize', fncToAppend, false);
      }
      else if (typeof document.addEventListener != 'undefined') {
      	document.addEventListener('resize', fncToAppend, false);
      }
      else if (typeof window.attachEvent != 'undefined') {
      	window.attachEvent('onresize', fncToAppend);
      }
      else if (window.onresize) {
        window.onresize = fncToAppend;
      }
    }
  }
  
  

function fncSVAppendOnload(fncAddedFunction) {
  if (typeof(fncAddedFunction) == "function") {
    if (typeof window.addEventListener != 'undefined') {
    	window.addEventListener('load', fncAddedFunction, false);
    }
    else if (typeof document.addEventListener != 'undefined') {
    	document.addEventListener('load', fncAddedFunction, false);
    }
    else if (typeof window.attachEvent != 'undefined') {
    	window.attachEvent('onload', fncAddedFunction);
    }
    else if (window.onload) {
      window.onload = fncAddedFunction;
    }
  }
}

function fncGoTick(strImageID, intSessionID, intPageRenderViewID) {
  var dtNow = new Date(); // Date is required to ensure image isn't cached by browser which prevents tick updates
  var dtStart = new Date(2000,0,1);
  var intDiffMS = dtNow-dtStart;
  intDiffMS = Math.round(intDiffMS/1000);

  if (document.getElementById(strImageID)) {
    var strImageSrc = strSharedVueServer + strSharedVuePath + "tick.asp?cmd=pagerenderview&sid=" + intSessionID + "&vid=" + intPageRenderViewID + "&date=" + intDiffMS;
    //alert('tick: ' + intSessionID + ', ' + intPageRenderViewID + '\n' + strImageSrc);
    document.getElementById(strImageID).src = strImageSrc;
  }  
  tmrPageRenderView = setTimeout(function() { fncGoTick("idSVTick", intSessionID, intPageRenderViewID) },(intDelayBetweenViewTicks*1000));
}

function fncSVEmbedVideo(strID, strName, strCodebaseURL, strVideoURL, strImageURL, blnAutoStart, intWidth, intHeight, strIDToPlace) {
  var strUserAgent = navigator.userAgent;
  if (true) { 
    // strUserAgent.indexOf('Opera') < 0 && strUserAgent.indexOf('Konqueror') < 0 && strUserAgent.indexOf('Safari') < 0) {
    var strEmbedHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+ intWidth + '" height="' + intHeight + '" id="' + strID + '" name="' + strName + '" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="' + strCodebaseURL + 'wasp.swf?theFile=' + strVideoURL + '&defaultImage=' + strImageURL + '&startPlayingOnload=' + blnAutoStart + '&popUpHelp=no&bufferSeconds=10&videoSmoothing=yes" /> <param name="loop" value="false" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="scale" value="snoscale" /> <param name="salign" value="lt" /> <param name="bgcolor" value="#000000" /> <embed src="' + strCodebaseURL + 'wasp.swf?theFile=' + strVideoURL + '&defaultImage=' + strImageURL + '&startPlayingOnload=' + blnAutoStart + '&popUpHelp=no&bufferSeconds=10&videoSmoothing=yes" loop="false" menu="false" quality="high" scale="noscale" salign="lt" width="' + intWidth + '" height="' + intHeight + '" name="' + strName + '" align="middle" bgcolor="#000000" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';
    document.getElementById(strIDToPlace).innerHTML = strEmbedHTML;
  }
}



function fncSVEmbedPodcast(intWidth, blnShowVolume, strURL, strIDToPlace) {
	var so = new SWFObject('/includes/mp3player.swf','mpl',intWidth,'20','7');
	so.addParam('allowfullscreen','true');
	so.addVariable('file',strURL);
	so.addVariable('height','20');
	so.addVariable('width',intWidth);
	so.addVariable('autostart','false');
        so.addVariable('showvolume', blnShowVolume);
	so.addVariable('bufferlength','10');
	so.write(strIDToPlace);
}







// RESOURCE LIBRARY RATING SYSTEM

function fncSVRatingPreview(strSourceImgID,intRating) {
  var oImg = document.getElementById(strSourceImgID);
  oImg.src = strSharedVueSkinURL + "star-gold_group_" + intRating + "0.gif";
  var strRating = "";
  switch(intRating) {
    case 1:
      strRating = "Poor";
      break    
    case 2:
      strRating = "Fair";
      break
    case 3:
      strRating = "Good";
      break
    case 4:
      strRating = "Great";
      break
    case 5:
      strRating = "Excellent";
      break
  } 
  document.getElementById('idRatingTxt').innerHTML = strRating;
}

function fncSVRatingPreviewDefault(strSourceImgID) {
  var oImg = document.getElementById(strSourceImgID);
  oImg.src = strSharedVueSkinURL + "star-gray_group_50.gif";
  document.getElementById('idRatingTxt').innerHTML = "Rate Item";
}

function fncSVShowRating(oTrigger, strItemID, intTotalRating, intNumRatings) {
  strSVActiveRLRatingItem = strItemID;
  strSVActiveRLRatingTotalRating = intTotalRating;
  strSVActiveRLRatingNumRatings = intNumRatings;
  var intX = fncSVGetAbsoluteX(oTrigger);
  var intY = fncSVGetAbsoluteY(oTrigger);
  document.getElementById('idRatingPopup').style.left = intX + "px";
  document.getElementById('idRatingPopup').style.top = (intY - 10) + "px";
  document.getElementById('idRatingPopup').style.display = "block";
}



function fncSVRatingSet(intRating) {
  if (typeof(strSVActiveRLRatingItem) != "undefined") {
      
    var strImageID = "idSVTick";
    var dtNow = new Date(); // Date is required to ensure image isn't cached by browser which prevents tick updates
    var dtStart = new Date(2000,0,1);
    var intDiffMS = dtNow-dtStart;
    intDiffMS = Math.round(intDiffMS/1000);
    
    if (document.getElementById(strImageID)) {
      var strImageSrc = strSharedVueServer + strSharedVuePath + "rlitemrating.asp?id=" + strSVActiveRLRatingItem + "&rating=" + intRating + "&date=" + intDiffMS;
      document.getElementById(strImageID).src = strImageSrc;
    }
    
    if (document.getElementById('idRLItemRating_' + strSVActiveRLRatingItem)) {
      /*
      if (typeof(strSVActiveRLRatingTotalRating) != "undefined") {
        strSVActiveRLRatingTotalRating = 0
      }
      if (typeof(strSVActiveRLRatingNumRatings) != "undefined") {
        strSVActiveRLRatingNumRatings = 0
      }
      
      strSVActiveRLRatingTotalRating = ((strSVActiveRLRatingTotalRating * 1) + intRating*1)
      strSVActiveRLRatingNumRatings = ((strSVActiveRLRatingNumRatings * 1) + 1*1)
      if (strSVActiveRLRatingTotalRating > 0 && strSVActiveRLRatingNumRatings > 0) {
        intRating = strSVActiveRLRatingTotalRating / strSVActiveRLRatingNumRatings
        intRating = Math.round(intRating*100)/100
      }
      document.getElementById('idRLItemRating_' + strSVActiveRLRatingItem).innerHTML = intRating;
      */
      document.getElementById('idRLItemRating_' + strSVActiveRLRatingItem).innerHTML = "<em>Thank You</em>";
    }
    
    strSVActiveRLRatingItem = "";
    strSVActiveRLRatingTotalRating = 0;
    strSVActiveRLRatingNumRatings = 0;
  }
  document.getElementById('idRatingPopup').style.display = "none";
}



function fncSVGetAbsoluteX(oElement) {
  if (typeof(oElement) == "string") {
    oElement = document.getElementById(oElement);
  }
  if (typeof(oElement) == "object") {
    var intCoords = {x: 0};
    while (oElement) {
      intCoords.x += oElement.offsetLeft;
      oElement = oElement.offsetParent;
    }
    return intCoords.x;
  }
}
function fncSVGetAbsoluteY(oElement) {
  if (typeof(oElement) == "string") {
    oElement = document.getElementById(oElement);
  }
  if (typeof(oElement) == "object") {
    var intCoords = {y: 0};
    while (oElement) {
      intCoords.y += oElement.offsetTop;
      oElement = oElement.offsetParent;
    }
    return intCoords.y;
  }
}











function fncSVPopupPage(strURL, intWidth, intHeight) {
  if (strURL.length > 0) {
    var winPopup = window.open(strURL, "winPopup", "width=" + intWidth + ",height=" + intHeight + ",menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
  }
}

function fncSVDaysToGMTDate(intDays) {
  var dtNewDate = new Date();
  var intMS;
  dtNewDate.setTime(dtNewDate.getTime()+((intDays)*24*60*60*1000));
  intMS = Date.parse(dtNewDate);
  return intMS;
}

function fncSVMinutesToGMTDate(intMinutes) {
  var dtNewDate = new Date();
  var intMS;
  dtNewDate.setTime(dtNewDate.getTime()+(24*60*60*1000));
  intMS = Date.parse(dtNewDate);
  return intMS;
}



function fncSVTogglePanel(oPanelTrigger) {
  var blnForceOpen = false;
  var blnForceClose = false;
  if (arguments[1] == "open") { blnForceOpen = true; }
  if (arguments[1] == "close") { blnForceClose = true; }
  
  if (typeof(oPanelTrigger) == "string") {
    if (document.getElementById(oPanelTrigger)) {
      oPanelTrigger = document.getElementById(oPanelTrigger);
    }
  }
  if (typeof(oPanelTrigger) == "object") {
    if (fncSVHasClass(oPanelTrigger,"clsPanel")) {
      var oPanel = oPanelTrigger;
    }
    else {
      var oPanel = oPanelTrigger.parentNode;
    }
    
    if (blnForceOpen) {
      fncSVAddClass(oPanel, "clsPanelOpen");
    }
    else if (blnForceClose) {
      fncSVRemoveClass(oPanel, "clsPanelOpen");
    }
    else {
      if (!fncSVHasClass(oPanel,"clsPanelOpen")) {
        fncSVAddClass(oPanel, "clsPanelOpen");
      }
      else {
        fncSVRemoveClass(oPanel, "clsPanelOpen");
      }
    }
  }
  oPanelTrigger.blur();
}

function fncSVHoverPanel(oPanelTrigger) {
  fncSVAddClass(oPanelTrigger, "clsPanelHover");
}
function fncSVUnhoverPanel(oPanelTrigger) {
  fncSVRemoveClass(oPanelTrigger, "clsPanelHover");
}

function fncSVCheckForDefaultOpenPanels(strPanelContainerID) {
  if (location.hash.indexOf("#panel_") == 0) {
    fncSVTogglePanel(location.hash.replace("#",""), 'open'); 
  }
  
  if (typeof(strOpenPanelQueue) == "string") {
    if (strOpenPanelQueue.length > 0) {
      strOpenPanelQueue += ","
      var astrOpenPanelQueue = strOpenPanelQueue.split(",");
      for (var i=0; i < astrOpenPanelQueue.length; i++) {
        if (astrOpenPanelQueue[i].length > 0) {
          fncSVTogglePanel(astrOpenPanelQueue[i], 'open'); 
        }
      }
    }
  }
}

function fncSVQueueOpenPanel(strPanelID) {
  if (strPanelID.length > 0) {
    if (typeof(strOpenPanelQueue) == "undefined") {
      strOpenPanelQueue = ""
    }
    strOpenPanelQueue += strPanelID + ","
  }
}


function fncSVToggleAllPanels(strPanelContainerID, blnOpen) {
  if (document.getElementById(strPanelContainerID)) {
    var oDivs = document.getElementById(strPanelContainerID).getElementsByTagName("DIV");
    for (var i=0;i<oDivs.length;i++) {
      if (blnOpen) {
        if (fncSVHasClass(oDivs[i],"clsPanel")) {
          fncSVAddClass(oDivs[i], "clsPanelOpen");
        }
      }
      else {
        fncSVRemoveClass(oDivs[i], "clsPanelOpen");
      }
    }
  }
}


function fncSVSubNavComplexSelect(strSubNavSelectedID) {  
  if (typeof(strSubNavSelectedID) == "string") {
    if (typeof(document.getElementById(strSubNavSelectedID)) != "undefined") {
      fncSVAddClass(document.getElementById(strSubNavSelectedID),"clsSelected");
    }
  }
}


function fncSVSetCookie(name, value, exp, path, domain) {
  if(exp == "") { exp = "never"; }
  if (typeof(exp) == 'string') {
    if (exp == 'never') { 
      var strExp = "Thu, 7 Dec 2113 01:00:00 UTC";
    }
    else if (exp == 'exp' || exp == 'now') { 
      var strExp = "Fri, 13 Apr 1970 01:00:00 UTC";
    }
  }
  else {
    if (Date.parse(exp)) {
     var strExp = exp;
    }
    else {
      exp = exp*1;
      if (isNaN(exp)) {
       var strExp = (new Date((new Date()).getTime() + 840*3600000)).toGMTString();
      }
      else {
       var strExp = (new Date((new Date()).getTime() + exp*3600000)).toGMTString();
      }
    }
  }
  if (typeof(strExp) == "undefined") {
    var strExp = (new Date((new Date()).getTime() + 840*3600000)).toGMTString();
  }
  document.cookie = name + '=' + escape(value) + ((strExp)?(';expires=' + strExp):'') + ((path)?';path=' + path:'') + ( ( domain ) ? ";domain=" + domain : "" );
}


function fncSVGetCookie(strCookieName) {
  var strCookie = new String();
  strCookie = document.cookie;
  var exp = new RegExp("^.*" + strCookieName + "=" );
  if (strCookie.match(exp)){
    strCookie = strCookie.replace(exp,'');
    strCookie = strCookie.replace(/;.*/,'');
    return strCookie;
  }
  return ""; 
}


function fncSVDelCookie(strCookieName) {
  fncSVSetCookie(strCookieName, null, -1);
}

function fncSVHasClass(oSrc,strClassName) {
  var blnReturn = false;
  if (oSrc) {
    var strTmp = oSrc.className + " ";
    var astrClassNames = strTmp.split(" ");
    for (var i=0;i<astrClassNames.length;i++) {
      if (astrClassNames[i] == strClassName) {
        blnReturn = true;
        break;
      }
    }
  }
  return blnReturn;
}

function fncSVAddClass(oElement, strClassName) {
  if (typeof(oElement) == "object" && strClassName.length > 0) {
    if (typeof(oElement.className) == "string") {  
      var strCurrentClassName = oElement.className;
      if (!fncSVHasClass(oElement,strClassName)) {
        if (strCurrentClassName.length > 1) {
          strClassName = strCurrentClassName + " " + strClassName;
        }        
        oElement.className = strClassName;
      }
    }
  }
}

function fncSVRemoveClass(oElement, strClassName) {
  if (typeof(oElement) == "object" && strClassName.length > 0) {
    if (typeof(oElement.className) == "string") {  
      var strCurrentClassName = oElement.className;
      if (fncSVHasClass(oElement,strClassName)) {
        strNewClassName = fncSVRemoveClassRecursive(" " + strCurrentClassName + " ", " " + strClassName + " ");
        if (strNewClassName.indexOf(" ") == 0) { strNewClassName = strNewClassName.substring(1); }
        if (strNewClassName.lastIndexOf(" ") == strNewClassName.length-1) { strNewClassName = strNewClassName.substring(0,strNewClassName.length-1); }
        oElement.className = strNewClassName;
      }
    }
  }
}

function fncSVRemoveClassRecursive(strSource, strSubstrToRemove) {
  var intIndex = strSource.indexOf(strSubstrToRemove);
  var strReturn = "";
  if (intIndex == -1) return strSource;
  strReturn += strSource.substring(0,intIndex) + " " + fncSVRemoveClassRecursive(strSource.substring(intIndex + strSubstrToRemove.length), strSubstrToRemove);
  return strReturn;
}


fncSVAppendOnload(fncSVSetOnclick); // Critical for retaining session info thru pages


var w = window;
if(!w.HTMLElement && (typeof document.createElement) == "function" && (t=document.createElement('a').__proto__) && t == document.createElement('p').__proto__) {
   w.HTMLElement={};
   w.HTMLElement.prototype=t;
}


if(typeof HTMLElement!="undefined" && !HTMLElement.prototype.insertAdjacentElement){
	HTMLElement.prototype.insertAdjacentElement = function(where,parsedNode)
	{
		switch (where){
		case 'beforeBegin':
			this.parentNode.insertBefore(parsedNode,this)
			break;
		case 'afterBegin':
			this.insertBefore(parsedNode,this.firstChild);
			break;
		case 'beforeEnd':
			this.appendChild(parsedNode);
			break;
		case 'afterEnd':
			if (this.nextSibling) 
				this.parentNode.insertBefore(parsedNode,this.nextSibling);
			else 
				this.parentNode.appendChild(parsedNode);
			break;
		}
	}

	HTMLElement.prototype.insertAdjacentHTML = function(where,htmlStr)
	{
		var r = this.ownerDocument.createRange();
		r.setStartBefore(this);
		var parsedHTML = r.createContextualFragment(htmlStr);
		this.insertAdjacentElement(where,parsedHTML)
	}


	HTMLElement.prototype.insertAdjacentText = function(where,txtStr)
	{
		var parsedText = document.createTextNode(txtStr)
		this.insertAdjacentElement(where,parsedText)
	}
}

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;