jQuery(function(){jQuery.yuga.selflink({selfLinkAreaSelector:'#beta-inner',postfix:'_down',changeImgSelf:false,changeImgParents:false});jQuery.yuga.rollover({postfix:'_over'});jQuery.yuga.thickbox();jQuery.yuga.tab();jQuery.yuga.stripe();});jQuery.yuga={Uri:function(path){var self=this;this.originalPath=path;this.absolutePath=(function(){var a=document.createElement('a');a.href=path;return a.href;})();var fields={'schema':2,'username':5,'password':6,'host':7,'path':9,'query':10,'fragment':11};var r=/^((\w+):)?(\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/.exec(this.absolutePath);for(var field in fields){this[field]=r[fields[field]];}
this.querys={};if(this.query){jQuery.each(self.query.split('&'),function(){var a=this.split('=');if(a.length==2)self.querys[a[0]]=a[1];});}},selflink:function(options){var c=jQuery.extend({selfLinkAreaSelector:'body',selfLinkClass:'current',parentsLinkClass:'parentsLink',postfix:'_cr',changeImgSelf:true,changeImgParents:true},options);jQuery(c.selfLinkAreaSelector+((c.selfLinkAreaSelector)?' ':'')+'a[href]').each(function(){var href=new jQuery.yuga.Uri(this.getAttribute('href'));var setImgFlg=false;if((href.absolutePath==location.href.replace(/#.+?$/,''))&&!href.fragment){jQuery(this).addClass(c.selfLinkClass);setImgFlg=c.changeImgSelf;}else if(0<=location.href.search(href.absolutePath)){jQuery(this).addClass(c.parentsLinkClass);setImgFlg=c.changeImgParents;}
if(setImgFlg){jQuery(this).find('img').each(function(){this.originalSrc=jQuery(this).attr('src');this.currentSrc=this.originalSrc.replace(new RegExp('('+c.postfix+')?(\.gif|\.jpg|\.png)$'),c.postfix+"$2");jQuery(this).attr('src',this.currentSrc);});}});},rollover:function(options){var c=jQuery.extend({hoverSelector:'.btn, .allbtn img',groupSelector:'.btngroup',postfix:'_on'},options);var rolloverImgs=jQuery(c.hoverSelector).filter(isNotCurrent);rolloverImgs.each(function(){this.originalSrc=jQuery(this).attr('src');this.rolloverSrc=this.originalSrc.replace(new RegExp('('+c.postfix+')?(\.gif|\.jpg|\.png)$'),c.postfix+"$2");this.rolloverImg=new Image;this.rolloverImg.src=this.rolloverSrc;});var groupingImgs=jQuery(c.groupSelector).find('img').filter(isRolloverImg);rolloverImgs.not(groupingImgs).hover(function(){jQuery(this).attr('src',this.rolloverSrc);},function(){jQuery(this).attr('src',this.originalSrc);});jQuery(c.groupSelector).hover(function(){jQuery(this).find('img').filter(isRolloverImg).each(function(){jQuery(this).attr('src',this.rolloverSrc);});},function(){jQuery(this).find('img').filter(isRolloverImg).each(function(){jQuery(this).attr('src',this.originalSrc);});});function isNotCurrent(i){return Boolean(!this.currentSrc);}
function isRolloverImg(i){return Boolean(this.rolloverSrc);}},thickbox:function(){try{tb_init('a[href$=".jpg"]:not(.thickbox, a[href*="?"]), a[href$=".gif"][href!="?"]:not(.thickbox, a[href*="?"]), a[href$=".png"][href!="?"]:not(.thickbox, a[href*="?"]),a[href$=".JPG"]:not(.thickbox, a[href*="?"]), a[href$=".GIF"][href!="?"]:not(.thickbox, a[href*="?"]), a[href$=".PNG"][href!="?"]:not(.thickbox, a[href*="?"])');}catch(e){}},tab:function(options){var c=jQuery.extend({tabNavSelector:'.tabNav',activeTabClass:'active'},options);jQuery(c.tabNavSelector).each(function(){var tabNavList=jQuery(this).find('a[href^=#], area[href^=#]');var tabBodyList;tabNavList.each(function(){this.hrefdata=new jQuery.yuga.Uri(this.getAttribute('href'));var selecter='#'+this.hrefdata.fragment;if(tabBodyList){tabBodyList=tabBodyList.add(selecter);}else{tabBodyList=jQuery(selecter);}
jQuery(this).unbind('click');jQuery(this).click(function(){tabNavList.removeClass(c.activeTabClass);jQuery(this).addClass(c.activeTabClass);tabBodyList.hide();jQuery(selecter).show();return false;});});tabBodyList.hide()
tabNavList.filter(':first').trigger('click');});},stripe:function(options){var c=jQuery.extend({oddClass:'odd',evenClass:'even'},options);jQuery('ul, ol').each(function(){jQuery(this).children('li:odd').addClass(c.evenClass);jQuery(this).children('li:even').addClass(c.oddClass);});jQuery('table, tbody').each(function(){jQuery(this).children('tr:odd').addClass(c.evenClass);jQuery(this).children('tr:even').addClass(c.oddClass);});},css3class:function(){jQuery('body :first-child').addClass('firstChild');jQuery('body :last-child').addClass('lastChild');jQuery('body :empty').addClass('empty');}};jQuery(function(){jQuery('a[href*=#]').click(function(){var next_url=jQuery(this).attr("href").replace(/#.*/,"");var this_url=location.href.replace(/#.*/,"");if(next_url==""||next_url==this_url){var speed=400;var href=jQuery(this).attr("href").replace(/.*(#.*)/,"$1");var target=jQuery(href=="#"||href==""?'html':href);var position=target.offset().top;jQuery(!jQuery.support.checkOn?'body':(window.navigator.userAgent.toLowerCase().match("chrome\/(1[4-9]|[2-9][0-9])"))?'body':'html').animate({scrollTop:position},speed,'swing');return false;}});});jQuery(document).ready(function(){jQuery(".fade").hover(function(){if(!jQuery.support.opacity){jQuery(this).stop().fadeTo(250,0.5);}
else
{jQuery(this).stop().fadeTo(250,0.5);}},function(){if(!jQuery.support.opacity){jQuery(this).stop().fadeTo(250,1,function(){this.style.removeAttribute("filter");});}
else
{jQuery(this).stop().fadeTo(250,1);}});if(!jQuery.support.opacity){jQuery(".fade > img").hover(function(){jQuery(this).stop().fadeTo(250,0.5);},function(){jQuery(this).stop().fadeTo(250,1);});}
jQuery(".fade-in").stop().fadeTo(1000,0.5);jQuery(".fade-in").hover(function(){jQuery(this).stop().fadeTo(250,1);},function(){jQuery(this).stop().fadeTo(250,0.5);});});jQuery(document).ready(function(){jQuery(".qaArea dt").hover(function(){jQuery(this).css("cursor","pointer");},function(){jQuery(this).css("cursor","default");});jQuery(".qaArea dd").css("display","none");jQuery(".qaArea dt").click(function(){jQuery(this).next().slideToggle("normal");});});jQuery.auto={init:function(){for(module in jQuery.auto){if(jQuery.auto[module].init)
jQuery.auto[module].init();}}};jQuery(document).ready(jQuery.auto.init);jQuery.auto.tabs={init:function(){jQuery('.qaContainer').each(function(){var f=jQuery.auto.tabs.click;var group=this;jQuery('.tab li, li.tab',group).each(function(){this.group=group;jQuery(this).click(f);jQuery('#'+this.id+'_area').hide();}).filter(':first').trigger('click');});},click:function(){var tab=jQuery('#'+this.id+'_area').get(0);jQuery('.tab li, li.tab',this.group).each(function(){jQuery(this).removeClass('active');jQuery('#'+this.id+'_area').hide();});jQuery(this).addClass('active');jQuery(tab).show();this.blur();return false;}};jQuery(document).ready(function(){jQuery(".asset-header-image img").stop().fadeTo(1500,1);});var _ua=(function(){return{ltIE6:typeof window.addEventListener=="undefined"&&typeof document.documentElement.style.maxHeight=="undefined",ltIE7:typeof window.addEventListener=="undefined"&&typeof document.querySelectorAll=="undefined",ltIE8:typeof window.addEventListener=="undefined"&&typeof document.getElementsByClassName=="undefined",IE:document.uniqueID,Firefox:window.sidebar,Opera:window.opera,Webkit:!document.uniqueID&&!window.opera&&!window.sidebar&&!window.orientation&&window.localStorage,Mobile:window.orientation}})();_ua.iOS=window.navigator.userAgent.toLowerCase().match(/ip(hone|od|ad)/);_ua.Android=window.navigator.userAgent.toLowerCase().match(/android/);_ua.WindowsPhone=window.navigator.userAgent.toLowerCase().match(/windows phone/);_ua.Mobile=(function(){if(_ua.iOS||_ua.Android||_ua.WindowsPhone){return true;}
else{return false;}})();

