var v_hostname = "www.transunion.com";
 (window.attachEvent) ? window.attachEvent('onload', initFontResize ) : window.addEventListener('load', initFontResize, false);

var aDecrImages = new Array, aIncrImages = new Array;
//fontsize range in em, with default index:
//var aFontSizes=[.49375, .59125, .6925, .79875, .8925, .9625], iDefFontIndex=2;
var aFontSizes=[.79875, .8925, .9625, 1.0012, 1.1072,1.2122], iDefFontIndex=2;
var iFontIndex = iDefFontIndex;

//===========================PRINTABLE SECTION===========================
//if this is a "print" page, start processing:
if(isPrintable( document.URL )) {
  (window.attachEvent) ? window.attachEvent('onload', printPageRef ) : window.addEventListener('load', printPageRef, false);
} /*else { //for non-printables check font-size:
  (window.attachEvent) ? window.attachEvent('onload', initResize ) : window.addEventListener('load', initResize, false);
} //isPrintable */

//onload event handler for printable pages
//if this is a printable page, call printPage function with "current" target
function printPageRef() {
  var isPrintAll = getPrintAllValue( document.URL );
  if ( isPrintAll == '' ) isPrintAll = true;
  
   var userAgent = navigator.userAgent.toLowerCase();
	var retBrowser = "";
	if (contains(userAgent, 'msie') || contains(userAgent, 'internet explorer')) {
		  flipCSS();
	}
   	else if (contains(userAgent, 'firefox')){

    		removeFloat();
			
	}

 /* code for accodionSection */
  var accodionIdList = getAccodionValue(document.URL ,"accodionIdList=");
  var totalAccodionSection  = getAccodionValue(document.URL ,"accodionTotalList=");
  if(accodionIdList){
		var idList = accodionIdList.split("+");
		if(totalAccodionSection == idList.length){
			var sectionExpandAll = document.getElementById("expandAll");
			sectionExpandAll.style.display = "none";

			var sectionCloseAll = document.getElementById("collapseAll");
			sectionCloseAll.style.display = "";
		}
		for(i = 0;i< idList.length; i++){
		    var id = idList[i];
			var setSectionClass = document.getElementById("solutionSection"+id);
			setSectionClass.className = "solutionSectionOpened";

			var sectionExpand = document.getElementById("expand"+id);
			sectionExpand.style.display = "none";
			
			var sectionCollapse = document.getElementById("collapse"+id);
			sectionCollapse.style.display = "";

			var divOpen = document.getElementById("expandSection"+id);
			divOpen.style.display = "";
		}
  }
 /* end of code for accodion section */
  printPage( "current", isPrintAll );
} //printPageRef

/*
//helper function to open popup windows
function popWin( url, title, width, height ) {  
  var v_url = url;
  if ( title == "newWindow" )
  {
  var params = 'toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes';
  }
  else
  {
  var params = 'toolbar=yes,location=no,status=yes,scrollbars=yes,resizable=yes';
  }
  //append popup parameters:
  if( width ) params += ',width=' + width + ',height=' + height;
  var newWindow = window.open( v_url, title, params );
} //popWin()
*/

//helper function to open popup window for print functionality only.
// added by mehul on 17-Jan-2011
function popPrint( url, title, width, height ) {  
  var v_url = url;
  var params = 'toolbar=no,location=no,status=no,scrollbars=yes,resizable=no';
  //append popup parameters:
  if( width ) params += ',width=' + width + ',height=' + height;
  var newWindow = window.open( v_url, title, params );
} //popPrint()


//change line-height css property by parameter
//for all printable divs
function changePrintableLineHeight( fOffset ) {
  var divs = document.getElementsByTagName("div");
  for( var i=0; i < divs.length; i++ ) {
    if( divs[i].attributes.getNamedItem("printable") )
	  if( divs[i].attributes.getNamedItem("printable").nodeValue == "true" ) {
		//FIX: line height chagne
	  } //if nodeValue == true
  } //for divs
} //changePrintableLineHeight()

//prepare and print print-friendly page
function printPage( printTarget, isPrintAll ) {
  var url = document.URL;
  var title = "printablePage";
  var firstDelimiter = getFirstDelimiter( url );
  /*if target is "current" generate printable page
    otherwise call popWin with appended url
    the popup (or new window) will then call this function again on load
	with current target and appended print arguments */
	
	
  switch( printTarget ) {
	case "popup":
	  url += firstDelimiter + "isPrintAll=" + isPrintAll + "&isClosable=true";
	  var param = accodionSectionURLParameter();
	  url += param;
	  //popWin( url, title, 640, 480 );
	  popPrint( url, title, 640, 480 );
	  break;
	case "new":
	  url += firstDelimiter + "isPrintAll=" + isPrintAll + "&isClosable=true";
	  var param = accodionSectionURLParameter();
	  url += param;
	  //popWin( url, title );
	  popPrint( url, title, 640, 480 );
	  break;
	case "current":  //generate printer friendly page:
	  if( isPrintAll == false || isPrintAll =="false") {
        document.body.style.backgroundImage="none";
        ascendPrintables();  //propagate printable attribute to parent iw-components
		disableLinks();  //IE6 allow clicking even on modal window
        //liveSite creates horizontal wrapper layout divs, f.ex: <div style="width:931px;">
        //loop through these, and check if any children are printable
        var currNode = document.getElementsByTagName("div")[0];  //1st div is always 1st layout div
        truncateDiv(currNode,970);
		/*if( navigator.userAgent.indexOf( 'MSIE' ) == -1 ) { //don't print header for IE (bug, fix!)
          createPrintHeader( currNode );  //create popup print header before currNode
		} //if !IE7 */
		createPrintHeader( currNode );
        var isRelatedLinks = checkRelatedLinks(); //this will determine width truncation
        //create a treeWalker object to walk through layout divs, and process nodes:
        var walker = document.createTreeWalker( currNode, NodeFilter.SHOW_ELEMENT, null, false );
        do {
	      if( currNode.tagName == "DIV" ) processPrintNode( currNode, isRelatedLinks );
        }  while( currNode = walker.nextSibling() );
        createPrintFooter();  //create popup print footer
	  } //if !isPrintAll
	  setTimeout(printAndClose, 500);
	  break;
  } //switch target
} //printPage()


function accodionSectionURLParameter(){
/* code for accodion section */
	var noOfSection = document.getElementById("totalSection");
	var accodionUrlArgs = "";
	var returnParam = "";
	if(noOfSection){
		var totalAccodionSections = noOfSection.value;

		for(id = 1; id <= totalAccodionSections; id++){
		   var accodionId ="solutionSection" + id;
		   
		   var className = document.getElementById(accodionId).className;
		   if(className == "solutionSectionOpened"){
				accodionUrlArgs += id + "+";
		   }
		}
		if(accodionUrlArgs.length > 0){
			accodionUrlArgs = accodionUrlArgs.substr(0,accodionUrlArgs.length - 1);
			returnParam = "&accodionIdList=" + accodionUrlArgs;
			returnParam += "&accodionTotalList=" + totalAccodionSections;
		}
	}
	return returnParam;
	/* end of code for accodion  */
}

function getAccodionValue( url, value ) {
  var printPos = url.indexOf( value );
  if( printPos != -1 ) {
    var args = url.substr( printPos );
	if( args.match( "&" ) != null ) args = args.substring( 0,  args.indexOf( "&" ) );
	return args.substr( args.indexOf( "=" ) + 1 );
  }
  return null;
}

function printAndClose() {
  window.print();
  if(isClosable(document.URL)) self.close();
} //printAndClose()

function disableLinks() {
  //for (var i=0;i < document.links.length;i++) document.links[i].onclick = retFalse;
   for (var i=0;i < document.links.length;i++) {
		document.links[i].onclick = "javascript:void(0)";
		document.links[i].href = "javascript:void(0)";
	}
} //disableLinks()
function retFalse () {
  return false;
} //retFalse()

//check which part of current node is appropriate for printing
//hide the rest
function processPrintNode( currNode, isRelatedLinks ) {
  //if current node have printable elements check which ones
  //otherwise hide the whole node:
  if( containsPrintableDivs( currNode ) ) {
	truncateDiv(currNode,970);
	//found a printable, by default print the whole div layout node 
	//  except for explicitly defined non-printable descendants
	//  and printable images as text
	//var iWidth = isRelatedLinks ? 705 : 625;
	
	/* commented above line by mehul as required full width of div on 17-Jan-2011 */
	//var iWidth = isRelatedLinks ? 970 : 625;
	var iWidth = 970;
	truncateWidth (currNode,iWidth);
    var divs = currNode.getElementsByTagName("div");
	for( var i=0; i < divs.length; i++ ) {
	  if( divs[i].attributes.getNamedItem("printable") ) {
		var printableValue = divs[i].attributes.getNamedItem("printable").nodeValue;
        switch( printableValue ) {
	      case "false":
	        hideNodeTree( divs[i] );
	        break;
	      case "text":
			convertImageToText( divs[i] );
		    break;
		} //switch printableValue
	  } //if printable defined
	} //for divs
  } else {  //no printables in current node, hide the whole div layout node
	hideNodeTree( currNode );
  } //if containsPrintableDivs
} //processPrintNode();

//check if current node has any printable div elements (descendants incl. self)
//i.e. elements with "printable=true" attribute
function containsPrintableDivs( currNode ) {
  if( currNode.attributes.getNamedItem("printable") ) {  //check self
	if( currNode.attributes.getNamedItem("printable").nodeValue == "true" ) {
	  return true;
	}
  } else { //check descendants
    var divs = currNode.getElementsByTagName("div");
	for( var i=0; i < divs.length; i++ ) {
	  if( divs[i].attributes.getNamedItem("printable") ) {
	    if( divs[i].attributes.getNamedItem("printable").nodeValue == "true" ) { 
		  return true;
		} //if printable true
	  } //if printable defined
	} //for divs
  } //if self/descendants
  return false;
} //containsPrintableDivs()

//hide whole node tree (currNode and div descendants)
function hideNodeTree( currNode ) {
  currNode.style.display = "none";
  var divs = currNode.getElementsByTagName( "div" );
  for( var i=0; i < divs.length; i++ ) {
	divs[i].style.display = "none";
  } //for divs
} //hideNodeTree()

function createPrintHeader( currNode ) {
  //header consists of 3 main div wrappers:
  var separator = '',title = '';
  var headerDiv1 = document.createElement( "div" );
  
  
titleSection = document.getElementById("sectionTitle").innerHTML;

  if (titleSection != '&nbsp;'){
	separator = document.getElementById("logoSeparator").innerHTML;
	title = document.getElementById("sectionTitle").innerHTML;
  }
  
  headerDiv1.setAttribute("style" ,"width:626px");
  headerDiv1.innerHTML = '\n'
	+'<div style="clear: both; display: inline; float: left; width:626px">\n'
		+'<div style="display: inline; float: left; width:626px">\n'
			+'<div id = "header" printable="false">\n'
				+'<div id = "headerComponents">\n'
					+'<div id = "logo" style="float:left">\n'
						+'<a name="'+v_hostname+'" class="imageLinkClass" target="_self" href="'+v_hostname+'" onClick="return false;"><img class="imageClass" title="TransUnion logo" alt="TransUnion logo" src="/images/rev/logo1.gif"></a>\n'
					+'</div>\n'
					


					+'<div id = "logoSeparator">'+separator+'</div>\n'
			  		+'<div id = "sectionTitle" class = "sectionTitle">'+title+'</div>\n'
			  		+'<div id = "globalNavLocatorArea">\n'
						+'<div id = "globalLinksArea">'+document.getElementById("globalLinksArea").innerHTML+'</div>\n'
						+'<div id = "locatorWrapper">\n'
							+'<div id = "locator">'+document.getElementById("locator").innerHTML+'</div>\n'
						+'</div>\n'
			  		+'</div>\n'


				+'</div>\n'
			+'</div>\n'
		+'</div>\n'
	+'</div>\n'

  document.body.insertBefore( headerDiv1, currNode );
}  //createPrintHeader()

function createPrintFooter() {

var copyright = document.getElementById("copyright");
var footerDiv = document.createElement( "div" );
  
  document.body.appendChild( footerDiv );
  footerDiv.innerHTML = '<div class="iw_component" style="margin: 0pt 25px 0pt 15px; width: 955px; min-height: 40px; height: auto ! important; display: inline; float: left;">'
+			'<div id="footerArea">'
+				'<div id="footerComponents">'
+					'<div id="copyright" class="'+copyright.className+'">'
+						copyright.innerHTML
+					'</div>'
+					'<div id="footerLinkArea">'
+						'<div id="footerLinks">'
+							'<ul id="footerLink">'
+								footerLinks();
+							'</ul>'
+						'</div>'
+					'</div>'
+				'</div>'
+			'</div>'
+     			'</div>';	

}

function footerLinks()
{
	var linkStr = '';
	var flag = false;
	if(document.getElementById("footerLink")){	
		ul = document.getElementById("footerLink");
		childLI = ul.childNodes;
		for(i=0;i < childLI.length;i++)
		if(childLI[i].tagName == "LI"){

			//if(childLI[i].getAttribute("printInFooter") == "yes")
			//{
			   if (flag == false){
				linkStr += '<li class="first">'
				}
				else{
					linkStr += '<li style ="background-image:'+childLI[i].style.backgroundImage +'">'
				}
				flag = true;
				linkStr += childLI[i].innerHTML;
				linkStr +=  '</li>'
				
			//}
			
		}
	}

	return linkStr ;
}

//loop through divs and images for oNode, and truncate their width property
//according to rules:
//for related links pages: if > 415 set to 415
//for non-related links pages: if > 626 set to 625
//
//also for divs: change left-margin property, if > 25 set to 25
function truncateWidth( oNode, sWidth ) {
  var objWidth = '', objMarginLeft = '';
  var divs = oNode.getElementsByTagName('div'); //truncate descendant divs
  for( var i=0; i < divs.length; i++ ) {
	truncateDiv(divs[i],sWidth);
    objMarginLeft = divs[i].style.marginLeft;
	if( objMarginLeft != '' && parseInt( objMarginLeft ) > 25 )
	  divs[i].style.marginLeft = 25 + "px";
  } //for divs
  var images = oNode.getElementsByTagName('img');
  for( var i=0; i < images.length; i++ ) {
	if( images[i].attributes.getNamedItem("width") ) {
      objWidth = images[i].attributes.getNamedItem("width").nodeValue;
      if(objWidth!='' && parseInt(objWidth)>626)images[i].attributes.getNamedItem("width").nodeValue = 625;
      else if(objWidth!='' && parseInt(objWidth)>415)images[i].attributes.getNamedItem("width").nodeValue = 415;
	} //if
  } //for images
} //truncateWidth()

function truncateDiv(oNode, sWidth) {
  if( oNode.attributes.getNamedItem("style") ) {
    objWidth = oNode.style.width;
    if(objWidth!='' && parseInt(objWidth)>sWidth) oNode.style.width = parseInt(sWidth) + "px";
  } 
} //truncateDiv()

//loop through all divs with printable attribute and copy to parent iw_component
function ascendPrintables() {
  var divs = document.getElementsByTagName('div');
  for( var i=0; i < divs.length; i++ ) {
	if( divs[i].attributes.getNamedItem("printable") )
	  ascendPrintable( divs[i], divs[i].attributes.getNamedItem("printable").nodeValue );
  } //for divs
}  //ascendPrintables()

//copy printable attribute to iw-component parent div (if exists):
//by default copy printable value as is, exception is "text" value which copies as "true"
function ascendPrintable( oNode, printable ) {
  //create a treeWalker object to find oNode's parent
  var walker = document.createTreeWalker( oNode, NodeFilter.SHOW_ELEMENT, null, false );
  var parentNode = walker.parentNode();
  if( parentNode != null && parentNode.tagName == "DIV" && parentNode.attributes.getNamedItem("class") ) {
	if( parentNode.attributes.getNamedItem("class").nodeValue == "iw_component" ) {
	  if( printable == "text" ) printable = "true";
      parentNode.setAttribute( "printable", printable );
	} //if iw_component
  } //if DIV
} //ascendPrintable()

//convert image inside oNode to text
function convertImageToText( oNode ) {
  var sText = "NO ALT TEXT DEFINED";
  var images = oNode.getElementsByTagName( "img" ); //should have only 1 image
  if( images[0].attributes.getNamedItem("alt") )
	sText = images[0].attributes.getNamedItem("alt").nodeValue;  //retrieve text from alt
  //create textDiv and replace image div with it:
  var textDiv = document.createElement( "div" );
  //textDiv.setAttribute( "style", "margin-top: 25px;" ); 
  oNode.parentNode.replaceChild( textDiv, oNode );
  textDiv.innerHTML = '<h1 style="padding-left:25px; margin-top:25px;">' + sText + '</h1>'
+ '<div style="width:1px; height:20px;">'
+ '<img src="/images/global/spacer.gif" />';
+ '</div>';
} //convertImageToText()

//check if page has at least 1 related links component
function checkRelatedLinks() {
  var divs = document.getElementsByTagName('div');
  for( var i=0; i < divs.length; i++ ) {
	if( divs[i].attributes.getNamedItem("class") ) {
	  if( divs[i].attributes.getNamedItem("class").nodeValue.indexOf( "relatedLinks" ) != -1 )
	    return true;
	} //if class
  } //for divs
  return false;
}  //checkRelatedLinks()

//check if a questionmark exists already in passed url
//if yes, return "&", otherwise return "?"
function getFirstDelimiter( url ) {
  return (url.indexOf("?")!=-1) ? "&" : "?";
} //getFirstDelimiter

//check passed url has "isClosable=true" argument pair
function isClosable( url ) {
  return (url.match("isClosable=true")!=null) ? true : false;
} //isClosable()

//check if passed url has "isPrintAll="
function isPrintable( url ) {
  return (url.match("isPrintAll=")!=null) ? true : false;
} //isPrintable()

//get isPrintAll value from url arguments
//return null if non-existent
function getPrintAllValue( url ) {
  var printPos = url.indexOf( "isPrintAll=" );
  if( printPos != -1 ) {
    var args = url.substr( printPos );
	if( args.match( "&" ) != null ) args = args.substring( 0,  args.indexOf( "&" ) );
	return args.substr( args.indexOf( "=" ) + 1 );
  } //if isPrintAll
  return null;
} //getPrintAllValue()
//===========================END OF PRINTABLE SECTION===========================



//=============================COOKIES==============================
function setCookie(sName, sValue, oExpires, sPath, sDomain, bSecure) {
  var sCookie = sName + "=" + encodeURIComponent(sValue);
  if (oExpires) sCookie += "; expires=" + oExpires.toGMTString();
  if (sPath) sCookie += "; path=" + sPath;
  if (sDomain) sCookie += "; domain=" + sDomain;
  if (bSecure) sCookie += "; secure";
  document.cookie = sCookie;
} //setCookie()
                                
function getCookie(sName) {
  var sRE = "(?:; )?" + sName + "=([^;]*);?";
  var oRE = new RegExp(sRE);
  return (oRE.test(document.cookie)) ? decodeURIComponent(RegExp["$1"]) : null;
} //getCookie()

function deleteCookie(sName, sPath, sDomain) {
  var sCookie = sName + "=; expires=" + (new Date(0)).toGMTString();
  if (sPath) sCookie += "; path=" + sPath;
  if (sDomain) sCookie += "; domain=" + sDomain;
  document.cookie = sCookie;
} //deleteCookie()
//=============================END OF COOKIES===========================


//===========================FONT CHANGE SECTION===========================

function preloadFontChangeImages() {
  /*aDecrImages[0] = new Image(); aDecrImages[0].src = 

"/images/artifacts/pageTools_decrease.gif";
  aDecrImages[1] = new Image(); aDecrImages[1].src = 

"/images/artifacts/pageTools_decrease.gif";
  aIncrImages[0] = new Image(); aIncrImages[0].src = 

"/images/artifacts/pageTools_increase.gif";
  aIncrImages[1] = new Image(); aIncrImages[1].src = 

"/images/artifacts/pageTools_increase.gif"; */
} //preloadFontChangeImages()

//if font size stored in Cookie, use it:
function initFontResize() {
  var sFontIndex=getCookie("TUChangeFontSize");
  if(sFontIndex) {
	iFontIndex=sFontIndex;
	/*document.body.style.fontSize = aFontSizes[sFontIndex] + 'em';
	var sMax = String(aFontSizes.length-1);

	switch( sFontIndex ) {
	  case "0":
	    var oButton=document.getElementById("font-minus");
		if(oButton) { oButton.src = aDecrImages[0].src; oButton.style.cursor = 

"default"; }
	    break;
	  case sMax:
	    var oButton=document.getElementById("font-plus");
		if(oButton) { oButton.src = aIncrImages[0].src; oButton.style.cursor = 

"default"; }
	    break;
	} //switch sFontIndex*/
	HandleNode(document.body,aFontSizes[iFontIndex] + 'em');
	var sMax = String(aFontSizes.length-1);
	switch( sFontIndex ) {
	  case "0":
	    var oButton=document.getElementById("font-minus");
		if(oButton) {oButton.style.cursor = "default"; }
	    break;
	  case sMax:
	    var oButton=document.getElementById("font-plus");
		if(oButton) {oButton.style.cursor = "default"; }
	    break;
	}
	
  } //if sFontIndex

  /*var url = window.location.href;
   var pageToolsAnchor =  document.getElementById("pageToolsAnchor");
   if(pageToolsAnchor){
        if (url.indexOf("accordion=") != -1){
		var v = url.indexOf("accordion=");
		var s = url.substr(v-1);
                url = url.replace(s,"");
	}
	pageToolsAnchor.href = url;
   }*/
} //initResize()

//change font-size globally by increment/decrement of .15em
//the range is 2 down and 3 up from default of .625em, and offset is .09375em (.15em * .625)
function changeDynamicFontSize( oButton, sOtherButton ) {
  //if( !document.body.style.fontSize ) document.body.style.fontSize = 

aFontSizes[iDefFontIndex] + 'em';
  var buttonName = oButton.name, oOtherButton = document.getElementById( sOtherButton );
  switch( buttonName ) {
	case "font-minus":
	  //iFontIndex = iFontIndex <= 1 ? 0 : --iFontIndex;
	  if(iFontIndex <= 1) {
		iFontIndex = 0;
	    //oButton.src = aDecrImages[0].src;
	    oButton.style.cursor = "default";
	  } else {
		--iFontIndex;
	    //oOtherButton.src = aDecrImages[1].src;
	    oOtherButton.style.cursor = "pointer";
	  } //if
	  break;
	case "font-plus":
	  //iFontIndex = iFontIndex >= aFontSizes.length -2 ? aFontSizes.length -1 : ++iFontIndex;
	  if(iFontIndex >= aFontSizes.length -2) {
		iFontIndex = aFontSizes.length -1;
	    //oButton.src = aIncrImages[0].src;
	    oButton.style.cursor = "default";
	  } else {
		++iFontIndex;
	    //oOtherButton.src = aIncrImages[1].src;
	    oOtherButton.style.cursor = "pointer";
	  }
	  break;
  } //switch buttonName
  //document.body.style.fontSize = aFontSizes[iFontIndex] + 'em';
  HandleNode(document.body,aFontSizes[iFontIndex] + 'em');
  storeInCookie( iFontIndex );
} //changeFontSize()

function storeInCookie( sFontIndex ) {
  //var expires = new Date(); expires.setFullYear(expires.getFullYear() + 1); setCookie("TUChangeFontSize", sFontIndex, expires);
  //modified the cookie name as it is conflict with cookie name that is used in corporate.js file.
  setCookie("TUChangeFontSize", sFontIndex, '', '/');
} //storeInCookie


function HandleNode(my_node,fsize) {
	var node_type = my_node.nodeType;
	if (node_type == 3) { // forget blank text nodes
		var my_text = my_node.nodeValue;
	if (my_text.replace(/^\s*$/,"").length < 1) return;
	}
	try{
		if(my_node.changeable != null || my_node.attributes["changeable"] != null || 

my_node.attributes.getNamedItem("changeable")){

		   if(my_node.attributes["changeable"].value == 'true' || 

my_node.attributes.getNamedItem("changeable").nodeValue == 'true'){
			  //my_node.style.fontSize= fsize;
			  ChangeFontSize(my_node,fsize);
		   }
		}
		var mychildren = my_node.childNodes;
		var mychild = "";
		if (my_node.hasChildNodes) { // recursive call
			for (var ichild = 0; ichild < mychildren.length; ichild++) {
				mychild = mychildren[ichild];
				var node_type_inner = mychild.nodeType;
				if (node_type_inner == 3) { // forget blank text nodes
					var my_text_inner = mychild.nodeValue;
				if (my_text_inner.replace(/^\s*$/,"").length < 1) return;
				}
				HandleNode(mychild,fsize);
			}
		}
	}catch(e){}

}
function ChangeFontSize(my_node,fsize){
	var node_type = my_node.nodeType;
	if (node_type == 3) { // forget blank text nodes
		var my_text = my_node.nodeValue;
	if (my_text.replace(/^\s*$/,"").length < 1) return;
	}
	try{
		my_node.style.fontSize= fsize;
		var mychildren = my_node.childNodes;
		var mychild = "";
		/*if (my_node.hasChildNodes) { // recursive call
			for (var ichild = 0; ichild < mychildren.length; ichild++) {
				mychild = mychildren[ichild];
				ChangeFontSize(mychild,fsize);
			}
		}*/
	}catch(e){}
}
//===========================END OF FONT CHANGE SECTION===========================
function flipCSS() {
  for(var i=0; i<document.styleSheets.length; i++){
	  var sHref=document.styleSheets[i].href;
	  if(sHref.substr(sHref.lastIndexOf('/')+1)=="business.css") {
		document.styleSheets[i].href=sHref.substring(0,sHref.lastIndexOf('/')+1)+"business_Print_test.css";
		break;
	  } //if
	} //for aStyles
} //flipCSS()

function getRelatedLinkDiv() {
  var divs = document.getElementsByTagName('div');
  for( var i=0; i < divs.length; i++ ) {
	if( divs[i].attributes.getNamedItem("class") ) {
	  if( divs[i].attributes.getNamedItem("class").nodeValue.indexOf( "relatedLinks" ) != -1 ){
			return divs[i];
	 }
	} //if class
  } //for divs
  return "";
}  //checkRelatedLinks()

function removeFloat(){
   var relatedLinkDiv;
   var counter = 0;
   var relatedDiv = getRelatedLinkDiv();

   if (typeof(relatedDiv) == 'undefined' ||relatedDiv == "")  
	return; 

   relatedLinkDiv = relatedDiv;

   while(counter != 2){	
	if(relatedLinkDiv.parentNode.tagName == "DIV"){		
		counter++;
	}
	relatedLinkDiv = relatedLinkDiv.parentNode;	
   }

   //var relatedLinkDiv = relatedDiv.parentNode.parentNode;
   var mainParentDiv = relatedLinkDiv.parentNode;
   
   if(mainParentDiv){
		if(relatedLinkDiv){
			relatedLinkDiv.style.position = "absolute";
			relatedLinkDiv.style.top = "200px";
			relatedLinkDiv.style.left = "790px";

		}
		mainParentDiv.style.cssFloat ="none";
		var childDivs = mainParentDiv.childNodes;
		for(var i =0;i<childDivs.length;i++){
			if(childDivs[i].tagName == "DIV" && childDivs[i].className == ""){
				childDivs[i].style.cssFloat ="none";
				break;
			}
		}
   }
   
}

