function countdown(n,t,i){var f=new Date,u=f.getYear();u<1e3&&(u+=1900);var o=f.getMonth(),s=f.getDate(),h=montharray[o]+" "+s+", "+u,e=montharray[t-1]+" "+i+", "+n,r=Math.round((Date.parse(e)-Date.parse(h))/864e5)*1;r==0?document.getElementById("DrupaCountdown").value=drupacurrent_text:r>0&&(document.getElementById("DrupaCountdown").value="Only "+r+" days until "+drupabefore_text)}function GenerateCountDown(){document.getElementById("DrupaCountdown")&&countdown(2008,5,29)}function trackUrl(n,t,i){var r="";i||(r="/exlinks//"+n.replace("/","")),r=r+(t.charAt(0)!="/"?"/":"")+t,_gaq.push(["_trackPageview",r])}function AttachEvents(){$("#GCG-top-nav ul.tabs li").hover(function(){$(this).find("#tabmenu_child a").length>0&&$(this).children("div").css("visibility","visible"),$(this).find("#tabmenu_child a").each(function(n,t){$(t).width($(t).parent().width())}),$(this).hasClass("tabon")||$(this).addClass("active")},function(){$(this).children("div").css("visibility","hidden"),$(this).removeClass("active")})}function SetStyles(){$("#GCG-top-nav ul.tabs").find("li").each(function(){parseInt($(this).width())>180&&$(this).width(180)}),$("div.tn_txt").each(function(){parseInt($(this).height())<17&&$(this).addClass("pad")})}function SetCategoryBoxStyles(){$(".NewRowCategory").each(function(){var u=25,f=0,i=0,r=0;$(this).find(".CategoryBoxHeaderNew").each(function(n,t){parseInt($(t).height())>parseInt(u)&&(u=parseInt($(t).height()))}),$(this).find(".CategoryBoxHeaderNew").each(function(n,t){$(t).height(u)}),$(this).find(".imageBoxSection").each(function(n,t){parseInt($(t).height())>parseInt(f)&&(f=parseInt($(t).height()))}),$(this).find(".imageBoxSection").each(function(n,t){$(t).height(f)}),$(this).find(".CategoryBoxSummaryText").each(function(n,t){parseInt($(t).height())>parseInt(i)&&(i=parseInt($(t).height()))}),$(this).find(".CategoryBoxSummaryText").each(function(n,t){$(t).height(i)}),$(this).find(".CategoryBoxDropDwnRow").each(function(n,t){parseInt($(t).height())>parseInt(r)&&(r=parseInt($(t).height()))}),$(this).find(".CategoryBoxDropDwnRow").each(function(n,t){$(t).height(r)})}),$(".ie_padding_top").each(function(n,t){IE?$(t).attr("style","padding-top:0px;"):$(t).attr("style","padding-top:5px;")})}function SetHighlightWellStyles(){var i=0,r=27,n=0,t=0;$(".spl-img").each(function(n,t){parseInt($(t).height())>parseInt(i)&&(i=parseInt($(t).height()))}),$(".spl-img").each(function(n,t){$(t).height(i)}),$(".spl-title").each(function(n,t){parseInt($(t).height())>parseInt(r)&&(r=parseInt($(t).height()))}),$(".spl-title").each(function(n,t){$(t).height(r)}),$(".briefIntro").each(function(t,i){parseInt($(i).height())>parseInt(n)&&(n=parseInt($(i).height()))}),$(".briefIntro").each(function(t,i){$(i).height(n)}),$(".spl-navcontainer").each(function(n,i){parseInt($(i).height())>parseInt(t)&&(t=parseInt($(i).height()))}),$(".spl-navcontainer").each(function(n,i){$(i).height(t)})}function SetProdAttachBoxStyle(){var n=0;$(".attachBoxHolder tr").each(function(){n=0,$(this).find(".prop-grad-top").each(function(t,i){parseInt($(i).height())>parseInt(n)&&(n=parseInt($(i).height()))}),$(this).find(".prop-grad-top").each(function(t,i){$(i).height(n)})})}function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="",t!=""&&(document.cookie=n+"="+t+u+"; path=/")}function readCookie(n){for(var u=n+"=",r=document.cookie.split(";"),t,i=0;i<r.length;i++){t=r[i];while(t.charAt(0)==" ")t=t.substring(1,t.length);if(t.indexOf(u)==0)return t.substring(u.length,t.length)}return null}var drupabefore_text="drupa 2008",drupacurrent_text="drupa 2008 is on until June 11th",montharray=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],IE,cookieName,campaignValue,cookieVal;setTimeout("GenerateCountDown();",2500),$("a").click(function(){var i=this.href,t,n;location.host==this.hostname?(t=new RegExp(".(doc|pdf|xls|ppt|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3|flv|swf)$"),n=t.exec(i),n!=null&&trackUrl(this.hostname,this.pathname,!0)):/^http|^ftp/i.test(i)&&trackUrl(this.hostname,this.pathname+this.search,!1)}),(function(n){n.fn.videobox=function(t){return typeof t=="undefined"&&(t={}),n.videobox.show(n(this[0]),t),this},n.videobox={defaults:{resizeDuration:400,initialWidth:250,initialHeight:250,width:425,height:350,autoplay:!1,flvplayer:"/kodakgcg/kodakgcgpages/scripts/flvplayer.swf",overlayTemplate:'<div id="lbOverlay_video"></div>',contentTemplate:'<div id="lbCenter" style="background: none repeat scroll 0% 0% rgb(255, 255, 255);"></div>',bottomContentTemplate:'<div id="lbBottomContainer" ><div id="lbBottom"><a id="lbCloseLink" href="#"></a><div id="lbCaption_video"></div><div id="lbNumber"></div><div style="clear: both;"></div></div></div>'},uiElements:{},init:function(t){n.videobox.defaults=jQuery.extend(t,n.videobox.defaults),n("body").click(function(t){var i=n(t.target).get(0);return typeof i!="undefined"&&i&&(i=n(t.target).parents("a").length>0?n(t.target).parents("a").get(0):i),i.tagName.toLowerCase()=="a"?n.videobox.show(n(i),n.videobox.defaults):void 0}),n.videobox.createUI()},close:function(){var r=n.videobox.uiElements.overlay,t=n.videobox.uiElements.content,i=n.videobox.uiElements.bottom;return r.fadeTo("fast",0,function(){n(this).css("display","none")}),t.css("display","none"),i.css("display","none"),t.html(""),n("object, embed").each(function(){n(this).css("visibility","visible")}),!1},destroy:function(){n.videobox.uiElements.overlay.remove(),n.videobox.uiElements.content.remove(),n.videobox.uiElements.bottom.remove()},createUI:function(){var t=n.videobox.defaults;n.videobox.uiElements.overlay=n(t.overlayTemplate).hide().click(n.videobox.close).appendTo("body"),n.videobox.uiElements.content=n(t.contentTemplate).css({width:t.initialWidth+"px",height:t.initialHeight+"px",display:"none"}).appendTo("body"),n.videobox.uiElements.bottom=n(t.bottomContentTemplate).hide().find("#lbCloseLink").click(n.videobox.close).end().appendTo("body")},setupUI:function(t,i,r){n.extend(this,t),insert=function(){var t=n.videobox,i=t.uiElements.content,r=t.uiElements.bottom;i.css("background","#fff"),t.flash?t.so.write(i.attr("id")):i.html(t.other),r.css({top:t.top+i.height()+10+"px",left:i.css("left"),width:t.width+"px"}),r.slideDown("slow")},typeof n.videobox.uiElements.overlay=="undefined"&&createUI(),typeof this.title!="undefined"&&n.videobox.uiElements.bottom.find("#lbCaption_video").html(this.title),n.videobox.uiElements.overlay.css({top:n(window).scrollTop()+"px",height:n(window).height()+"px"}),this.width=i,this.height=r,this.top=n(window).scrollTop()+(n(window).height()/2-r/2)-25,this.left=n(window).width()/2-i/2,n("#lbCenter").css({top:this.top+"px",left:this.left+"px",display:"none",background:"#fff url(css/loading.gif) no-repeat center",height:this.height+"px",width:this.width+"px"}),n("object, embed").each(function(){n(this).css("visibility","hidden")}),n("#lbOverlay_video").css("display","block").fadeTo("fast",.8),n("#lbCenter").fadeIn("slow",function(){insert()})},show:function(t,i){var f,r,u;this.options=i,f=t.attr("href");if(f.length==0)return!0;t.attr("title")?this.title=t.attr("title"):t.attr("alt")&&(this.title=t.attr("alt")),r=t.attr("rel"),r=r?r:r="";var o=n.videobox.defaults.width,e=n.videobox.defaults.height,s=n.videobox.defaults.autoplay;return r.toLowerCase().indexOf("leavemealone")>-1?!0:(r.toLowerCase().indexOf("vidbox")<0||(u=r.match(/[0-9]+/g),o=u&&u[0]>0?u[0]:n.videobox.defaults.width,e=u&&u[1]>0?u[1]:n.videobox.defaults.height,r.match(/autoplay/ig)&&(s=!0)),n.videobox.getVideoHtml(f,o,e,s),this.isValid?(n.videobox.setupUI(this,o,e),!1):!0)},getVideoHtml:function(n,t,i,r){var f,u;this.isValid=!0,n.match(/youtube\.com\/watch/i)?(this.flash=!0,f=n,u=f.split("="),this.videoID=u[1],this.so=new SWFObject("http://www.youtube.com/v/"+this.videoID,"flvvideo",t,this.options.height,"0"),this.so.addParam("wmode","transparent")):n.match(/metacafe\.com\/watch/i)?(this.flash=!0,f=n,u=f.split("/"),this.videoID=u[4],this.so=new SWFObject("http://www.metacafe.com/fplayer/"+this.videoID+"/.swf","flvvideo",t,i,"0"),this.so.addParam("wmode","transparent")):n.match(/google\.com\/videoplay/i)?(this.flash=!0,f=n,u=f.split("="),this.videoID=u[1],this.so=new SWFObject("http://video.google.com/googleplayer.swf?docId="+this.videoID+"&hl=en","flvvideo",t,i,"0"),this.so.addParam("wmode","transparent")):n.match(/ifilm\.com\/video/i)?(this.flash=!0,f=n,u=f.split("video/"),this.videoID=u[1],this.so=new SWFObject("http://www.ifilm.com/efp","flvvideo",t,i,"0","#000"),this.so.addVariable("flvbaseclip",this.videoID+"&"),this.so.addParam("wmode","transparent")):n.match(/\.mov/i)?(this.flash=!1,this.other=navigator.plugins&&navigator.plugins.length?'<object id="qtboxMovie" type="video/quicktime" codebase="http://www.apple.com/qtactivex/qtplugin.cab" data="'+n+'" width="'+t+'" height="'+i+'"><param name="src" value="'+n+'" /><param name="scale" value="aspect" /><param name="controller" value="true" /><param name="autoplay" value="'+r+'" /><param name="bgcolor" value="#000000" /><param name="enablejavascript" value="true" /></object>':'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+t+'" height="'+i+'" id="qtboxMovie"><param name="src" value="'+n+'" /><param name="scale" value="aspect" /><param name="controller" value="true" /><param name="autoplay" value="'+r+'" /><param name="bgcolor" value="#000000" /><param name="enablejavascript" value="true" /></object>'):n.match(/\.wmv/i)||n.match(/\.asx/i)?(this.flash=!1,this.other='<object NAME="Player" WIDTH="'+t+'" HEIGHT="'+i+'" align="left" hspace="0" type="application/x-oleobject" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"><param NAME="URL" VALUE="'+n+'"><param><param NAME="AUTOSTART" VALUE="'+r+'"></param><param name="showControls" value="true"></param><embed WIDTH="'+t+'" HEIGHT="'+i+'" align="left" hspace="0" SRC="'+n+'" TYPE="application/x-oleobject" AUTOSTART="false"></embed></object>'):n.match(/\.flv/i)?(this.flash=!0,this.so=new SWFObject(this.defaults.flvplayer+"?file="+n,"flvvideo",t,i,"0","#000"),this.so.addVariable("autostart",r),this.so.addParam("allowFullScreen","true")):n.match(/\.swf/i)?(this.flash=!0,this.so=new SWFObject(n,"flvvideo",t,i,"0","#000"),this.so.addVariable("autostart",r)):this.isValid=!1}},n(function(){n.videobox.init({})})})(jQuery),$(SetStyles),$(AttachEvents),IE=/*@cc_on!@*/!1,$(document).ready(function(){SetCategoryBoxStyles(),SetHighlightWellStyles()}),$.getQueryString=function(n){var t=new RegExp("[\\?&]"+n+"=([^&#]*)","i").exec(window.location.href);return t?t[1]:""},cookieName="campaign",campaignValue=$.getQueryString(cookieName),createCookie(cookieName,campaignValue,180),cookieVal=readCookie(cookieName)
