function ofc_openBrWindow(theURL,winName,features){window.open(theURL,winName,features)}function ImgError(source){source.src="graphics/00000001/no-image-path-error_tn.jpg";source.onerror="";return true}function ofc_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0} $(document).ready(function(){var shipPaySelection=$("body").hasClass("ship_pay_selection");/*if(shipPaySelection)$("div#ofc_search #search").autocomplete("../includes/mysql.php",{width:278,delay:300,selectFirst:false,max:36,minChars:3});*/$("#ZoomBox img#ZoomImage").attr("title","click me to close");$("#mainbox").hide();$("#suninfobox").hide();$("a#products-toggle").toggle(function(){$("a#products-toggle img").attr({src:"images/h3_arrow2.gif"});$("#productsbox").slideToggle("slow")},function(){$("a#products-toggle img").attr({src:"images/h3_arrow.gif"}); $("#productsbox").slideToggle("slow")});$("a#main-toggle").toggle(function(){$("a#main-toggle img").attr({src:"images/h3_arrow2.gif"});$("#mainbox").slideToggle("slow")},function(){$("a#main-toggle img").attr({src:"images/h3_arrow.gif"});$("#mainbox").slideToggle("slow")});$("a#suninfo-toggle").toggle(function(){$("a#suninfo-toggle img").attr({src:"images/h3_arrow2.gif"});$("#suninfobox").slideToggle("slow")},function(){$("a#suninfo-toggle img").attr({src:"images/h3_arrow.gif"});$("#suninfobox").slideToggle("slow")}); $("a#shoppanel-toggle").toggle(function(){$("a#shoppanel-toggle img").attr({src:"images/h3_arrow.gif"});$("#mini_cart").slideToggle("slow")},function(){$("a#shoppanel-toggle img").attr({src:"images/h3_arrow2.gif"});$("#mini_cart").slideToggle("slow")});$("a.show_product_info").toggle(function(){$("div.hidden_object").addClass("jonnybox").show("slow");$("a.show_product_info").text("Close Product Information")},function(){$("div.hidden_object").removeClass("jonnybox").hide("slow");$("a.show_product_info").text("Click Here For Product Information")}); $("a.show_tell_friend").toggle(function(){$("a.show_tell_friend").text("Close");$("div.hidden_object_tf").addClass("jonnybox_tf").show("slow")},function(){$("a.show_tell_friend").text("Tell a Friend");$("div.hidden_object_tf").removeClass("jonnybox_tf").hide("slow")});$(".menu > li").click(function(e){switch(e.target.id){case "specs":$("#specs").addClass("active");$("#relatedproducts").removeClass("active");$("div.specs").fadeIn();$("div.relatedproducts").css("display","none");break;case "relatedproducts":$("#specs").removeClass("active"); $("#relatedproducts").addClass("active");$("div.relatedproducts").fadeIn();$("div.specs").css("display","none");break}return false});$("#checkAllAuto").click(function(){$("input[type='checkbox']").attr("checked",$("#checkAllAuto").is(":checked"))});$("#productForm div.volume_pricing_prod table:first").addClass("volume_pricing_table");$("#productForm div.volume_pricing_prod table.volume_pricing_table table:first").addClass("volume_pricing_table_two");$("#productForm div.volume_pricing_prod table.volume_pricing_table").removeAttr("width").attr("width", "90%").css("margin","0 auto");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(0) th:first").css("background-color","#019348");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(0) th font").removeAttr("size");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(1) th").css({"background-color":"#DDDDDD","font-size":"11px"});$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(1) th font").css("font-size", "11px");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(1) th").removeAttr("align").attr("align","center");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(2)").css("background-color","#EDEDED");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(2) td").removeAttr("align").attr("align","center").css("padding","5px 0px");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(2) td font").removeAttr("size"); $("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(3) td").removeAttr("align").attr("align","center").css("padding","5px 0px");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(3) td font").removeAttr("size");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(4)").css("background-color","#EDEDED");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(4) td").removeAttr("align").attr("align", "center").css("padding","5px 0px");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(4) td font").removeAttr("size");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(5) td").removeAttr("align").attr("align","center").css("padding","5px 0px");$("#productForm div.volume_pricing_prod table.volume_pricing_table table.volume_pricing_table_two tr:eq(5) td font").removeAttr("size");$("#content_ofc div.product_attributes > table.prod_attr_table").attr({width:"500"}).css({"margin":"25px 15px 0px 0px", "padding":"0px"});$("#content_ofc div.product_attributes > table.prod_attr_table tr td:nth-child(1)").attr({align:"right",valign:"top"}).css({"white-space":"nowrap","padding-right":"5px"});$("#content_ofc div.product_attributes > table.prod_attr_table").before("<h3 class='prod_attr_heading'>Product Options</h3>");$(".sun-coupon").click(function(){location.href="/sunbrella_coupons.html"});


// placeholder
var shipPaySelection = $("body").hasClass("ship_pay_selection");
var custInfo = $("body").hasClass("cust_info");
var custPayFinal = $("body").hasClass("cust_pay_final");

if(shipPaySelection || custInfo || custPayFinal) {
     
} else {
    $("#ofc_search label.overlabel").overlabel();
}


});

(function($){$.fn.overlabel=function(options){var opts=$.extend({},$.fn.overlabel.defaults,options);var selection= this.filter("label[for]").map(function(){var label=$(this);var id=label.attr("for");var field=document.getElementById(id);if(!field)return;var o=$.meta?$.extend({},opts,label.data()):opts;label.addClass(o.label_class);var hide_label=function(){label.css(o.hide_css)};var show_label=function(){this.value||label.css(o.show_css)};$(field).parent().addClass(o.wrapper_class).end().focus(hide_label).blur(show_label).each(hide_label).each(show_label);return this});return opts.filter?selection:selection.end()}; $.fn.overlabel.defaults={label_class:"overlabel-apply",wrapper_class:"overlabel-wrapper",hide_css:{"text-indent":"-10000px"},show_css:{"text-indent":"0px",cursor:"text"},filter:false}})(jQuery);
