﻿function familyTabReset(){familyPage.find("div.tab-content").addClass("ui-tabs-hide").end().find("div.tab-holder-list ul li").removeClass("ui-state-active ui-tabs-selected")}function familyResizeDropdown(){if($(this).hasClass("has-dropdown")&&!$(this).hasClass("processed")){var a=$(this).find(".dropdown-container"),b=0;a.show(),a.find("a").each(function(){$(this).outerWidth(!0)>b&&(b=$(this).outerWidth(!0))}),a.hide(),b+=20,b<126&&(b=126),a.css("width",b),a.find("a").css("display","block"),a.addClass("processed")}$(this).unbind("mouseenter",familyResizeDropdown)}function processProductPage(a){var b=$("div.tab-holder");b.find(".bookmark-container a").click(function(a){a.preventDefault();var b=$(this).parent().parent().parent().parent(),c=$(this).attr("href").substring(1);window.scrollTo(0,$('a[name="'+c+'"]',b).offset().top)}).end().find(".backtotop").click(function(a){a.preventDefault(),window.scrollTo(0,$("#tabtop").offset().top)}),location.hash.length?(b.tabs({selected:location.hash}),$(window).scrollTop(b.offset().top-10)):a!=""&&b.tabs({selected:"#"+a})}function processFamilyPageTabs(a){var b=$("div.tab-holder > div");b.each(function(){$(this).hasClass("tab-holder-list")||$(this).addClass("ui-tabs-hide")}).find("> ul > li").each(function(){if($(this).hasClass("hide"))return!0;if(location.hash.length)$("a",this).each(function(){if($(this).attr("href")==location.hash)return $($(this).attr("href")).removeClass("ui-tabs-hide"),$(this).trigger("click"),$(window).scrollTop(0),!1});else if($("a:eq(0)",this).attr("href")=="#"+a)return $("#"+a).removeClass("ui-tabs-hide"),$("a:eq(0)",this).trigger("click"),$("body").scrollTop(0),!1})}function consumeAllProductsList(){var a=$("#allproductslist").parent(),b=[],c="",e=0;$("#allproductslist").addClass("hide"),$("#allproductslist").before('<table><colgroup><col width="33%" /><col width="33%" /><col width="33%" /></colgroup><tbody></tbody></table>');var f=$("#allproductslist > li").length,g=Math.ceil(f/3);for(var h=0;h<3;h++){var i="";b[h]=[];if(f==1&&h>0)continue;if(f==2&&h>1)continue;if(f<4){c=$("#allproductslist > li:eq("+h+")").html(),c!=null&&b[h].push("<td>"+c+"</td>");continue}for(d=h*g;d<h*g+g;d++)c=$("#allproductslist > li:eq("+d+")").html(),c!=null&&b[h].push("<td>"+c+"</td>")}for(var h=0;h<3;h++)e<b[h].length&&(e=b[h].length);for(var j=0;j<e;j++){$("table > tbody",a).append("<tr></tr>");for(var h=0;h<3;h++)b[h][j]!=undefined?$("table > tbody > tr:eq("+j+")",a).append(b[h][j]):$("table > tbody > tr:eq("+j+")",a).append('<td class="empty"></td>')}}function productList(){$("a.backtotop").click(function(a){a.preventDefault(),window.scrollTo(0,-1*$(this).offset().top)}),$("#ByPlatform select, #BySolution select").beautify(function(){var a=$(this).val(),b=$(this).parent().parent();$("div.product-list",b).length?($("div.product-list > div > ul",b).remove(),$("div.product-list > ul > li",b).removeClass("fhide"),a.length&&$("> div.product-list",b).each(function(){var b=$("> ul > li",this).length,c=0;$("> ul > li",this).each(function(){var d=$(this).data("filter");(d+"").indexOf(",")>-1?d=d.split(","):d=[d];if(!inArray(a,d)){$(this).addClass("fhide"),c++;if(b==c){var e=$(this).parent().parent();$(e).addClass("fhide")}}})}),productListUL.call(this.parentNode.parentNode,this.parentNode.parentNode)):($("table > tbody > tr",b).removeClass("fhide"),a.length&&$("table > tbody > tr",b).each(function(){var b=$(this).data("filter");(b+"").indexOf(",")>-1?b=b.split(","):b=[b],inArray(a,b)||$(this).addClass("fhide")}),altRows.call(b,"table.product-list",'> tbody > tr[class!="fhide"]'))}),$("div.atoz > a").click(function(a){a.preventDefault();if(!$(this).hasClass("active"))return!1;var b=$(this).parent().parent(),c=$.trim($(this).text());c=c.toLowerCase(),$("div.product-list",b).length?$("> div.product-list",b).each(function(){if($(this).data("alpha")==c)return window.scrollTo(0,$(this).offset().top),!0}):$("> table.product-list",b).each(function(){if($(this).data("alpha")==c)return window.scrollTo(0,$(this).offset().top),!0})}),$("table.product-list").each(function(){var a=$(this).parent();$(".tooltip",this).addClass("force-right"),$("> div.atoz > a:eq("+alpha[$(this).data("alpha")]+")",a).addClass("active")}),altRows.call(document.body,"table.product-list",'> tbody > tr[class!="fhide"]');if(location.hash.length){var a=$.trim(location.hash),b="",c=["#ByPlatform","#BySolution"],d=!1;for(var e in c){var f=new RegExp(c[e]+"(.+)");if(m=a.match(f))b=m[1].toLowerCase(),$(".tab-holder").tabs({selected:c[e]}),$(c[e]+" select:eq(0) > option").each(function(){var a=$(this).text().toLowerCase().replace(/[\s\/\&\-]/g,"");a==b&&($(c[e]+" select:eq(0)").val($(this).attr("value")).trigger("change"),d=!0)})}$(window).scrollTop(0)}}function productListUL(a){$("div.product-list",this).each(function(){if(typeof a=="undefined")var a=$(this).parent();$("ul",this).length==1&&($("ul:eq(0)",this).hide(),$("> div",this).length==0&&$("> a",this).before("<div></div>"));var b=$('ul:eq(0) > li[class!="fhide"]',this).length,c=Math.ceil(b/3);for(var e=0;e<3;e++){var f="";if(b==1&&e>0)continue;if(b==2&&e>1)continue;if(b<4){f=$('ul:eq(0) > li[class!="fhide"]:eq('+e+")",this).html(),f!=null&&$("div",this).append("<ul><li>"+f+"</li></ul>");continue}for(d=e*c;d<e*c+c;d++)licontent=$('ul:eq(0) > li[class!="fhide"]:eq('+d+")",this).html(),licontent!=null&&(f+="<li>"+licontent+"</li>");f!=null&&$("div",this).append("<ul>"+f+"</ul>")}$("ul",this).length==1?($(this).hide(),$("> div.atoz > a:eq("+alpha[$(this).data("alpha")]+")",a).removeClass("active")):($(this).show(),$("> div.atoz > a:eq("+alpha[$(this).data("alpha")]+")",a).addClass("active"))})}function inArray(a,b){var c=b.length;for(var d=0;d<c;d++)if(b[d]==a)return!0;return!1}function bookmarkPage(a,b){a||(a=window.location),b||(b=document.title);var c=navigator.userAgent.toLowerCase();if(window.sidebar){try{window.sidebar.addPanel(b,a,"")}catch(d){alert("Please press CTRL+D (or Command+D for macs) to bookmark this page.")}return!1}return window.external?(c.indexOf("chrome")==-1?window.external.AddFavorite(a,b):alert("Please Press CTRL+D (or Command+D for macs) to bookmark this page"),!1):window.opera&&window.print?!0:c.indexOf("konqueror")!=-1?(alert("Please press CTRL+B to bookmark this page."),!1):c.indexOf("webkit")!=-1?(alert("Please press CTRL+D (or Command+D for macs) to bookmark this page."),!1):(alert("Your browser cannot add bookmarks using this link. Please add this link manually."),!1)}function altRows(a,b){var c="dark";$("."+c,this).removeClass(c),typeof b=="undefined"?$(a,this).each(function(){$(a).index(this)%2===0&&$(this).addClass(c)}):$(a,this).each(function(){var a=0;$(b,this).each(function(){a==0?($(this).addClass(c),a++):a=0})})}function submitSearch(a){document.forms[0].action="/search/index.asp?SearchString="+document.getElementById("qUpper").value,document.forms[0].submit()}function onYouTubePlayerReady(a){ytPlayer=document.getElementById(a),ytPlayer.addEventListener("onStateChange","ytStateChange");var b=ytPlayer.getDuration();s.Media.open(ytTitle,b,"Fancybox Player"),ytPlayerOpen=!0}function ytStateChange(a){var b=ytPlayer.getDuration(),c=ytPlayer.getCurrentTime();a==0?(s.Media.stop(ytTitle,c),typeof ytSeries=="object"&&playNextYoutubeSeries()):a==1?s.Media.play(ytTitle,c):a==2&&s.Media.stop(ytTitle,c)}function playNextYoutubeSeries(){ytSeriesPointer++;if(ytSeriesPointer>ytSeries.length)return;s.Media.close(ytTitle),ytID=ytSeries[ytSeriesPointer][0];if(ytID.substring(0,1)=="/"||ytID.substring(0,3).toLowerCase()=="http")return;$("#youtubeseriescontainer ul li.active").removeClass("active"),$("#youtubeseriescontainer ul li:eq("+ytSeriesPointer+")").addClass("active"),ytTitle=$("#youtubeseriescontainer h4").html()+" - "+ytSeries[ytSeriesPointer][1]+" ["+(ytSeriesPointer+1)+"]",$("#youtubeseriesplayercontainer").html('<div id="youtubeseriesplayer"></div>'),swfobject.embedSWF("http://www.youtube.com/v/"+ytID+"?fs=1&rel=0&enablejsapi=1&playerapiid=myytplayer&amp;autoplay=1","youtubeseriesplayer","600","464","7",null,null,{allowscriptaccess:"always",allowfullscreen:"true"},{id:"myytplayer"})}function resizeAllProducts(){if(resizeAllProductsStatus)return;$(".all-products .row").each(function(){$("> div",this).each(function(){if($(this).height()>20){var a=$(this).parent();$("> div",a).css("height",$(this).height())}})}),resizeAllProductsStatus=!0}function showScreenShotTour(a){$("a.screenshot-tour").each(function(){"#"+a==$(this).attr("href")&&$(this).trigger("click")})}function getRandomString(a){var b="",c=new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"),d=new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"),e=new Array("0","1","2","3","4","5","6","7","8","9");for(i=0;i<a;i++)r=Math.random()*8,r>=0&&r<=2?(n=Math.floor(Math.random()*25),b+=c[n]):r>=3&&r<=5?(n=Math.floor(Math.random()*25),b+=d[n]):r>=6&&(n=Math.floor(Math.random()*9),b+=e[n]);return b}function hideHeaders(){document.getElementsByTagName("h1")[0]&&(document.getElementsByTagName("h1")[0].style.display="none"),document.getElementsByTagName("h2")[0]&&(document.getElementsByTagName("h2")[0].style.display="none")}function MM_openBrWindow(a,b,c){window.open(a,b,c)}function popup(a,b,c,d){var e=0;d==1&&(e=1);var f=screen.availWidth-10,g=screen.availHeight-30;if(f<b){var b=f;e=1}if(g<c){var c=g;e=1}var h=(f-b)/2,i=(g-c)/2,j="width="+b+",innerWidth="+b;j+=",height="+c+",innerHeight="+c,j+=",left="+h+",screenX="+h,j+=",top="+i+",screenY="+i,j+=",resizable=yes",e==1&&(j+=",scrollbars"),window.open("/images/popup.asp?path="+escape(a)+"&width="+b+"&height="+c,"_blank",j)}function clickButton(a,b){var c=document.getElementById(b);if(typeof c=="object"){if(navigator.appName.indexOf("Netscape")>-1&&a.keyCode==13)return c.click(),!1;if(navigator.appName.indexOf("Microsoft Internet Explorer")>-1&&event.keyCode==13)return c.click(),!1}}function formPanel_FireDefaultButton(a,b){if((a.keyCode==13||a.which==13)&&(!a.srcElement||a.srcElement.tagName.toLowerCase()!="textarea")){var c=document.getElementById(b);c=="undefined"&&(c=document.all[b]);if(c&&typeof c.click!="undefined")return c.click(),a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation(),!1}return!0}function banner(a,b,c,d,e,f,g){this.name=a,this.url=b,this.image=c,this.date=e,this.startdate=d,this.active=1,this.extended=f,this.divPosition=g}function get_random(){var a=Math.floor(Math.random()*banners.length);return a}function show_banners(a){var b=get_random();display_banners(b,a)}function display_banners(a,b){a>banners.length-1&&(a=0),a==0?previous=banners.length-1:previous=a-1,a==banners.length-1?next=0:next=a+1;var c=bannersettings.force_size==1?' width="'+bannersettings.img_width+'" height="'+bannersettings.img_height+'"':"",d=0;for(i=0;i<banners.length;i++)banners[i].divPosition==b&&d++;var e='<div class="banners-control clearfix"><a href="#" onclick="display_banners('+previous+",'"+b+'\');return false;"><img src="static/graphics/banner-previous.png" /></a>',f='<a href="'+banners[a].url+'" title="'+banners[a].name+'" target="'+banners[a].extended+'"><img border="0" src="'+banners[a].image+'"'+c+' alt="'+banners[a].name+'" /></a>',g='<a href="#" onclick="display_banners('+next+",'"+b+'\');return false;"><img src="static/graphics/banner-next.png" /></a></div>',h="";d>1?h=f+e+g:h=f;var j=new Date,k=banners[a].startdate,l=banners[a].date;k=k.split("/",6),l=l.split("/",6);var m=new Date(parseInt(k[2]),parseInt(k[1])-1,parseInt(k[0]),parseInt(k[3]),parseInt(k[4]),parseInt(k[5])),n=new Date(parseInt(l[2]),parseInt(l[1])-1,parseInt(l[0]),parseInt(l[3]),parseInt(l[4]),parseInt(l[5]));if(m<j&&j<n&&banners[a].divPosition==b){var o=document.getElementById(b);if(o!=null){o.innerHTML=h,a+=1;return}alert("Arraystudio banner rotator\nError: DIV ID doesn't exist!")}else display_banners(next,b);return}var ytPlayer=null,ytTitle=ytID=ytSeries="",ytPlayerOpen=!1,ytSeriesPointer=0,resizeAllProductsStatus=!1,_gaq=[],alpha={a:0,b:1,c:2,d:3,e:4,f:5,g:6,h:7,i:8,j:9,k:10,l:11,m:12,n:13,o:14,p:15,q:16,r:17,s:18,t:19,u:20,v:21,w:22,x:23,y:24,z:25},bannerrotateint=null,bannerrandomize=null,familyPage=null;$(document).ready(function(){var msie=$.browser.msie;$("div.homepage").length?($("#section .column ul li").hover(function(){$(".blurb").hide(0),$("#blurb-"+$(this).data("blurb")).show(0),$("#section .column ul li").removeClass("selected"),$(this).addClass("selected")}),$("#section").mouseleave(function(){$(".blurb").hide(0),$("#blurb-default").show(0),$("#section .column ul li").removeClass("selected")})):$("div.generic-button-container:visible").each(function(){var a=0;$("> div",this).each(function(){a+=$(this).outerWidth(!0)}),$(this).css("min-width",a+1)}),$("table.alt-rows").each(function(){altRows.call(document,this,"tr")}),$("#breadcrumbs").length>0&&function(){var a=$("div.breadcrumbs-holder").width(),b=$("div.utility-bar-holder > ul").outerWidth(!0)+($("div.utility-bar-holder").outerWidth(!0)-$("div.utility-bar-holder").width()),c=a-b-2,d=0;$("#breadcrumbs").show(),$("#breadcrumbs > ul > li").each(function(){var a=$("#breadcrumbs > ul > li").index(this);a!=$("#breadcrumbs > ul > li").length-1?d+=$(this).outerWidth(!0):d+=$(this).outerWidth(!0)-$(this).width()}),$("#breadcrumbs > ul > li:last").addClass("last-crumb").css("width",c-d)}(),$("h3.trigger").click(function(){$(this).toggleClass("collapse").next().slideToggle("slow")}),$("a.screenshot-tour").length>0&&$("a.screenshot-tour").fancybox({transitionIn:"elastic",transitionOut:"elastic",titlePosition:"inside",onComplete:function(){$(".cloud-zoom").CloudZoom()}}),familyPage=$("div.family-page");var familyTabs=familyPage.find("div.tab-holder-list a");$(".tab-holder").length&&(familyPage.length?$("div.tab-holder").tabs({select:function(a,b){familyTabReset(),$(this).find("ul > li:eq("+b.index+")").removeClass("ui-state-hover")}}):$("div.tab-holder").tabs()),$(".vertical-tabs").length>0&&$(".vertical-tabs").tabs({selected:0}).addClass("ui-tabs-vertical ui-helper-clearfix"),$(".print").click(function(){return window.print(),!1});if($("div.slide-holder").length||$("div.slide-virtual > div").length){var len=$(".slide-holder > .slide").length+$(".slide-virtual > .slide-video").length;bannerrotateint||(bannerrotateint=6e3);if(bannerrandomize){var len=$(".slide-holder > .slide").length,newslideorder=[];for(var c=0;c<len;c++)newslideorder[c]=$(".slide-holder > .slide:eq("+c+")").html();$(".slide-holder > .slide").remove();for(var c=0;c<len;c++){var ran=Math.floor(Math.random()*(len-c));$(".slide-holder").append('<div class="slide">'+newslideorder[ran]+"</div>"),delete newslideorder[ran],newslideorder.sort()}}$("div.slide").css("visibility","visible"),$(".slide-holder, .slide-virtual").after('<div id="page-nav">').cycle({fx:"turnLeft",timeout:bannerrotateint,pager:"#page-nav",autostop:1,autostopCount:len*2+1}),$("#page-nav a, .slide-video a, .slide-virtual a").click(function(){$(".slide-holder, .slide-virtual").cycle("pause")}),$(".slide-video").length==1&&$(".slide-video").show(0)}familyPage.length&&familyPage.find("div.tab-holder-list > ul > li").each(function(){$(this).hasClass("has-dropdown")?$("a:eq(0) > span",this).append('<span class="icon down-arrow"></span>'):$("a:eq(0) > span",this).append('<img src="/shared/images/blank.gif" width="12" height="1" />'),$(this).width()<130?$(this).css("width",130):$(this).css("width",$(this).width()+1),$(this).find("> a").attr("href")=="#all-products"&&$(this).find("> a").click(function(){setTimeout("resizeAllProducts()",200)})}).bind("mouseenter",familyResizeDropdown).end().find("div.tab-holder-list .dropdown-container div a").click(function(a){return familyTabReset(),$(this).parent().parent().parent().addClass("ui-state-active ui-tabs-selected"),$($(this).attr("href")).removeClass("ui-tabs-hide"),!1}).end().find("div.tab-content").find("a").each(function(){var a=$(this).attr("href");a.substr(0,1)=="#"&&$(this).bind("click",function(a){a.preventDefault();var b=$(this).attr("href");familyTabs.each(function(){if($(this).attr("href")==b)return $(this).trigger("click"),!1})})}).end().find(".capability").each(function(){$(".capability-entry:last",this).addClass("end")}).find(".capability-entry").each(function(){$(this).find(".right-rail").length==0&&$(this).css("padding-right","30px")}),$("div.right-rail li, .hasTooltip, .hastooltip").live("mouseover mouseout",function(a){if(a.type=="mouseover"){if($("div.tooltip",this).length){$("#tooltip").length==0&&$(document.body).append('<div id="tooltip"><div class="top"></div><div class="body"></div><div class="bottom"></div></div>');var b=$.trim($("div.tooltip",this).html());if(b.length){$("#tooltip .body").trigger("destroy"),$("#tooltip .body").html(b);var c=0;$("div.tooltip",this).hasClass("force-right")?c=$(this).offset().left+$(this).outerWidth(!0)+10:$("div.tooltip",this).hasClass("force-left")?c=$(this).offset().left-295:(c=$(this).offset().left-295,c<0&&(c=$(this).offset().left+$(this).outerWidth(!0)+10)),$("#tooltip").css({display:"block",top:$(this).offset().top-10,left:c}),$("#tooltip .body").dotdotdot()}}return!1}$("#tooltip").hide(),$("a",this).attr("title",$(this).data("title"))}),$("#docs #docheader-container").length&&($("#docs #docheader-container").insertBefore("#docs > .tab-content-small"),$("#docs #docheader-container > div:eq(0)").css("border-left",0)),$(".screens").length==1&&($(".screens").css("width","100%"),$(".screens img").css({"float":"left","margin-right":"10px"}),$(".screens p.title").css("padding-top","40px")),$("body").append('<div id="fbhidden" style="display: none;"></div>');var fbwmv=[],fbwmvsrc=[];$("a").filter(".youtube").click(function(a){a.preventDefault();if($(this).hasClass("hpg"))$(".slide-holder").cycle("pause"),ytTitle=$(this).attr("data-title"),$.ajax({url:$(this).attr("href"),data:"",success:function(a){var b=a.indexOf("http://www.youtube.com/v/"),c=a.indexOf('"',b);$.fancybox({content:a.substring(b,c)+"&enablejsapi=1&playerapiid=myytplayer",autoDimensions:!0,width:"853px",height:"505px",type:"swf",swf:{allowscriptaccess:"always"},onClosed:function(){ytPlayerOpen&&s.Media.close(ytTitle)}})},dataType:"html"});else if($(this).parent().parent().hasClass("slide-virtual"))$(".slide-virtual").cycle("pause"),ytTitle=$(this).attr("data-title"),youtubetextcontent=$(this).attr("data-textid"),$.fancybox({content:$(this).attr("href"),autoDimensions:!0,width:"853px",height:"505px",type:"swf",swf:{allowscriptaccess:"always"},onComplete:function(){youtubetextcontent!="undefined"&&($("#fancybox-content > div").append('<div id="fancyboxtextid" style="padding: 10px 0 5px;">'+$("#"+youtubetextcontent).html()+"</div>"),$("#fancybox-content").css("height",$("#fancybox-content").height()+$("#fancyboxtextid").outerHeight(!0)+"px"))},onClosed:function(){ytPlayerOpen&&s.Media.close(ytTitle)}});else{if($(this).data("title"))ytTitle=$(this).data("title");else if($(this).hasClass("title"))ytTitle=$(this).text();else{$parent=$(this);while($parent=$parent.parent()){if($parent[0].nodeName=="LI"){ytTitle=$(".title",$parent).text();break}if($parent[0].nodeName=="BODY"){ytTitle=$(this).text();break}}}$.fancybox({content:$(this).attr("href"),autoDimensions:!0,width:"853px",height:"505px",type:"swf",swf:{allowscriptaccess:"always"},onClosed:function(){ytPlayerOpen&&s.Media.close(ytTitle)}})}}).end().filter(".youtubeseries").click(function(a){a.preventDefault(),$("#youtubeseriescontainer").length===0&&$("body").append('<div style="display: none;"><div id="youtubeseriescontainer"><div class="youtubeseries"><div class="list"><h4></h4></div><div id="youtubeseriesplayercontainer"><div id="youtubeseriesplayer"></div></div></div></div></div>');var b=$(this).attr("data-series");b=b.replace(/'/g,'"');var c=jQuery.parseJSON(b);$("#youtubeseriescontainer h4").html(c.title),$("#youtubeseriescontainer ul").html("");var d="";for(var e=0;e<c[0].length;e++)c["0"][e][0].substring(0,1)=="/"||c["0"][e][0].substring(0,3).toLowerCase()=="http"?d+='<li><a href="'+c[0][e][0]+'">'+c[0][e][1]+"</a></li>":d+='<li><a href="http://www.youtube.com/v/'+c[0][e][0]+'?fs=1&rel=0&enablejsapi=1&playerapiid=myytplayer&amp;autoplay=1">'+c[0][e][1]+"</a></li>";$("#youtubeseriescontainer .list").append("<ul>"+d+"</ul>"),ytSeries=c[0],ytSeriesPointer=0,ytTitle=c.title+" - "+c[0][0][1]+" [1]",ytID=c[0][ytSeriesPointer][0],$("#youtubeseriescontainer ul li:eq(0)").addClass("active"),$.fancybox({autoDimensions:!0,type:"inline",content:"#youtubeseriescontainer",onComplete:function(){swfobject.embedSWF("http://www.youtube.com/v/"+ytID+"?fs=1&rel=0&enablejsapi=1&playerapiid=myytplayer&amp;autoplay=1","youtubeseriesplayer","600","464","7",null,null,{allowscriptaccess:"always",allowfullscreen:"true"},{id:"myytplayer"})},onClosed:function(){ytPlayerOpen&&s.Media.close(ytTitle)}})}).end().filter(".podcast").click(function(a){a.preventDefault();var b=decodeURIComponent($(this).attr("href"));$.fancybox({width:430,height:220,type:"iframe",content:b})}).end().filter(".swf").fancybox({autoDimensions:!0,type:"swf"}).end().filter(".iframe").each(function(){var a=0,b=0;if($(this).attr("dimensions")!=undefined){var c=$(this).attr("dimensions");c=c.replace(/'/g,'"'),c=jQuery.parseJSON(c),a=c.width,b=c.height,$(this).fancybox({width:a,height:b,type:"iframe"})}else $(this).fancybox({autoDimensions:!0,type:"iframe"})}).end().filter(".wmv").each(function(){var href=$(this).attr("href"),ext=/[^.]+$/.exec(href);if(ext!="wmv")return!0;var width,height;if($(this).attr("dimensions")!=undefined){var rel=$(this).attr("dimensions");rel=rel.replace(/'/g,'"'),rel=jQuery.parseJSON(rel),width=rel.width,height=rel.height}else width=480,height=360;for(x in fbwmv)if(fbwmv[x]==href)return msie?eval("$(this).fancybox({ 'autoDimensions': true, 'href': '#"+x+"', 'onClosed': function() { $('#"+x+"').html(''); $('#"+x+"').html(fbwmvsrc['"+x+"']); } });"):$(this).fancybox({autoDimensions:!0,href:"#"+x}),!0;var ranid=getRandomString(8);fbwmvsrc[ranid]='<div id="'+ranid+'"><object id="MediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="'+width+'" height="'+height+'" standby="Loading..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"><param name="FileName" value="'+href+'"><param name="AutoStart" value="false"><param name="ShowControls" value="true"><param name="BufferingTime" value="2"><param name="ShowStatusBar" value="true"><param name="AutoSize" value="true"><param name="AnimationatStart" value="1"><param name="TransparentatStart" value="1"><param name="Loop" value="0"><embed type="application/x-mplayer2" src="'+href+'" name="MediaPlayer" autostart="0" showstatusbar="1" showdisplay="1" showcontrols="1" loop="0" videoborder3d="0" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="'+width+'" height="'+height+'"></embed></object></div>',$("#fbhidden").append(fbwmvsrc[ranid]),msie?eval("$(this).fancybox({ 'autoDimensions': true, 'href': '#"+ranid+"', 'onClosed': function() { $('#"+ranid+"').html(''); $('#"+ranid+"').html(fbwmvsrc['"+ranid+"']); } });"):$(this).fancybox({autoDimensions:!0,href:"#"+ranid}),fbwmv[ranid]=href}).end().filter(".bcplaylist").click(function(a){a.preventDefault();var b=820,c=460,d="1032717852001",e="myPlayer",f="@videoPlayer",g="AQ~~,AAAAuIVrAck~,krN9qiM0opaDDbTuPjZFZ41hEuZOA33F";if($(this).data("config")!=undefined){var h=$(this).data("config");h=h.replace(/'/g,'"'),h=jQuery.parseJSON(h),typeof h.height!="undefined"&&(c=h.height),typeof h.playerID!="undefined"&&(d=h.playerID),typeof h.objectID!="undefined"&&(e=h.objectID),typeof h.playlistID!="undefined"?(f="@playlistTabs",videoID=h.playlistID,g="AQ~~,AAAAuIVrAck~,krN9qiM0opYC-JVQO-nl-90D7jzdks3h",b=1e3):videoID=h.videoID,typeof h.width!="undefined"&&(b=h.width)}$.fancybox({width:b,height:c,type:"iframe",href:"",onComplete:function(){var a=document.getElementById("fancybox-frame"),h=null;a.contentDocument?h=a.contentDocument:a.contentWindow?h=a.contentWindow.document:a.document&&(h=a.document),h.open(),h.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body style="margin: 0; padding: 0;"><script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script><object id="'+e+'" class="BrightcoveExperience"><param name="autoStart" value="true" /><param name="bgcolor" value="#FFFFFF" /><param name="width" value="'+b+'" /><param name="height" value="'+c+'" /><param name="playerID" value="'+d+'" /><param name="playerKey" value="'+g+'" /><param name="isVid" value="true" /><param name="isUI" value="true" /><param name="'+f+'" value="'+videoID+'" /></object></body></html>'),h.close()}})}).end().filter(".bookmark").click(function(){bookmarkPage()}).end().filter(".fancybox").fancybox(),$("#footer a.youtube").unbind("click"),$("#youtubeseriescontainer .list li a").live("click",function(a){var b=$(this).attr("href");b.substring(0,1)!="/"&&b.substring(0,3).toLowerCase()!="http"&&(a.preventDefault(),ytSeriesPointer=$("#youtubeseriescontainer .list li a").index(this)-1,playNextYoutubeSeries())}),$("dl.collapsible dt").click(function(){var a=$("dl.collapsible dt").index(this);$(this).hasClass("open")?$(this).removeClass("open"):$(this).addClass("open"),$("dl.collapsible dd:eq("+a+")").toggle()}),$("head").append('<style type="text/css">#navigation-bar ul.dropdown li:hover ul { visibility: visible; }</style>');if($("#social-media-box").length){var burl="";(function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src="//apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();if(window.XMLHttpRequest&&!msie){var xhr=new XMLHttpRequest;xhr.open("GET","http://api.bitly.com/v3/shorten?domain=bit.ly&login=questsoftware&apiKey=R_1a2bd2e3d8c4c1e24473b43c1278f5ef&longUrl="+encodeURIComponent(location.href)),xhr.onreadystatechange=function(){if(xhr.readyState==4&&xhr.status==200){var a=JSON.parse(xhr.responseText);burl=a.data.url}},xhr.send()}$("#social-media-box > li > a").click(function(a){var b=$(this).parent().attr("class"),c=location.href,d=document.title;switch(b){case"facebook":s.tl(this,"o","Share-Facebook"),_gaq.push(["_trackSocial","Facebook","Share"]),window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(c)+"&t="+encodeURIComponent(d),"facebook","toolbar=0,status=0,resizable=1");break;case"twitter":s.tl(this,"o","Share-Twitter"),_gaq.push(["_trackSocial","Twitter","Tweet"]),burl==""&&(burl=c),window.open("http://twitter.com/share?via=quest&url="+encodeURIComponent(burl)+"&text="+encodeURIComponent(d)+",%20&counturl="+encodeURIComponent(c),"twitter","toolbar=0,status=0,resizable=1");break;case"linkedin":s.tl(this,"o","Share-LinkedIn"),_gaq.push(["_trackSocial","LinkedIn","Share"]),window.open("http://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(c)+"&title="+encodeURIComponent(d),"linkedin","toolbar=0,status=0,resizable=1");break;case"email":s.tl(this,"o","Share-Email"),_gaq.push(["_trackSocial","Email","Share"]),emailpopupCMS("Email")}})}$("#allproductslist").length&&consumeAllProductsList()});var swfobject=function(){function A(){if(t)return;try{var a=i.getElementsByTagName("body")[0].appendChild(Q("span"));a.parentNode.removeChild(a)}catch(b){return}t=!0;var c=l.length;for(var d=0;d<c;d++)l[d]()}function B(a){t?a():l[l.length]=a}function C(b){if(typeof h.addEventListener!=a)h.addEventListener("load",b,!1);else if(typeof i.addEventListener!=a)i.addEventListener("load",b,!1);else if(typeof h.attachEvent!=a)R(h,"onload",b);else if(typeof h.onload=="function"){var c=h.onload;h.onload=function(){c(),b()}}else h.onload=b}function D(){k?E():F()}function E(){var c=i.getElementsByTagName("body")[0],d=Q(b);d.setAttribute("type",e);var f=c.appendChild(d);if(f){var g=0;(function(){if(typeof f.GetVariable!=a){var b=f.GetVariable("$version");b&&(b=b.split(" ")[1].split(","),y.pv=[parseInt(b[0],10),parseInt(b[1],10),parseInt(b[2],10)])}else if(g<10){g++,setTimeout(arguments.callee,10);return}c.removeChild(d),f=null,F()})()}else F()}function F(){var b=m.length;if(b>0)for(var c=0;c<b;c++){var d=m[c].id,e=m[c].callbackFn,f={success:!1,id:d};if(y.pv[0]>0){var g=P(d);if(g)if(S(m[c].swfVersion)&&!(y.wk&&y.wk<312))U(d,!0),e&&(f.success=!0,f.ref=G(d),e(f));else if(m[c].expressInstall&&H()){var h={};h.data=m[c].expressInstall,h.width=g.getAttribute("width")||"0",h.height=g.getAttribute("height")||"0",g.getAttribute("class")&&(h.styleclass=g.getAttribute("class")),g.getAttribute("align")&&(h.align=g.getAttribute("align"));var i={},j=g.getElementsByTagName("param"),k=j.length;for(var l=0;l<k;l++)j[l].getAttribute("name").toLowerCase()!="movie"&&(i[j[l].getAttribute("name")]=j[l].getAttribute("value"));I(h,i,d,e)}else J(g),e&&e(f)}else{U(d,!0);if(e){var n=G(d);n&&typeof n.SetVariable!=a&&(f.success=!0,f.ref=n),e(f)}}}}function G(c){var d=null,e=P(c);if(e&&e.nodeName=="OBJECT")if(typeof e.SetVariable!=a)d=e;else{var f=e.getElementsByTagName(b)[0];f&&(d=f)}return d}function H(){return!u&&S("6.0.65")&&(y.win||y.mac)&&!(y.wk&&y.wk<312)}function I(b,c,d,e){u=!0,r=e||null,s={success:!1,id:d};var g=P(d);if(g){g.nodeName=="OBJECT"?(p=K(g),q=null):(p=g,q=d),b.id=f;if(typeof b.width==a||!/%$/.test(b.width)&&parseInt(b.width,10)<310)b.width="310";if(typeof b.height==a||!/%$/.test(b.height)&&parseInt(b.height,10)<137)b.height="137";i.title=i.title.slice(0,47)+" - Flash Player Installation";var j=y.ie&&y.win?"ActiveX":"PlugIn",k="MMredirectURL="+h.location.toString().replace(/&/g,"%26")+"&MMplayerType="+j+"&MMdoctitle="+i.title;typeof c.flashvars!=a?c.flashvars+="&"+k:c.flashvars=k;if(y.ie&&y.win&&g.readyState!=4){var l=Q("div");d+="SWFObjectNew",l.setAttribute("id",d),g.parentNode.insertBefore(l,g),g.style.display="none",function(){g.readyState==4?g.parentNode.removeChild(g):setTimeout(arguments.callee,10)}()}L(b,c,d)}}function J(a){if(y.ie&&y.win&&a.readyState!=4){var b=Q("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(K(a),b),a.style.display="none",function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}else a.parentNode.replaceChild(K(a),a)}function K(a){var c=Q("div");if(y.win&&y.ie)c.innerHTML=a.innerHTML;else{var d=a.getElementsByTagName(b)[0];if(d){var e=d.childNodes;if(e){var f=e.length;for(var g=0;g<f;g++)(e[g].nodeType!=1||e[g].nodeName!="PARAM")&&e[g].nodeType!=8&&c.appendChild(e[g].cloneNode(!0))}}}return c}function L(c,d,f){var g,h=P(f);if(y.wk&&y.wk<312)return g;if(h){typeof c.id==a&&(c.id=f);if(y.ie&&y.win){var i="";for(var j in c)c[j]!=Object.prototype[j]&&(j.toLowerCase()=="data"?d.movie=c[j]:j.toLowerCase()=="styleclass"?i+=' class="'+c[j]+'"':j.toLowerCase()!="classid"&&(i+=" "+j+'="'+c[j]+'"'));var k="";for(var l in d)d[l]!=Object.prototype[l]&&(k+='<param name="'+l+'" value="'+d[l]+'" />');h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>",n[n.length]=c.id,g=P(c.id)}else{var m=Q(b);m.setAttribute("type",e);for(var o in c)c[o]!=Object.prototype[o]&&(o.toLowerCase()=="styleclass"?m.setAttribute("class",c[o]):o.toLowerCase()!="classid"&&m.setAttribute(o,c[o]));for(var p in d)d[p]!=Object.prototype[p]&&p.toLowerCase()!="movie"&&M(m,p,d[p]);h.parentNode.replaceChild(m,h),g=m}}return g}function M(a,b,c){var d=Q("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function N(a){var b=P(a);b&&b.nodeName=="OBJECT"&&(y.ie&&y.win?(b.style.display="none",function(){b.readyState==4?O(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function O(a){var b=P(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=null);b.parentNode.removeChild(b)}}function P(a){var b=null;try{b=i.getElementById(a)}catch(c){}return b}function Q(a){return i.createElement(a)}function R(a,b,c){a.attachEvent(b,c),o[o.length]=[a,b,c]}function S(a){var b=y.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function T(c,d,e,f){if(y.ie&&y.mac)return;var g=i.getElementsByTagName("head")[0];if(!g)return;var h=e&&typeof e=="string"?e:"screen";f&&(v=null,w=null);if(!v||w!=h){var j=Q("style");j.setAttribute("type","text/css"),j.setAttribute("media",h),v=g.appendChild(j),y.ie&&y.win&&typeof i.styleSheets!=a&&i.styleSheets.length>0&&(v=i.styleSheets[i.styleSheets.length-1]),w=h}y.ie&&y.win?v&&typeof v.addRule==b&&v.addRule(c,d):v&&typeof i.createTextNode!=a&&v.appendChild
(i.createTextNode(c+" {"+d+"}"))}function U(a,b){if(!x)return;var c=b?"visible":"hidden";t&&P(a)?P(a).style.visibility=c:T("#"+a,"visibility:"+c)}function V(b){var c=/[\\\"<>\.;]/,d=c.exec(b)!=null;return d&&typeof encodeURIComponent!=a?encodeURIComponent(b):b}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g="onreadystatechange",h=window,i=document,j=navigator,k=!1,l=[D],m=[],n=[],o=[],p,q,r,s,t=!1,u=!1,v,w,x=!0,y=function(){var f=typeof i.getElementById!=a&&typeof i.getElementsByTagName!=a&&typeof i.createElement!=a,g=j.userAgent.toLowerCase(),l=j.platform.toLowerCase(),m=l?/win/.test(l):/win/.test(g),n=l?/mac/.test(l):/mac/.test(g),o=/webkit/.test(g)?parseFloat(g.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,p=!1,q=[0,0,0],r=null;if(typeof j.plugins!=a&&typeof j.plugins[c]==b)r=j.plugins[c].description,r&&(typeof j.mimeTypes==a||!j.mimeTypes[e]||!!j.mimeTypes[e].enabledPlugin)&&(k=!0,p=!1,r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),q[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10),q[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),q[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof h.ActiveXObject!=a)try{var s=new ActiveXObject(d);s&&(r=s.GetVariable("$version"),r&&(p=!0,r=r.split(" ")[1].split(","),q=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)]))}catch(t){}return{w3:f,pv:q,wk:o,ie:p,win:m,mac:n}}(),z=function(){if(!y.w3)return;(typeof i.readyState!=a&&i.readyState=="complete"||typeof i.readyState==a&&(i.getElementsByTagName("body")[0]||i.body))&&A(),t||(typeof i.addEventListener!=a&&i.addEventListener("DOMContentLoaded",A,!1),y.ie&&y.win&&(i.attachEvent(g,function(){i.readyState=="complete"&&(i.detachEvent(g,arguments.callee),A())}),h==top&&function(){if(t)return;try{i.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}A()}()),y.wk&&function(){if(t)return;if(!/loaded|complete/.test(i.readyState)){setTimeout(arguments.callee,0);return}A()}(),C(A))}(),W=function(){y.ie&&y.win&&window.attachEvent("onunload",function(){var a=o.length;for(var b=0;b<a;b++)o[b][0].detachEvent(o[b][1],o[b][2]);var c=n.length;for(var d=0;d<c;d++)N(n[d]);for(var e in y)y[e]=null;y=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(a,b,c,d){if(y.w3&&a&&b){var e={};e.id=a,e.swfVersion=b,e.expressInstall=c,e.callbackFn=d,m[m.length]=e,U(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){if(y.w3)return G(a)},embedSWF:function(c,d,e,f,g,h,i,j,k,l){var m={success:!1,id:d};y.w3&&!(y.wk&&y.wk<312)&&c&&d&&e&&f&&g?(U(d,!1),B(function(){e+="",f+="";var n={};if(k&&typeof k===b)for(var o in k)n[o]=k[o];n.data=c,n.width=e,n.height=f;var p={};if(j&&typeof j===b)for(var q in j)p[q]=j[q];if(i&&typeof i===b)for(var r in i)typeof p.flashvars!=a?p.flashvars+="&"+r+"="+i[r]:p.flashvars=r+"="+i[r];if(S(g)){var s=L(n,p,d);n.id==d&&U(d,!0),m.success=!0,m.ref=s}else{if(h&&H()){n.data=h,I(n,p,d,l);return}U(d,!0)}l&&l(m)})):l&&l(m)},switchOffAutoHideShow:function(){x=!1},ua:y,getFlashPlayerVersion:function(){return{major:y.pv[0],minor:y.pv[1],release:y.pv[2]}},hasFlashPlayerVersion:S,createSWF:function(a,b,c){return y.w3?L(a,b,c):undefined},showExpressInstall:function(a,b,c,d){y.w3&&H()&&I(a,b,c,d)},removeSWF:function(a){y.w3&&N(a)},createCSS:function(a,b,c,d){y.w3&&T(a,b,c,d)},addDomLoadEvent:B,addLoadEvent:C,getQueryParamValue:function(a){var b=i.location.search||i.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(a==null)return V(b);var c=b.split("&");for(var d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==a)return V(c[d].substring(c[d].indexOf("=")+1))}return""},expressInstallCallback:function(){if(u){var a=P(f);a&&p&&(a.parentNode.replaceChild(p,a),q&&(U(q,!0),y.ie&&y.win&&(p.style.display="block")),r&&r(s)),u=!1}}}}(),bannersettings={force_size:0,img_width:468,img_height:60,div_class:"banner"},id_counter=0;
