$(document).ready(function(){$("select#video_make").change(function(){$.getJSON("/json-models",{make:$(this).val(),ajax:"true"},function(c){var b=$("#video_model").empty();$.each(c,function(){b.append('<option value="'+this+'">'+this+"</option>")})})});$("#haghlights li(nth-child(odd)").addClass("alternate");$(".scrollable").not('div[scrollable="false"]').scrollable({circular:true});$("#webcastsubmit").click(function(){var b=$("#webcastyear").val();$.ajax({type:"POST",url:"/investor-relations/webcasts/"+b,success:function(c){$("div#scroll-overview-webcast").html(c)}});return false});$("#documentsubmit").click(function(){var b=$("#documentyear").val();$.ajax({type:"POST",url:"/investor-relations/documents/"+b,success:function(c){$("div#scroll-overview-downloads").html(c)}});return false});$(".print").click(function(){alert("Need to add print functionality")});$("#accordion").easyAccordion({autoStart:true,slideInterval:8000});$("#caacc dd").hide();$("#caacc dt").click(function(){if($(this).hasClass("selected")){$(this).removeClass("selected");$("#caacc dd").slideUp()}else{$("#caacc dt").removeClass("selected");$(this).addClass("selected");$("#caacc dd").slideUp();$(this).next().slideDown()}return false});$(function(){$("ul.sf-menu").find("a[href='"+window.location.pathname+"']").each(function(){$(this).parents("li").addClass("sfHover").addClass("active-page");$(this).closest("ul").css("visibility","visible").css("display","block")});$("ul.sf-menu").superfish({delay:5000,animation:{opacity:"show",height:"show"},speed:"fast",autoArrows:false,dropShadows:false,pathClass:"active-page",pathLevels:5})});$(function(){$("a.iframe").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:300,speedOut:200,width:640,height:480})});$("a#collab").mouseover(function(){$(this).stop().animate({backgroundPosition:"(0 -980px)"},{duration:200})}).mouseout(function(){$(this).stop().animate({backgroundPosition:"(0 -840px)"},{duration:200,complete:function(){$(this).css({backgroundPosition:"0 -840px"})}})});$("a#openVideo").mouseover(function(){$(this).stop().animate({backgroundPosition:"(0 -140px)"},{duration:200})}).mouseout(function(){$(this).stop().animate({backgroundPosition:"(0 0)"},{duration:200,complete:function(){$(this).css({backgroundPosition:"0 0"})}})});$("a#adopt").mouseover(function(){$(this).stop().animate({backgroundPosition:"(0 -395px)"},{duration:200})}).mouseout(function(){$(this).stop().animate({backgroundPosition:"(0 -270px)"},{duration:200})});$("a#scale").mouseover(function(){$(this).stop().animate({backgroundPosition:"(0 -695px)"},{duration:200})}).mouseout(function(){$(this).stop().animate({backgroundPosition:"(0 -540px)"},{duration:200})});$("#jwebconf").click(function(b){b.preventDefault();$.modal('<form name="joinform" id="joinform" onsubmit="return(JoinConference());" target="_top" autocomplete="on" action=""><input type="hidden" name="cust" value="" id="join_spcode" /><input type="hidden" name="SecSvcProv" value="" id="Hidden1" /><input type="hidden" name="brand" value="" id="join_brand" /><input type="hidden" name="proxy" value="auto" /><table style="height:230x; width:320px"><tr><td width="155" colspan="2"><strong><font color="#384959">Join A Web Conference</font></strong></td><td>&nbsp;</td></tr><tr><td width="170" height="27">&nbsp;</td><td><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 10px;">(<span style="color:#990000;">*</span> = Required Field)</span></td></tr><tr><td height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color:#990000;">*</span>Participant Code:</span></td><td><input type="text" name="code" maxlength="17" tabindex="1" value="" id="join_code" autocomplete="off" style="width: 150px"></td></tr><tr><td  height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color:#990000;">*</span>Name:</span></td><td  height="27"><input type="text" name="fname" maxlength="32" tabindex="2" value="" id="join_name" vcard_name="vCard.DisplayName" style="width: 150px"></td></tr><tr><td height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">Company:</span></td><td><input type="text" name="comp" maxlength="32"  tabindex="3" value="" id="join_company" vcard_name="vCard.Company" style="width: 150px"></td></tr><tr> <td height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">E-Mail:</span></td><td><input type="text" name="email" maxlength="255" tabindex="4" value="" id="join_email" vcard_name="vCard.Email" style="width: 150px"></td></tr><tr align="center"><td>&nbsp;</td><td height="27" colspan="2" align="left"><input type="submit" value="Login" /></td></tr></table></form>');InitJoin()});$("#hwebconf").click(function(b){b.preventDefault();$.modal('<form name="hostform" id="hostform" onsubmit="return(HostConference());" target="_top" autocomplete="on" action=""><input type="hidden" name="cust" value="" id="host_spcode" /><input type="hidden" name="SecSvcProv" value="" id="Hidden2" /><input type="hidden" name="brand" value="" id="host_brand" /><input type="hidden" name="proxy" value="auto" /><input type="hidden" name="mode" value="" /><table style="height:210px; width:320px"><tr><td width="155" colspan="2"><strong><font color="#384959">Host A Web Conference</font></strong></td><td>&nbsp;</td></tr><td height="27" width="155">&nbsp;</td><td width="170" ><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 10px;">(<span style="color:#990000;">*</span> = Required Field)</span></td></tr><tr><td  height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color:#990000;">*</span>Chairperson Code:</span></td><td><input type="text" name="UserName" maxlength="17" tabindex="11" value="" id="host_id" style="width: 150px"></td></tr><tr><td  height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color:#990000;">*</span>Conference ID:</span></td><td><input type="text" name="Password" maxlength="17" tabindex="12" value="" id="host_code" style="width: 150px" /></td></tr><tr><td  height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color:#990000;">*</span>Name:</span></td><td><input type="text" name="fname" maxlength="32" tabindex="13" value="" id="host_name" vcard_name="vCard.DisplayName" style="width: 150px"></td></tr><tr><td height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color:#990000;">*</span>Company:</span></td><td><input type="text" name="comp" maxlength="32" tabindex="14" value="" id="host_company" vcard_name="vCard.Company" style="width: 150px"></td></tr><tr><td  height="27" align="right" style="width: 138px"><span style="color: #333333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">E-Mail:</span></td><td><input type="text" name="email" maxlength="255" tabindex="15" value="" id="host_email" vcard_name="vCard.Email" style="width: 150px"></td></tr><tr align="center"><td>&nbsp;</td><td height="27" colspan="2" align="left"><input name="button_login_host" type="submit"/></td></tr></table></tr></table></form>');InitHost()});$("#simplelink").click(function(b){b.preventDefault();$.modal('<h4>Schedule Virtual Video Room</h4><iframe src="http://www2.glowpoint.com/l/3902/2011-06-10/7OYBP" width="600" height="500" type="text/html" frameborder="0" style="border: 0"></iframe>',{escClose:true,modal:true})});$(".video-modal").click(function(b){b.preventDefault();$.modal('<div class="video-js-box"><video id="example_video_1" class="video-js" width="640" height="264" controls="controls" preload="auto"><source src="'+$(this).attr("href")+'" type=\'video/mp4; codecs="avc1.42E01E, mp4a.40.2"\' /><object id="flash_fallback_1" class="vjs-flash-fallback" width="640" height="264" type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf"><param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value=\'config={"playlist":[{"url": "http://video-js.zencoder.com/oceans-clip.mp4","autoPlay":false,"autoBuffering":true}]}\' /></object></video></div>',{escClose:true,modal:true});VideoJS.setup("modal-video",{controlsBelow:false,controlsHiding:true,defaultVolume:0.85,flashVersion:9,linksHiding:true})});$.jTwitter("GlowpointBuzz",3,function(b){$("#tweets-loading").remove();$(b).each(function(){$("li.tweets").append($("<p></p>").html(this.text+' | <a href="http://www.twitter.com/#!/GlowpointBuzz/status/'+this.id_str+'" target="_blank"><span style="font-weight: bold; text-decoration: underline;">read more &raquo;</span></a>'))})});$("a.learnMore").hover(function(){$(this).prev().addClass("photos-hovered")},function(){$(this).prev().removeClass("photos-hovered")});$("a.learnMoreBoard").hover(function(){$(this).prev().addClass("photos-board-hovered")},function(){$(this).prev().removeClass("photos-board-hovered")});$("a.photos").hover(function(){$(this).next().addClass("learnMore-hovered")},function(){$(this).next().removeClass("learnMore-hovered")});$("a.photos-board").hover(function(){$(this).next().addClass("learnMoreBoard-hovered")},function(){$(this).next().removeClass("learnMoreBoard-hovered")});var a=null;$("ul.leadership a.photos, ul.leadership a.photos-board, a.learnMore, a.learnMoreBoard").click(function(){var b=($(this).attr("id")==undefined)?$(this).prev().attr("id"):$(this).attr("id");if(a==b){return}$("#lssidedef").hide();$("#bodsidedef").hide();$(".leadershipBios").show();$(".leadershipBios > div").slideUp(400);$("#bio"+b).slideDown(400);a=b});$(".leadershipBios .close").click(function(){$(".leadershipBios").hide();$("#bio"+$(this).parent().attr("id")).hide();$("#lssidedef").show();$("#bodsidedef").show()});$("#ov-diagram-popup").click(function(b){b.preventDefault();$.modal('<div style="width: 704px; height: 514px;"><img src="/images/glowpoint_openvideocloudarchitecture_03.png" width="704" height="514" /></div>')});$("#vbs-schedule-popup").click(function(b){b.preventDefault();$.modal('<div style="width: 942px; height: 393px;"><img src="/images/vbs_photo3.jpg" width="942" height="393" /></div>')});$("#vbs-conference").click(function(b){b.preventDefault();$.modal('<div style="width: 475px; height: 590x;"><img src="/images/vbs-customerpoint-popup.jpg" width="475" height="590" /></div>')});$("#vbs-check, #vbs-view, #vbs-find, #vbs-signin").click(function(b){b.preventDefault();$.modal('<div style="width: 327px; height: 552px;"><img src="'+$(this).find("img").attr("src").replace("_th","")+'" width="327" height="552" /></div>')});$("a#case-studies-popup").click(function(b){b.preventDefault();$.modal('<object width="560" height="315"><param name="movie" value="http://www.youtube.com/v/wUI9I7VAdB8?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/wUI9I7VAdB8?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>')});$(".press-release-print").click(function(h){h.preventDefault();var d=$("#mediacont").html();var c=$("#invescont").html();var i=$("#prbox > h3").html();var f=$("#prbox > h5").html();var g=$("#prcont").html();var b=window.open(null,"print_window","width=700,height=900,scrollbars=yes");$(b.document.body).html('<html><head><title>Print Press Release</title></head><body><div style="float: left;">'+d+'</div><div style="float: right;">'+c+'</div><div style="clear: both;">&nbsp;</div><div style="width: 100%; text-align: center; font-weight: bold;">'+i+'</div><div style="clear: both;"></div><div style="width: 100%; text-align: center;">'+f+'</div><div style="clear: both;">&nbsp;</div><div>'+g+"</div></body></html>");b.print()})});
