/**
 * @file		Scripts for MOS
 * @version		2.0 - revised Estimator viewer script
*/


var browserName=navigator.appName; 
var tempAppVersion=navigator.appVersion.split("MSIE");
var browserVer=parseFloat(tempAppVersion[1]);
var isIE = browserName=="Microsoft Internet Explorer";


/**
 * browsercsshacks
 * Insert IE and IE6 css links, if/as appropriate.  INVOKE INLINE in head.
 */
function browsercsshacks() {


if (isIE)
{
	document.write('<link rel="stylesheet" type="text/css" href="/online/styles/screen_ie.css" media="all" />');
}

	
if (isIE)
{
	
	var version = browserVer;

	if ((version >= 5.5 && version < 7) ) 
	{
		
		document.write('<link rel="stylesheet" type="text/css" href="/online/styles/screen_ie6.css" media="all" />');
	   for(var i=0; i<document.images.length; i++)
	   {
	      var img = document.images[i];
	      var imgName = img.src.toUpperCase();
	      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	      {
	         var imgID = (img.id) ? "id='" + img.id + "' " : "";
	         var imgClass = (img.className) ? "class='" + img.className + "' " : "";
	         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
	         var imgStyle = "display:inline-block;" + img.style.cssText;
	         if (img.align == "left") imgStyle = "float:left;" + imgStyle;
	         if (img.align == "right") imgStyle = "float:right;" + imgStyle;
	         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
	         var strNewHTML = "<span " + imgID + imgClass + imgTitle
	         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" ;
	         img.outerHTML = strNewHTML;
	         i = i-1;
	      }
	   }
	}
}

};

function showToolTip(oAnchorTag,e)
{
	xOffset = 50;
	yOffset = 20;
	contentToDisplay = document.getElementById(oAnchorTag.id + "Content").innerHTML;
	if (contentToDisplay != null && contentToDisplay != '') {
							  
		toolTipContainer = document.getElementById("tooltip");
		toolTipContainer.style.top = getMouseY(e) - yOffset + "px";
		toolTipContainer.style.left = getMouseX(e) + xOffset + "px";
		toolTipContainer.innerHTML = contentToDisplay;
		toolTipContainer.style.display = "block";
	}
};

function hideToolTip()
{
		toolTipContainer = document.getElementById("tooltip");
		toolTipContainer.style.display = "none";

}

function getMouseX(e)
{

	mouseX = 0;

	if (e.clientX)
 	{
		mouseX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
	}
	return mouseX;
}

function getMouseY(e)
{

	mouseY = 0;
	if (e.clientY) 	{
		mouseY = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
	}
	return mouseY;

}

function showDetailSection(oObject)
{
	var detailBackgroundObj = document.getElementById("detailSection");
	var detailContentObj = document.getElementById("detailContent");
	var detailContentBodyObj = document.getElementById("detailContentBody");
	var sourceObj = document.getElementById(oObject.id + "Detail");
	detailContentBodyObj.innerHTML = sourceObj.innerHTML;

	detailBackgroundObj.style.display="block";
	detailContentObj.style.display="block";

	setTopPosDetailSection();

	window.onscroll=setTopPosDetailSection;
	window.onresize=setTopPosDetailSection;
		
}
function hideDetailSection()
{
	var detailBackgroundObj = document.getElementById("detailSection");
	var detailContentObj = document.getElementById("detailContent");
	detailBackgroundObj.style.display="none";
	detailContentObj.style.display="none";
		
}

function setTopPosDetailSection()
{
	var detailBackgroundObj = document.getElementById("detailSection");
	var detailContentObj = document.getElementById("detailContent");
	if(isIE){
		detailBackgroundObj.style.top= document.body.scrollTop + "px";
		detailContentObj.style.top = document.body.scrollTop + ((document.body.clientHeight/2)- (detailContentObj.clientHeight / 2)) + "px";
		detailContentObj.style.left = document.body.scrollLeft + ((document.body.clientWidth/2)- (detailContentObj.clientWidth / 2)) + "px";
	}
	else{
		detailBackgroundObj.style.top= window.scrollY + "px";
		detailContentObj.style.top = window.scrollY  + ((window.innerHeight/2) - (detailContentObj.clientHeight / 2)) + "px";
		detailContentObj.style.left = window.scrollX  + ((window.innerWidth/2)- (detailContentObj.clientWidth / 2)) + "px";
	}
	
}

//demo popup
var popupWindow=null;
        function popup(mypage,myname,w,h,pos,infocus){

        if (pos == 'random')
        {LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
        else
        {LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
        settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindow=window.open('',myname,settings);
        if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}
        if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}

        }
        
        

/*  addEvent
	Example:
	addEvent(window, 'load', function() {
		document.getElementById('myfield').focus()
	});
*/
if (typeof addEvent == 'undefined') {
	function addEvent(obj, evType, fn){
		if (obj.addEventListener){
			obj.addEventListener(evType, fn, true);
			return true;
		} else if (obj.attachEvent){
			var r = obj.attachEvent("on"+evType, fn);
			return r;
		} else {
			return false;
		}
	}
}




/** --------------------------------------------------------------------
 * 	Begin scripts for Estimator Viewer
 */

/**
 *  MOS lib scripts & utilities
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('P.Z=8(a,b){n(7 c 1z b){k(t a[c]==\'H\'){a[c]=b[c]}}9 a};P.Z(1T.1N,{2n:8(){7 a=4.2g(4.l(\'?\')+1).q(\'&\');7 b={};7 c=a.h;n(7 i=0;i<c;i++){Y=a[i].q(\'=\');b[Y[0]]=Y[1]}9 b},M:8(a,b){k(b.1X(a)!=-1){9 m}s{9 A}},2x:8(){9 4.1b().F(/^\\w+\\:\\/\\//,\'\').q(\'/\')[0]}});P.Z(L.1N,{E:8(a){4[4.h]=a;9 4.h},1D:8(a,b){k(f.h==0)9 a;k(t a!=\'1C\')a=0;k(a<0)a=14.13(0,4.h+a);k(a>4.h){k(f.h>2)a=4.h;s 9[]}k(f.h<2)b=4.h-a;b=(t b==\'1C\')?14.13(0,b):0;1u=4.1t(a,a+b);11=4.1t(a+b);4.h=a;n(7 i=2;i<f.h;i++){4[4.h]=f[i]}n(7 i=0;i<11.h;i++){4[4.h]=11[i]}9 1u},l:8(a,b){k(b==C){b=0}s k(b<0){b=14.13(0,4.h+b)}n(7 i=b;i<4.h;i++){k(4[i]===a){9 i}}9-1},M:8(a){9 4.l(a)!=-1},Q:8(a){7 i=4.l(a);k(i!=-1){4.1D(i,1)}}});k(t 27.u==\'H\'){u=J P()};u.24={1l:A,X:8(a){a=(a)?m:A;4.1l=a}},u.20={1W:8(a,b,c){k(a.1h){a.1h(b,c,m);9 m}s k(a.1f){7 r=a.1f("1S"+b,c);9 r}s{9 A}},1Q:8(e){k(e){k(e.1j){e.1j();e.2w()}s{e.2t=A;e.2q=m}}s{};9 A}};u.1L={V:8(){4.G=C;4.I=C;4.S=C;4.1b=8(){9 4.G+\'.\'+4.I+\'.\'+4.S};4.X=8(a){7 v=a.q(\'.\');4.G=U(v[0])||0;4.I=U(v[1])||0;4.S=U(v[2])||0};4.1F=8(a){7 v=a.1b().q(\'.\');n(7 i=0;i<3;i++){v[i]=U(v[i])||0};T(m){y(v[0]<4.G):9 m;y(v[0]<=4.G&&v[1]<4.I):9 m;y(v[0]<=4.G&&v[1]<=4.I&&v[2]<=4.S):9 m;12:9 A}}}};u.1c={16:\'\',1B:\'\',15:{V:8(){4.1A=u.1L.V;4.1A()}},1y:8(){7 a=\'\';7 b=\'\';7 c=1x.2a.1w();T(m){y(c.l(\'1v\')!=-1):a=\'29\';7 i=c.l(\'1v\');7 v=c.K(i+5).q(\';\')[0];z;y(c.l(\'1s\')!=-1&&c.l(\'R:\')!=-1):a=\'1s\';7 i=c.l(\'R:\');7 v=c.K(i+3).q(\')\')[0];z;y(c.l(\'1r\')!=-1):a=\'28\';7 i=c.l(\'1r\');7 v=c.K(i).q(\' \')[0].q(\'/\')[1];z;y(c.l(\'10\')!=-1):a=\'10\';7 i=c.l(\'10\');7 v=c.K(i+6).q(\' \')[0];z;y(c.l(\'1p\')!=-1&&c.l(\'R:\')!=-1):a=\'1p\';7 i=c.l(\'R:\');7 v=c.K(i+3).q(\')\')[0];z};4.1B=a;4.15.V();4.15.X(v)},1o:8(){7 p=1x.16.1w();k(p.l(\'26\')!=-1){p=\'25\'}s k(p.l(\'1n\')!=-1){p=\'1n\'}s k(p.l(\'1m\')!=-1){p=\'1m\'}s{p=\'23\'};4.16=p}};u.1c.1y();u.1c.1o();u.18={22:8(a){a.21.1Z=\'1Y\'},1i:8(a){7 b=B.1V(a);n(7 i=1;i<f.h;i++){k(t f[i]==\'1g\'){b.W(4.1e(f[i]))}s k(t f[i]==\'O\'&&t f[i].1U!=\'H\'){b.W(f[i])}s k(t f[i]==\'O\'&&t f[i].h!=\'H\'){n(7 j=0;j<f[i].h;j++){b.W(f[i][j].1R(m))}}s k(t f[i]==\'O\'){4.1q(b,f[i])}};9 b},1q:8(a,b){n(7 c 1z b){T(m){y(c==\'D\'):a.D=b[c];z;y(c==\'1d\'):a.1d=b[c];z;12:a.1P(c,b[c])}}},1e:8(a){9 B.1O(a)},Q:8(a){7 b=J L();n(7 i=0;i<f.h;i++){7 c=(t f[i]==\'1g\')?4.1k(f[i]):f[i];b.E(c.2v.2u(c))};9(b.h>1)?b:b[0]},1k:8(a){7 b=J L();7 c;n(7 i=0;i<f.h;i++){7 d;k(d=B.2r(f[i])){b.E(d)}};T(m){y(f.h==1&&b.h==1):c=b[0];z;y(f.h>1):c=b;z;12:c=A;z};9 c},2p:8(a){7 b=J L();n(7 i=0;i<f.h;i++){1a=B.19(f[i]);n(7 j=0;j<1a.h;j++){b.E(1a[j])}};9 b},2o:8(a){7 o=J L();7 b=(t B.19!=\'H\')?B.19(\'*\'):B.2m;n(7 i=0;i<b.h;i++){(4.17(b[i],f))?o.E(b[i]):m};9 o},1K:8(a,b){7 c=a.D.q(\' \');(!c.M(b))?c.E(b):m;a.D=c.1J(\' \')},1I:8(a,b){7 c=a.D.q(\' \');(c.M(b))?c.Q(b):m;a.D=c.1J(\' \')},2l:8(a,b,c){k(4.17(a,b)){4.1I(a,b)};4.1K(a,c)},17:8(a,b){7 c=f;7 d=1;k(t f[1]==\'O\'){c=f[1];d=0};7 e=A;n(7 i=d;i<c.h;i++){k(a.D.q(\' \').M(c[i])){e=m;z}};9 e},1H:8(a,b){7 c=C;k(t a.1G!=\'H\'){c=a.1G}s{c=B.2k.1H(a,C)};9 c[b]}};u.2j={2i:8(a){a+=\'\';x=a.q(\'.\');N=x[0];1E=x.h>1?\'.\'+x[1]:\'\';7 b=/(\\d+)(\\d{3})/;2h(b.1F(N)){N=N.F(b,\'$1\'+\',\'+\'$2\')};9 N+1E},2f:8(a){k(!a){9 A}a=a.F(/\\$/g,\'\');9 a.F(/\\,/g,\'\')},2e:8(a){7 b=u.18.1i("2s");b.2d=a.F(/</g,"&2c;").F(/>/g,"&2b;");9 b.1M;b.1M=C;u.18.Q(b)}};',62,158,'||||this|||var|function|return||||||arguments||length|||if|indexOf|true|for|||split||else|typeof|MOS||||case|break|false|document|null|className|push|replace|major|undefined|minor|new|substring|Array|contains|x1|object|Object|remove|rv|rev|switch|parseInt|init|appendChild|set|query_pair|augment|opera|endArray|default|max|Math|version|platform|hasClass|dom|getElementsByTagName|els|toString|client|htmlFor|_text|attachEvent|string|addEventListener|create|preventDefault|getById|state|linux|mac|detectPlatform|gecko|_attributes|applewebkit|mozilla|slice|removeArray|msie|toLowerCase|navigator|detectBrowser|in|versionclass|browser|number|splice|x2|test|currentStyle|getComputedStyle|removeClass|join|addClass|clientObjectTemplate|value|prototype|createTextNode|setAttribute|stop|cloneNode|on|String|nodeName|createElement|add|search|block|display|event|style|show|unknown|ready|windows|win|window|safari|ie|userAgent|gt|lt|innerHTML|html_entity_decode|stripCommas|substr|while|addCommas|utilities|defaultView|swapClass|all|toQueryParams|getByClass|getByTag|cancelBubble|getElementById|textarea|returnValue|removeChild|parentNode|stopPropagation|getHostname'.split('|'),0,{}))

/**
 * MOS Estimator viewer
 * @version	2.1	(04 Feb 2009)
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([3-69j-rt-zA-WYZ]|[12]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4.u={init:k(c){3.J=l;3.1c=\'\';3.1C=\'Microsoft Online Services Cost K\';3.1D=\'Close This\';3._c=\'/1d/T/images/loading.gif\';3.1F=\'/1d/T/1G/estimator_remote.U\';3.1H=\'/1d/T/1G/estimator_remote_ie6.U\';3.z=\'T\';6(K.1e.z!==l){3.z=K.1e.z};3.r=\'Estimator_\';3.V=950;3.1f=530;3.1I=3.V-30;3.1J=3.1f-30;3._o=w;3.1g=new Image();3.1g.1K=3.1c+3._c;3._d(3.1c);3.L=3.r+\'load\';3.y=3.r+\'1h\';3.D=3.r+\'1i\';3._e=3.r+\'1i-bg\';3._f=3.r+\'1i-bg-macff\';3.W=3.r+\'HideSelect\';3.Y=3.r+\'iframeContent\';3._p=3.r+\'M\';3._q=3.r+\'ajaxWindowTitle\';3._r=3.r+\'closeAjaxWindow\';3._9=3.r+\'1P\';3._g=3.r+\'imageOff\';3.v=4.v;3.A=m.documentElement;3.1R=m.1S("1T")[0];3.o=m.Z;5 b=3.1U();3.E=(b===l&&3.v.N==\'ie\')?w:l;6(3.E===w){3._h=4.j.1W(3.o,\'1l\');3._i=4.j.1W(3.o,\'1m\')};5 d=4.j.getByClass(3.z);5 f=d.1n;1Y(5 g=0;g<f;g++){6(d[g].tagName.toLowerCase()==\'a\'){d[g].F=k(a){4.u.1Z(3.11);3.blur();t 4.12.stop(a)}}}},1U:k(){5 a=/\\s+(X?HTML)\\s+([\\d\\.]+)\\s*([^\\/]+)*\\//gi;5 c=l;6(13 m.namespaces!="1o"){c=m.20[0].nodeType==8?a.21(m.20[0].nodeValue):l}x{c=m.22!=p?a.21(m.22.publicId):l};6(c){t w}x{t l}},_d:k(a){5 c=\'\';5 b=(a&&a!==\'\')?a:\'\';5 d=3.1R||m.1S("1T")[0];6(d){5 f=m.23(\'O\');6(f){f.24=\'25/U\';f.26=\'28\';f.11=b+3.1F;f.2a=\'2b\';d.G(f)};6(4.v.N==\'ie\'&&4.v.2c.2d<7){5 g=m.23(\'O\');6(g){g.24=\'25/U\';g.26=\'28\';g.11=b+3.1H;g.2a=\'2b\';d.G(g)}}}x{t l}},_j:k(a){5 c={};6(!a){t c};5 b=a.1p(/[;&]/);1Y(5 d=0;d<b.1n;d++){5 f=b[d].1p(\'=\');6(!f||f.1n!=2){continue};5 g=2f(f[0]);5 h=2f(f[1]);h=h.replace(/\\+/g,\' \');c[g]=h};t c},_k:k(a){5 c=a.1p(\'?\');5 b=c[0];5 d={\'O\':b,\'14\':3._j(c[1])};t d},_8:k(){6(4.u.J!==l){clearInterval(4.u.J);4.u.J=l};5 a=4.j.n(3._g);a.F=p;5 c=4.j.n(3.1P);c.F=p;5 b=4.j.n(3.y);5 d=4.j.n(3.D);5 f=4.j.n(3.W);6(b){b.F=p;b.1q=p;b.1r=p;4.j.B(b)};6(d){d.F=p;d.1q=p;d.1r=p;4.j.B(d)};6(f){f.F=p;f.1q=p;4.j.B(f)};5 g=4.j.n(3.L);6(g){4.j.B(g)};6(13 m.Z.9.2h=="1o"){3.A.9.P=\'18\';3.A.9.H=\'18\';3.A.9.2i=\'\';3.o.9.H=\'18\';3.o.9.P=\'18\'};3._a(\'reset\');m.onkeydown="";m.2j="";t l},_l:k(a){5 c=(a&&a[\'M\']&&a[\'M\']!=\'\')?a[\'M\']:3.1C;5 b=(a&&a[\'1t\']&&a[\'1t\']!=\'\')?a[\'1t\']:3.1D;t\'<q C="Estimator_header"><q Q="inner1"><q Q="inner2">	<q Q="headline"><h1>\'+c+\'</h1></q>	<q Q="button">		<a C="\'+3._9+\'" M="\'+b+\'" 11="#"><2m>\'+b+\'</2m></a>	</q><q Q="clear"></q></q></q></q>\'},_m:k(a){6(!a||a==p){t l}5 c=4.j.n(a);6(c){c.9.marginLeft=\'-\'+2o((3.V/2),10)+\'R\';c.9.H=3.V+\'R\';6(!(4.v.N==\'ie\'&&4.v.2c.2d<7)){c.9.1u=\'-\'+(2o((3.1f/2),10)+15)+\'R\'}}},2p:k(){5 a=4.j.n(3.L);4.j.B(a);5 c=4.j.n(3.y);c.9.1v=\'1w\'},_a:k(a){5 c=(a)?w:l;6(3.E===w){6(c){3.o.9.1l=3._h;3.o.9.1m=3._i}x{3.o.9.1l=\'0\';3.o.9.1m=\'0\'}}},_b:k(){5 a=l;6(13(1h.2q)==\'number\'){a=1h.2q}x{a=m.Z.scrollTop};t a},_n:k(){5 a=4.j.n(3.D);5 c=4.j.n(3.y);5 b=3._b();6(a&&c&&b){6(3.E===w){a.9.S=b;c.9.I=\'1y\';c.9.S=b;c.9.1u=\'2s\'};b=p}},1Z:k(c){try{3._a();6(13 m.Z.9.2h==="1o"){3.o.9.H=\'19%\';3.o.9.P=\'19%\';3.A.9.P=\'19%\';3.A.9.H=\'19%\';3.A.9.2i=\'hidden\';6(m.getElementById(3.W)===p){3.o.G(4.j.1a(\'1z\',{C:3.W}))}};5 b=4.j.n(3.D);6(!b){3.o.G(4.j.1a(\'q\',{C:3.D}));b=4.j.n(3.D)};4.12.2t(b,\'2u\',k(){4.u._8()});b.9.I=\'1A\';5 d=4.j.n(3.y);6(!d){3.o.G(4.j.1a(\'q\',{C:3.y}));d=4.j.n(3.y)};5 f=3._b();6(3.E===w){6(f!==l){b.9.I=\'1y\';b.9.S=f}}x{b.9.I=\'1A\'};6(4.v.platform==\'mac\'&&4.v.N==\'mozilla\'){4.j.2v(b,3._f)}x{4.j.2v(b,3._e)};3.o.G(4.j.1a(\'q\',{C:3.L},3.1g));5 g=4.j.n(3.L);g.9.1v=\'1w\';6(f){g.9.S=f+200};6(2w=4.j.n(3.Y)){4.j.B(2w)};5 h=3._k(c);5 i=(h["14"][\'1b\']&&h["14"][\'1b\']!=\'\')?h["O"]+\'?1b=\'+h["14"][\'1b\']:h["O"];d.1r=3._l()+\'<1z frameborder="0" hspace="0" 1K="\'+i+\'" C="\'+3.Y+\'" name="\'+3.Y+2x.round(2x.random()*1000)+\'" onload="4.u.2p()" 9="H:\'+(3.1I+29)+\'R; P:\'+(3.1J+17)+\'R;"></1z>\';4.12.2t(4.j.n(3._9),\'2u\',k(){4.u._8()});3._m(3.y);6(3.E===w){d.9.I=\'1y\';d.9.S=f;d.9.1u=\'2s\';3.J=setInterval("4.u._n()",10)}x{d.9.I=\'1A\'};6(4.v.N==\'safari\'){4.j.B(g);d.9.1v=\'1w\'};m.2j=k(a){6(a==p){1B=12.keyCode}x{1B=a.which};6(1B==27){4.u._8()}}}catch(e){}}};5 K={};K.1e={z:l,setTrigger:k(a){6(!a){t l}3.z=a}};',[],158,'|||this|MOS|var|if|||style||||||||||dom|function|false|document|getById|bodyNode|null|div|_0||return|viewer|client|true|else|_1|_2|htmlNode|remove|id|_3|ieQuirksMode|onclick|appendChild|width|position|_4|Estimator|_5|title|browser|link|height|class|px|top|estimator|css|viewerWidth|_6||_7|body||href|event|typeof|queryString||||auto|100|create|lang|domain|online|params|viewerHeight|imgLoader|window|overlay|||margin|padding|length|undefined|split|className|innerHTML||closeText|marginTop|display|block||absolute|iframe|fixed|keycode|titleDefault|closeTextDefault||cssFilePath|styles|cssFilePath_ie6|ajaxContentWidth|ajaxContentHeight|src|||||closeWindowButton||headNode|getElementsByTagName|head|detectDoctype||getComputedStyle||for|launchView|all|test|doctype|createElement|type|text|rel||stylesheet||media|screen|version|major||unescape||maxHeight|overflow|onkeyup|||span||parseInt|showView|pageYOffset||10px|add|click|addClass|iframeDie|Math'.split('|'),0,{}))


/**
 * init		Instantiate Viewer
 */
if (typeof window.MOS != "undefined") {
	MOS.event.add(window, 'load', function(){ MOS.viewer.init() });
};

/** --------------------------------------------------------------------
 * 	End Estimator Viewer
 */

 
 

/**
 * Leftnav hack
 */
MOS.leftnav = {
	init: function(){
		var source = document.getElementById('leftnav_keeper');
		var destination = document.getElementById('nav_section');
		if (!source || !destination) { return false; }

		var newDiv = document.createElement('div');
		newDiv.className = 'content';
		newDiv.innerHTML = source.innerHTML;
		
		var bottomDiv = document.createElement('div');
		bottomDiv.className = 'bottom';
		
		destination.appendChild(newDiv);		
		destination.appendChild(bottomDiv);
		MOS.dom.remove(source);
	
	}
}
MOS.event.add(window, 'load', function(){ MOS.leftnav.init(); });

