(function() { var doc, executeScripts, here, i, iframe, myFrameId, myId, ref, scriptIndex, scripts, setMyContentFunctionName, setMyHeightFunctionName, src, width; if (window.__coursecraftFrameCount == null) { window.__coursecraftFrameCount = 0; } myId = "course_z9P5d_1491700577_tall_" + (window.__coursecraftFrameCount++); if (window.__coursecraftFrameIds == null) { window.__coursecraftFrameIds = []; } window.__coursecraftFrameIds.push(myId); myFrameId = "coursecraft_widget_frame_" + myId; setMyContentFunctionName = "setCoursecraftFrameContent_" + myId; setMyHeightFunctionName = "setCoursecraftFrameHeight_" + myId; executeScripts = function(document, bodyElement) { var child, childrenNodes, evalScript, i, j, len, len1, nodeName, results, script, scripts; nodeName = function(elem, name) { return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); }; evalScript = function(elem) { var data, e, error, firstChild, head, script; data = elem.text || elem.textContent || elem.innerHTML || ""; head = document.getElementsByTagName("head")[0] || document.documentElement; script = document.createElement("script"); script.type = "text/javascript"; try { script.appendChild(document.createTextNode(data)); } catch (error) { e = error; script.text = data; } firstChild = head.firstChild; head.insertBefore(script, firstChild); return head.removeChild(script); }; scripts = []; childrenNodes = bodyElement.childNodes; for (i = 0, len = childrenNodes.length; i < len; i++) { child = childrenNodes[i]; if (nodeName(child, "script") && (!child.type || child.type.toLowerCase() === "text/javascript")) { scripts.push(child); } } results = []; for (j = 0, len1 = scripts.length; j < len1; j++) { script = scripts[j]; if (script.parentNode) { script.parentNode.removeChild(script); } results.push(evalScript(script)); } return results; }; window[setMyContentFunctionName] = function(iframe) { var doc, f, r; doc = (iframe.contentWindow || iframe.contentDocument).document; f = function() { return executeScripts(doc, doc.body); }; r = function(f) { if (/in/.test(document.readyState)) { return setTimeout((function() { return r(f); }), 9); } else { return f(); } }; return r(f); }; window[setMyHeightFunctionName] = function(height) { var frame; frame = document.getElementById(myFrameId); frame.style.height = height; return frame.setAttribute('height', height); }; scripts = document.getElementsByTagName('script'); here = null; for (scriptIndex = i = ref = scripts.length - 1; i >= 0; scriptIndex = i += -1) { src = scripts[scriptIndex].src.replace(/^https?:/, '').replace(/&.*/, ''); if (src === "//coursecraft.net/courses/z9P5d/widget.js?size=tall") { here = scripts[scriptIndex]; break; } } if (here !== null) { iframe = document.createElement('iframe'); iframe.setAttribute('onLoad', "window." + setMyContentFunctionName + "(this);"); iframe.setAttribute('id', myFrameId); iframe.setAttribute('class', "coursecraft_widget coursecraft_widget_tall"); iframe.setAttribute('scrolling', 'no'); iframe.setAttribute('border', 'none'); iframe.setAttribute('seamless', 'true'); iframe.setAttribute('src', 'javascript:void(0);'); iframe.setAttribute('style', 'border: none;'); /* * calculate width or use size specified by @size */ width = Number("160"); if (isNaN(width)) { width = Math.min(here.parentNode.offsetWidth, 1200); } iframe.setAttribute('width', width); here.parentNode.insertBefore(iframe, here); doc = (iframe.contentWindow || iframe.contentDocument).document; doc.open(); /* */ doc.write("\n\n \u003clink rel=\"stylesheet\" media=\"all\" href=\"//d1qh6uxm3ebwtf.cloudfront.net/assets/widget-7e5b204d9d16a0be6e78406c46ae9740ff7db738293a4e804e382c44699d6671.css\" /\u003e\u003clink rel=\"stylesheet\" media=\"all\" href=\"//d1qh6uxm3ebwtf.cloudfront.net/assets/fonts/proximasoft-3c2e4df50de1ae9af7aceb3559ee6911cd0e8b6686078de8eba72251b0382e76.css\" /\u003e\u003c!--[if IE]\u003e\u003clink rel=\"stylesheet\" media=\"all\" href=\"//d1qh6uxm3ebwtf.cloudfront.net/assets/ie-83731eb946f81a3ea73669f76af0933b0f9d06b54d87e08f2ea9261967f54e15.css\" /\u003e\u003c![endif]--\u003e\u003cstyle\u003e.button { border-style: solid; border-width: 0px; cursor: pointer; font-family: inherit; font-weight: 400; line-height: 1.1; margin: 0 0 1.25em; position: relative; text-decoration: none; text-align: center; text-transform: uppercase; -webkit-transition: none; -moz-transition: none; transition: none; display: inline-block; padding-top: 0.75em; padding-right: 1.5em; padding-bottom: 0.75em; padding-left: 1.5em; font-size: 1em; background-color: #21a8b6; border-color: #1f9ca9; color: #fff; }\n.button:hover, .button:focus { background-color: #1f9ca9; }\n.button.dead { background-color: #21a8b6; }\n.button:hover, .button:focus { color: #fff; }\n.button.secondary { background-color: #e9e9e9; border-color: #1f9ca9; color: #333; }\n.button.secondary:hover, .button.secondary:focus { background-color: #e1e1e1; }\n.button.secondary.dead { background-color: #e9e9e9; }\n.button.secondary:hover, .button.secondary:focus { color: #333; }\n.button.success { background-color: #5da423; border-color: #1f9ca9; color: #fff; }\n.button.success:hover, .button.success:focus { background-color: #569720; }\n.button.success.dead { background-color: #5da423; }\n.button.success:hover, .button.success:focus { color: #fff; }\n.button.alert { background-color: #c60f13; border-color: #1f9ca9; color: #fff; }\n.button.alert:hover, .button.alert:focus { background-color: #b80e12; }\n.button.alert.dead { background-color: #c60f13; }\n.button.alert:hover, .button.alert:focus { color: #fff; }\n.button.accent { background-color: #a0d15d; border-color: #1f9ca9; color: #fff; }\n.button.accent:hover, .button.accent:focus { background-color: #99ce51; }\n.button.accent.dead { background-color: #a0d15d; }\n.button.accent:hover, .button.accent:focus { color: #fff; }\n.button.large { padding-top: 1em; padding-right: 2em; padding-bottom: 1em; padding-left: 2em; font-size: 1.25em; }\n.button.small { padding-top: 0.625em; padding-right: 1.25em; padding-bottom: 0.625em; padding-left: 1.25em; font-size: 0.8125em; }\n.button.tiny { padding-top: 0.5em; padding-right: 1em; padding-bottom: 0.5em; padding-left: 1em; font-size: 0.6875em; }\n.button.expand { padding-top: 0.75em; padding-right: 1.5em; padding-bottom: 0.75em; padding-left: 1.5em; font-size: 1em; padding-top: 0.75em; padding-right: 0px; padding-bottom: 0.75em; padding-left: 0px; width: 100%; }\n.button.left-align { text-align: left; text-indent: 0.75em; }\n.button.right-align { text-align: right; padding-right: 0.75em; }\n.button.disabled, .button[disabled] { background-color: #21a8b6; border-color: #1f9ca9; color: #fff; cursor: default; opacity: 0.6; }\n.button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { background-color: #1f9ca9; }\n.button.disabled.dead, .button[disabled].dead { background-color: #21a8b6; }\n.button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { color: #fff; }\n.button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { background-color: #21a8b6; }\n.button.disabled.secondary, .button[disabled].secondary { background-color: #e9e9e9; border-color: #1f9ca9; color: #333; cursor: default; opacity: 0.6; }\n.button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { background-color: #e1e1e1; }\n.button.disabled.secondary.dead, .button[disabled].secondary.dead { background-color: #e9e9e9; }\n.button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { color: #333; }\n.button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { background-color: #e9e9e9; }\n.button.disabled.success, .button[disabled].success { background-color: #5da423; border-color: #1f9ca9; color: #fff; cursor: default; opacity: 0.6; }\n.button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { background-color: #569720; }\n.button.disabled.success.dead, .button[disabled].success.dead { background-color: #5da423; }\n.button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { color: #fff; }\n.button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { background-color: #5da423; }\n.button.disabled.alert, .button[disabled].alert { background-color: #c60f13; border-color: #1f9ca9; color: #fff; cursor: default; opacity: 0.6; }\n.button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { background-color: #b80e12; }\n.button.disabled.alert.dead, .button[disabled].alert.dead { background-color: #c60f13; }\n.button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { color: #fff; }\n.button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { background-color: #c60f13; }\n.button.disabled.accent, .button[disabled].accent { background-color: #a0d15d; border-color: #1f9ca9; color: #fff; cursor: default; opacity: 0.6; }\n.button.disabled.accent:hover, .button.disabled.accent:focus, .button[disabled].accent:hover, .button[disabled].accent:focus { background-color: #99ce51; }\n.button.disabled.accent.dead, .button[disabled].accent.dead { background-color: #a0d15d; }\n.button.disabled.accent:hover, .button.disabled.accent:focus, .button[disabled].accent:hover, .button[disabled].accent:focus { color: #fff; }\n.button.disabled.accent:hover, .button.disabled.accent:focus, .button[disabled].accent:hover, .button[disabled].accent:focus { background-color: #a0d15d; }\n\ninput.button, button.button { padding-top: 0.75em; padding-bottom: 0.75em; }\ninput.button.tiny, button.button.tiny { padding-top: 0.5em; padding-bottom: 0.5em; }\ninput.button.small, button.button.small { padding-top: 0.625em; padding-bottom: 0.625em; }\ninput.button.large, button.button.large { padding-top: 1.03125em; padding-bottom: 1.03125em; }\n\n@media only screen { .button.radius { -webkit-border-radius: 3px; border-radius: 3px; }\n .button.round { -webkit-border-radius: 1000px; border-radius: 1000px; } }\n@media only screen and (min-width: 48em) { .button { display: inline-block; } }\n.button:active, .button:focus { outline: none !important; }\n.button.secondary:hover { background-color: #e4e4e4; }\n.button.primary:hover { background-color: #20a4b2; }\n\na span.serif { font-family: serif; }\n\ninput, textarea, select { font-weight: 400; }\n\n.prefix, .postfix { line-height: 45px; border: none; font-size: 1.5em; }\n\n.button { margin-bottom: 0 !important; }\n.button.disabled, .button[disabled] { opacity: 0.5; cursor: default; }\n.button.disabled.primary, .button[disabled].primary { background: #21a8b6; }\n.button.disabled.secondary, .button[disabled].secondary { background: #e9e9e9; }\n\nlabel { cursor: default; }\n\nthead { border-bottom: 1px solid #DDD; }\n\ntfoot { border-top: 1px solid #DDD; }\n\ntr { border-bottom: 1px solid #f7f7f7; }\ntr:last-child { border-bottom: none; }\n\nbody { font-family: ProximaSoft, Helvetica Neue, Helvetica, Arial; }\n\na { color: #a0d15d; }\na:hover, a:focus { color: #94cb49; }\n\n#topnav .target:hover { color: #a0d15d; }\n#topnav .user_menu:hover .menu_target { color: #a0d15d; }\n#topnav .user_menu .menu_content a { color: #21a8b6; }\n\n#course_splash .details .body .heading h2, #bundle_show .details .body .heading h2, #new_enrollment .details .body .heading h2, #show_enrollment .details .body .heading h2 { border-bottom-color: #21a8b6; }\n#course_splash .details .body .testimonials ul li blockquote, #bundle_show .details .body .testimonials ul li blockquote, #new_enrollment .details .body .testimonials ul li blockquote, #show_enrollment .details .body .testimonials ul li blockquote { border-left-color: #21a8b6; }\n#course_splash .details .body .toc .lesson_group .group_title, #bundle_show .details .body .toc .lesson_group .group_title, #new_enrollment .details .body .toc .lesson_group .group_title, #show_enrollment .details .body .toc .lesson_group .group_title { background-color: #21a8b6; color: white; }\n#course_splash .details .body .enroll_button .enroll_button_wrapper, #bundle_show .details .body .enroll_button .enroll_button_wrapper, #new_enrollment .details .body .enroll_button .enroll_button_wrapper, #show_enrollment .details .body .enroll_button .enroll_button_wrapper { background: #21a8b6; color: white; }\n#course_splash .details .body .enroll_button .enroll_button_wrapper .flavour, #course_splash .details .body .enroll_button .enroll_button_wrapper h4, #course_splash .details .body .enroll_button .enroll_button_wrapper p, #bundle_show .details .body .enroll_button .enroll_button_wrapper .flavour, #bundle_show .details .body .enroll_button .enroll_button_wrapper h4, #bundle_show .details .body .enroll_button .enroll_button_wrapper p, #new_enrollment .details .body .enroll_button .enroll_button_wrapper .flavour, #new_enrollment .details .body .enroll_button .enroll_button_wrapper h4, #new_enrollment .details .body .enroll_button .enroll_button_wrapper p, #show_enrollment .details .body .enroll_button .enroll_button_wrapper .flavour, #show_enrollment .details .body .enroll_button .enroll_button_wrapper h4, #show_enrollment .details .body .enroll_button .enroll_button_wrapper p { color: white; }\n#course_splash .details .body .enroll_button .enroll_button_wrapper a.button, #bundle_show .details .body .enroll_button .enroll_button_wrapper a.button, #new_enrollment .details .body .enroll_button .enroll_button_wrapper a.button, #show_enrollment .details .body .enroll_button .enroll_button_wrapper a.button { background: white; color: #21a8b6; }\n\n#new_enrollment .details .body .price strong, #sample_signup .price strong { color: #a0d15d; }\n\n#new_enrollment .details .body .addons_selector .addon_block .addon_price { color: #a0d15d; }\n\n#new_enrollment .pricing_block_selector .pricing_block .pricing_price { color: #a0d15d; }\n\n#widget .content .enroll .price strong { color: #a0d15d; }\n\n#profile_show .user_header .info a.website { color: #21a8b6; }\n\n#profile_show .courses .product .details .enroll_container .price strong { color: #a0d15d; }\n#profile_show .courses .product .details .bundle_label { background: #a0d15d; color: white; }\n#profile_show .courses .product .details ul li a { color: #21a8b6; }\n#profile_show .courses .product .details ul li a:hover { color: #19808b; }\n\n#lesson_header .details h3 { color: #a0d15d; }\n\n#lesson_container #content .heading h2 { border-bottom-color: #21a8b6; }\n#lesson_container .upsell_addons .addons_chooser li .details span.price { color: #a0d15d; }\n#lesson_container .upsell_addons .buy_container { border-left-color: #21a8b6; }\n#lesson_container .upsell_addons .buy_container .price strong { color: #a0d15d; }\n\n.lesson_list ul.lessons li.lesson_row .details .title { color: #21a8b6; }\n\n.lesson_list ul.lessons li.lesson_row a.details:hover .title { color: #1d94a0; }\n\n#content .form .bottom .save_alert { color: #a0d15d; }\n\n#comments ul.comment_list li.comment .user.owner .creator_badge a.delete_thread, #comments ul.comment_list li.comment .user.owner .creator_badge a.delete_confirm, #comments ul.comment_list li.comment .user.owner .creator_badge a.delete_child_thread, #comments ul.comment_list li.comment .user.owner .creator_badge a.delete_child_confirm { background: #FDFDFD; color: #a0d15d; }\n#comments ul.comment_list li.comment .user.owner .creator_badge a.delete_thread:hover, #comments ul.comment_list li.comment .user.owner .creator_badge a.delete_confirm:hover, #comments ul.comment_list li.comment .user.owner .creator_badge a.delete_child_thread:hover, #comments ul.comment_list li.comment .user.owner .creator_badge a.delete_child_confirm:hover { color: #94cb49; }\n\n.toggle .check ~ .switch { color: #555; }\n.toggle .check:checked ~ .switch { color: #21a8b6; }\n\n#participant_body #topnav h1 a { background-image: url(\"/wll/9140\"); }\n\u003c/style\u003e\n \u003cdiv id='widget'\u003e\n\u003cdiv class='cover_photo'\u003e\n\u003cimg alt=\"\" width=\"300\" src=\"http://coursecraft.net/cover/course/4966?size=normal\" /\u003e\n\u003c/div\u003e\n\u003cdiv class='details'\u003e\n\u003ch2\u003eThrifting: Never Pay Retail Again\u003c/h2\u003e\n\n\u003cdiv class='enroll_container'\u003e\n\u003ca class='enroll_button button round' href='http:\u0026#47;\u0026#47;coursecraft.net\u0026#47;courses\u0026#47;z9P5d\u0026#47;splash' onclick='javascript:parent.window.open( \u0026quot;http:\u0026#47;\u0026#47;coursecraft.net\u0026#47;courses\u0026#47;z9P5d\u0026#47;splash\u0026quot;, \u0026#39;_blank\u0026#39; );return false;'\u003e\nView Course\n\u003cspan class='serif'\u003e\u0026raquo;\u003c/span\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cscript\u003e\n function getHeight( elm ) {\n var cStyle = elm.ownerDocument \u0026\u0026 elm.ownerDocument.defaultView \u0026\u0026\n elm.ownerDocument.defaultView.getComputedStyle \u0026\u0026\n elm.ownerDocument.defaultView.getComputedStyle(elm, null);\n var ret = cStyle \u0026\u0026 cStyle.getPropertyValue('height') || '';\n if( ret \u0026\u0026 ret.indexOf('.') \u003e -1 ) {\n ret = parseFloat(ret) +\n parseInt(cStyle.getPropertyValue('padding-top')) +\n parseInt(cStyle.getPropertyValue('padding-bottom')) +\n parseInt(cStyle.getPropertyValue('border-top-width')) +\n parseInt(cStyle.getPropertyValue('border-bottom-width'));\n }\n else {\n ret = elm.offsetHeight;\n }\n return ret;\n }\n \n function calc() {\n var el = document.getElementById('widget');\n var height = parseInt( getHeight( el ), 10 );\n window.parent[\"setCoursecraftFrameHeight_\"+document.body.getAttribute('rel')]( height );\n }\n window.onresize = calc\n calc()\n\u003c/script\u003e\n\n"); doc.close(); } else { window.document.write(""); } }).call(this);