
	
	
	
	
	//{var F=0,D=0;if(typeof (window.pageYOffset)=="number"){D=window.pageYOffset;F=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){D=document.body.scrollTop;F=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){D=document.documentElement.scrollTop;F=document.documentElement.scrollLeft}}}var E=[F,D];return E}function getWindowDimensions(){var D=0,C=0;if(typeof (window.innerWidth)=="number"){D=window.innerWidth;C=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){D=document.documentElement.clientWidth;C=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){D=document.body.clientWidth;C=document.body.clientHeight}}}return[D,C]}function getElementLeft(C){var D;if(document.getElementById){var D=document.getElementById(C)}else{if(document.all){var D=document.all[C]}}xPos=D.offsetLeft;tempEl=D.offsetParent;while(tempEl!=null){xPos+=tempEl.offsetLeft;tempEl=tempEl.offsetParent}return xPos}function getElementTop(C){if(document.getElementById){var D=document.getElementById(C)}else{if(document.all){var D=document.all[C]}}yPos=D.offsetTop;tempEl=D.offsetParent;while(tempEl!=null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent}return yPos}String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};Array.prototype.inArray=function(D){var C;for(C=0;C<this.length;C++){if(this[C]===D){return true}}return false};jQuery.fn.reflect=function(B){B=jQuery.extend({height:0.5,opacity:0.5,inline:false},B);this.each(function(){var E=null;var F=null;if(B.inline){var A=this.className.split(" ");for(j=0;j<A.length;j++){if(A[j].indexOf("rheight")==0){B.height=A[j].substring(7)/100}else{if(A[j].indexOf("ropacity")==0){B.opacity=A[j].substring(8)/100}}}}jQuery.Reflection.add(this,B)});return this};jQuery.Reflection={add:function(O,S){jQuery.Reflection.remove(O);try{var V=document.createElement("div");var Q=O;var b=Q.className.split(" ");var Z="";for(j=0;j<b.length;j++){if(b[j]!="reflect"){if(Z){Z+=" "}Z+=b[j]}}var X=Math.floor(Q.height*S.height);var Y=Math.floor(Q.height*(1+S.height));var T=Q.width;if(document.all&&!window.opera){V.className=Z;Q.className="reflected";V.style.cssText=Q.style.cssText;Q.style.cssText="vertical-align: bottom";var a=document.createElement("img");a.src=Q.src;a.style.width=T+"px";a.style.marginBottom="-"+(Q.height-X)+"px";a.style.filter="flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(S.opacity*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(S.height*100)+")";V.style.width=T+"px";V.style.height=Y+"px";Q.parentNode.replaceChild(V,Q);V.appendChild(Q);V.appendChild(a)}else{var P=document.createElement("canvas");if(P.getContext){V.className=Z;Q.className="reflected";V.style.cssText=Q.style.cssText;Q.style.cssText="vertical-align: bottom";var R=P.getContext("2d");P.style.height=X+"px";P.style.width=T+"px";P.height=X;P.width=T;V.style.width=T+"px";V.style.height=Y+"px";Q.parentNode.replaceChild(V,Q);V.appendChild(Q);V.appendChild(P);R.save();R.translate(0,O.height-1);R.scale(1,-1);R.drawImage(O,0,0,T,O.height);R.restore();R.globalCompositeOperation="destination-out";var U=R.createLinearGradient(0,0,0,X);U.addColorStop(1,"rgba(255, 255, 255, 1.0)");U.addColorStop(0,"rgba(255, 255, 255, "+(1-S.opacity)+")");R.fillStyle=U;if(navigator.appVersion.indexOf("WebKit")!=-1){R.fill()}else{R.fillRect(0,0,T,X*2)}}}}catch(W){}},remove:function(B){if(B.className=="reflected"){B.className=B.parentNode.className;B.parentNode.parentNode.replaceChild(B,B.parentNode)}}};var isProfile=false;$(document).ready(function(){$("#profile_interactive").hide();$("#interactivecol1 img").hide();$("#interactivecol2").hide();$("#interactivecol3 img").hide();$("#interactive_more_link").hide();setTimeout("showInteractive()",750);$("#select_industry_id").change(function(){if($("#select_industry_id").val()!=""){$(".processing").show();window.location=$("#select_industry_id").val()}});renderCart();$(".checkbox").click(handleCheck);$(".selectable input").show();$("#img_add_to_cart").click(function(){isProfile=true;var F=($(this).parent().attr("id")).split("::");var D=F[1];var E=F[0].replace(/_/g," ");addItem(D,E);if(bFull){bFull=false;return false}else{if(document.referrer.search(root)==-1){return true}if(document.referrer==(root+"/")||document.referrer==(root+"/bin/__iframe.php")){return true}else{window.history.go(-1);return false}}});$(".add_to_cart_from_sponsor").click(function(){isProfile=false;var F=($(this).attr("name")).split("::");var D=F[1];var E=F[0].replace(/_/g," ");addItem(D,E);return false});$(window).unload(function(){renderCart()});$("#search_term").val("").css({background:"url(/images/watermark_sm.gif) no-repeat"}).focus(function(){$(this).css({background:""})});$("#site_search").submit(function(){if(($("#search_term").val()).trim()==null||($("#search_term").val()).trim()==""){return false}else{self.parent.location.href=$(this).attr("action")+"?q="+encodeURI($("#search_term").val());return false}});$("#confirm_sister_site").hide();setTimeout("showSisterSiteLink()",750);$("#submit_request_from_thickbox").bind("click",function(){self.parent.submitCart()});$("#close_thickbox").bind("click",function(){self.parent.tb_remove()})});function showInteractive(){$("#profile_interactive").slideDown("slow");setTimeout("showCol1()",750)}function showCol1(){$("#interactivecol1 img").animate({opacity:"show"},{duration:"slow"});setTimeout("showCol2()",750)}function showCol2(){$("#interactivecol2").animate({opacity:"show"},{duration:"slow"});setTimeout("showCol3()",750)}function showCol3(){$("#interactivecol3 img").animate({opacity:"show"},{duration:"slow"});setTimeout("showMoreLink()",750)}function showMoreLink(){$("#interactive_more_link").animate({opacity:"show"},{duration:"slow"});setInterval("flash()",10000)}function flash(){$("#interactivecol1 img").fadeTo("slow",0.33);$("#interactivecol1 img").fadeTo("slow",1)}function showSisterSiteLink(){$("#confirm_sister_site").slideDown("slow")}var bFull=false;function handleCheck(){isProfile=false;var C=$(this).val();var D=$(this).parent().parent();sProductName=$(".bizcard_name a",D).html();if(sProductName==null){sProductName=$(".bizcard_name",D).html()}if(sProductName!=null){sProductName=sProductName.replace(/&amp;/,"and")}if($(this).attr("checked")==true){if($(this).hasClass("thankyou")==false){$(this).parent().parent().addClass("added");if(!addItem(C,sProductName)){$(this).checked=false;$(this).parent().removeClass("added")}}}else{removeItem(C)}}var sCookieName="selected_product_ids";var iDays=30;function addItem(E,F){F=escape(F);var G="";if(readCookie(sCookieName)!=null){G=readCookie("selected_product_ids");if(G.length>0){aProducts=G.split("|")}else{aProducts=new Array()}}else{G="";aProducts=new Array()}if(aProducts.length<iLimit){if(aProducts.length==0){G=E+"::"+F}else{var H=false;for(i=0;i<aProducts.length;i++){aTmp=aProducts[i].split("::");if((aTmp[0]==E)||(E=="null")){H=true;break}}if(!H){G+="|"+E+"::"+F}}createCookie(sCookieName,G,iDays);renderCart();if((readCookie("fd_cart_used")==null)&&(!isProfile)){tb_show(sRequestList,"/requestlistpopup/"+E+"/?TB_iframe=true&height=425&width=425","");createCookie("fd_cart_used",1,iDays)}}else{bFull=true;tb_show(sRequestList,"/requestlistpopup/?cmd_cart_full=1&TB_iframe=true&height=425&width=425","");$("#product_id_"+E).attr("checked","");if($("#product_id_"+E).parent().parent().hasClass("added")==true){$("#product_id_"+E).parent().parent().removeClass("added")}renderCart()}}function removeItem(B){sCookie=decode(readCookie("selected_product_ids"));if(!sCookie){return false}aProducts=sCookie.split("|");sCookie="";for(i=0;i<aProducts.length;i++){aTmp=aProducts[i].split("::");if(aTmp[0]!=B){if(sCookie.length>0){sCookie+="|"+aTmp[0]+"::"+aTmp[1]}else{sCookie=aTmp[0]+"::"+aTmp[1]}}else{$("#product_id_"+aTmp[0]).attr("checked","");if($("#product_id_"+aTmp[0]).parent().parent().hasClass("added")==true){$("#product_id_"+aTmp[0]).parent().parent().removeClass("added")}}}createCookie(sCookieName,sCookie,iDays);renderCart()}function decode(B){B=unescape(B);return unescape(B.replace(/\+/g," "))}function renderCart(){sCookie=decode(readCookie("selected_product_ids"));if(sCookie.indexOf("::")<0){$("#request_list_items").empty();$("#request_list_submit_button").hide();$("#request_list_empty").show()}else{aProducts=sCookie.split("|");$("#request_list_submit_button").show();$("#request_list_empty").hide();$("#request_list_items").empty();for(i=0;i<aProducts.length;i++){aTmp=aProducts[i].split("::");elRequestListItem=$('<div class="request_list_item"></div>');elCheckbox=$('<input type="checkbox" style="margin: 0px 5px 0 0 ;" name="lf_product_ids[]" checked="checked" id="cart_id_'+aTmp[0]+'" value="'+aTmp[0]+'" />');$(elCheckbox).click(handleCheck);$(elRequestListItem).append(elCheckbox);$(elRequestListItem).append('<label for="cart_id_'+aTmp[0]+'">'+aTmp[1]+"</label>");$("#request_list_items").append(elRequestListItem);$("#product_id_"+aTmp[0]).attr("checked","checked");if($("#product_id_"+aTmp[0]).hasClass("thankyou")==false){$("#product_id_"+aTmp[0]).parent().parent().addClass("added")}}$("#request_list_items").show();$("#frm_main").show()}}function submitCart(){tb_remove();$("#request_list_container :input[@type='submit']").click()}


