/* Cufon.replace('#main h2, #main h3, .wbcpban, #cptable .title, h2.title, h3, h1'); Cufon.replace('#popwrap h2, #popnav h3, #wbchart h2, #wbchart2 h2, #wbchartfull h2'); Cufon.replace('#optcp h2, #keyf h2, .cptitle, .signupcp h2'); Cufon.replace('#description h2'); */ $(document).ready(function() { $('.tbl1 tr:odd').addClass('odd'); $('.tbl1 tr:even').addClass('even'); // form js $('input[type="text"].inputfix').addClass("idleField"); $('input[type="text"].inputfix').focus(function() { $(this).removeClass("idleField").addClass("focusField"); if (this.value == this.defaultValue){ this.value = ''; } if(this.value != this.defaultValue){ this.select(); } }); $('input[type="text"].inputfix').blur(function() { $(this).removeClass("focusField").addClass("idleField"); if ($.trim(this.value) == ''){ this.value = (this.defaultValue ? this.defaultValue : ''); } }); // Careers Page $(".viewjobpost").click(function(){ $("#jobpost").slideToggle("slow"); $(this).toggleClass("active"); return false; }); $(".fulldes").click(function(){ $("#fulljobdes").slideToggle("slow"); $(".fulldes").toggleClass("active"); return false; }); $(".fulldes2").click(function(){ $("#fulljobdes2").slideToggle("slow"); $(".fulldes2").toggleClass("active"); return false; }); $(".fulldes3").click(function(){ $("#fulljobdes3").slideToggle("slow"); $(".fulldes3").toggleClass("active"); return false; }); // General Tab-Pop-Up Settings $(".tabcontent").hide(); $("#popnav li:first, #tabnav li:first").addClass("active").show(); $(".tabcontent:first, .tabcontent:first").show(); $("#popnav li, #tabnav li").click(function() { $("#popnav li, #tabnav li").removeClass("active"); $(this).addClass("active"); $(".tabcontent").hide(); var activeTab = $(this).find("a").attr("href"); $(activeTab).fadeIn(); return false; }); // Web Hosting Compare Page Settings $(".fullviewfeatures").click(function(){ $("#hidden").slideToggle("slow"); $(this).toggleClass("active"); return false; }); // Pop Up Slider $(".subtab1").click(function(){ $("#subtab1").slideToggle("slow"); $(this).toggleClass("active"); return false; }); $(".subtab2").click(function(){ $("#subtab2").slideToggle("slow"); $(this).toggleClass("active"); return false; }); $(".subtab3").click(function(){ $("#subtab3").slideToggle("slow"); $(this).toggleClass("active"); return false; }); $('.subnav li a').each(function(){ // console.log( $(this) ); if ( getFilename( $(this).attr('href') ) == getFilename() ){ $(this).parent().addClass('active'); } }); }); // Plus Price Change function plusprice1y(){ document.getElementById('saved').innerHTML = '4.95'; document.getElementById('today').innerHTML = '59.40'; } function plusprice2y(){ document.getElementById('saved').innerHTML = '4.45'; document.getElementById('today').innerHTML = '106.80'; } // Advantage Price Change function advprice1y(){ document.getElementById('saved').innerHTML = '9.99'; document.getElementById('today').innerHTML = '119.88'; } function advprice2y(){ document.getElementById('saved').innerHTML = '8.99'; document.getElementById('today').innerHTML = '215.76'; } // Business Price Change function busprice1y(){ document.getElementById('saved').innerHTML = '14.99'; document.getElementById('today').innerHTML = '179.88'; } function busprice2y(){ document.getElementById('saved').innerHTML = '12.99'; document.getElementById('today').innerHTML = '311.76'; } // Compare Chart // Plus Price Change function plusprice1yc(){ document.getElementById('plussaved').innerHTML = '4.95'; document.getElementById('plustoday').innerHTML = '59.40'; } function plusprice2yc(){ document.getElementById('plussaved').innerHTML = '4.45'; document.getElementById('plustoday').innerHTML = '106.80'; } // Advantage Price Change function advprice1yc(){ document.getElementById('advsaved').innerHTML = '9.99'; if ( document.getElementById('advsavepromo') ) { document.getElementById('advsavepromo').innerHTML = '9.99'; // promo saved } document.getElementById('advtoday').innerHTML = '119.88'; } function advprice2yc(){ document.getElementById('advsaved').innerHTML = '8.99'; if ( document.getElementById('advsavepromo') ) { document.getElementById('advsavepromo').innerHTML = '8.99'; // promo saved } document.getElementById('advtoday').innerHTML = '215.76'; } // Business Price Change function busprice1yc(){ document.getElementById('bussaved').innerHTML = '14.99'; document.getElementById('bustoday').innerHTML = '179.88'; } function busprice2yc(){ document.getElementById('bussaved').innerHTML = '12.99'; document.getElementById('bustoday').innerHTML = '311.76'; } /* Business Price Change function busprice1yc(){ document.getElementById('bussaved').innerHTML = '9.95'; document.getElementById('bussavepromo').innerHTML = '14.95'; // promo saved document.getElementById('bustoday').innerHTML = '119.40'; } function busprice2yc(){ document.getElementById('bussaved').innerHTML = '8.95'; document.getElementById('bussavepromo').innerHTML = '12.95'; // promo saved document.getElementById('bustoday').innerHTML = '214.80'; }*/ function pluspricedd(a){ switch (a) { case "2": document.getElementById('plussaved').innerHTML = '4.95'; document.getElementById('plustoday').innerHTML = '59.40'; break; default: document.getElementById('plussaved').innerHTML = '4.45'; document.getElementById('plustoday').innerHTML = '106.80'; } } function advpricedd(a){ switch (a) { case "10": document.getElementById('advsaved').innerHTML = '6.97'; document.getElementById('advtoday').innerHTML = '83.58'; break; default: document.getElementById('advsaved').innerHTML = '6.27'; document.getElementById('advtoday').innerHTML = '150.36'; } } function buspricedd(a){ switch (a) { case "11": document.getElementById('bussaved').innerHTML = '14.95'; //document.getElementById('bussavepromo').innerHTML = '14.95'; // promo saved document.getElementById('bustoday').innerHTML = '179.40'; break; default: document.getElementById('bussaved').innerHTML = '12.95'; //document.getElementById('bussavepromo').innerHTML = '12.95'; // promo saved document.getElementById('bustoday').innerHTML = '310.80'; } } // Affiliate Hosting // Plus Hosting function pluspriceddaf(a){ switch (a) { case "2": document.getElementById('plussaved').innerHTML = '3.96'; document.getElementById('plussavepromo').innerHTML = '4.95'; // promo saved document.getElementById('plustoday').innerHTML = '47.52'; break; default: document.getElementById('plussaved').innerHTML = '3.56'; document.getElementById('plussavepromo').innerHTML = '4.45'; // promo saved document.getElementById('plustoday').innerHTML = '85.44'; } } function plusprice1yaf(){ document.getElementById('plussaved').innerHTML = '3.96'; document.getElementById('plussavepromo').innerHTML = '4.95'; // promo saved document.getElementById('plustoday').innerHTML = '47.52'; } function plusprice2yaf(){ document.getElementById('plussaved').innerHTML = '3.56'; document.getElementById('plussavepromo').innerHTML = '4.45'; // promo saved document.getElementById('plustoday').innerHTML = '85.44'; } function getFilename ( path ){ if ( path ) { return path.substr(path.lastIndexOf("/")+1,path.length); } else { return location.pathname.substr(location.pathname.lastIndexOf("/")+1,location.pathname.length); } }