var browser_name = navigator.appName; //HEADERS //document.write(""); function main_header(str) { if (browser_name == "Microsoft Internet Explorer") { main_ie(str); } else { main_not_ie(str); } } function sub_header(str) { if (browser_name == "Microsoft Internet Explorer") { sub_ie(str); } else { sub_not_ie(str); } } function main_ie(str2) { document.write("

"+str2+"

"); } function main_not_ie(str2) { document.write("

"+str2+"

"); } function sub_ie(str2) { document.write("

"+str2+"

"); } function sub_not_ie(str2) { document.write("

"+str2+"

"); } //END HEADERS //SUPPLEMENTS function quickstart_supps(recommended, company, name, type, image, url, desc, review) { document.write("


"+recommended+":
"+company+" Presents: "+name+"

"+type+"
"+desc+"
[ Order ] [ Product Info ] [ Rating ]
Order

Product Info

Rating

"); } //END SUPPLEMENTS //TRAINING function quickstart_training(name, url) { document.write("

Get A Printable Log Of "+name+".
print Printable PagePDF PDF Document

"); } function quickstart_training_white(name, url) { document.write(" Printable Page   PDF Document<\/span>"); } function quickstart_training_bodyspace(name, url, bodyspace) { document.write(" Printable Page   PDF Document<\/span>  Track<\/a><\/span>"); } //END TRAINING function gotolink(theword) { window.location.href = "https://videos.bodybuilding.com/tags/"+theword; return false; } //POLLS var http_request = false; function makeRequest(url, parameters) { http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { // set type accordingly to anticipated content type //http_request.overrideMimeType('text/xml'); http_request.overrideMimeType('text/html'); } } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request) { alert('Cannot create XMLHTTP instance'); return false; } http_request.onreadystatechange = alertContents; http_request.open('GET', url + parameters, true); http_request.send(null); } function alertContents() { if (http_request.readyState == 4) { if (http_request.status == 200) { //alert(http_request.responseText); result = http_request.responseText; // document.getElementById('myspan').innerHTML = result; showResults (result); } else { alert('There was a problem with the request.'); } } } function get(obj) { var getstr = "?"; for (i=0; iIntroduction | Training | Nutrition | Supplements | Motivation | More Info"); } function changeValues (val, id) { val = val.split("||"); document.getElementById ("ours" + id).innerHTML = "$" + val[0]; document.getElementById ("retail" + id).innerHTML = "$" + val[1]; document.getElementById ("savings" + id).innerHTML = "(" + Math.round ((1 - (val[0] / val[1]))*100) + "% Off)"; document.getElementById ("order" + id).innerHTML = "\"Order\""; } function topNavigation (s, a, g) { var current = document.location.href; if (!current.match(/intro/gi)) { document.write ("Introduction"); } else { document.write ("Introduction") } document.write ("  |  "); if (!current.match(/training/gi)) { document.write ("Training"); } else { document.write ("Training") } document.write ("  |  "); if (!current.match(/nutrition/gi)) { document.write ("Nutrition"); } else { document.write ("Nutrition") } document.write ("  |  "); if (!current.match(/supplements/gi)) { document.write ("Supplements"); } else { document.write ("Supplements") } document.write ("  |  "); if (!current.match(/motivation/gi)) { document.write ("Motivation"); } else { document.write ("Motivation") } document.write ("  |  "); if (!current.match(/moreinfo/gi)) { document.write ("More Info"); } else { document.write ("More Info") } } function beginVideo () { var cssCode = ''; var embedCode = ""; newwindow2=window.open('','videoPopup','width=800,height=600'); void(0); var tmp = newwindow2.document; tmp.write(cssCode +"

" + embedCode + "

"); tmp.close(); } //END FIND A PLAN