function Yetii(){for( var n in this.defaults={id:null,active:1,interval:null,wait:null,persist:null,tabclass:"tab",activeclass:"active",callback:null,leavecallback:null},this.activebackup=null,arguments[0] )this.defaults[n]=arguments[0][n];this.getTabs=function(){for( var retnode=[],elem=document.getElementById( this.defaults.id ).getElementsByTagName( "*" ),regexp=new RegExp( "( ^|\\s )"+this.defaults.tabclass.replace( /\-/g,"\\-" )+"( \\s|$ )" ),i=0;ithis.tabs.length&&( this.defaults.active=1 );var self=this;this.defaults.wait&&clearTimeout( this.timer2 ),this.timer1=setTimeout( function(){self.rotate( interval )},1e3*interval )},this.next=function(){var _target=this.defaults.active+1>this.tabs.length?1:this.defaults.active+1;this.show( _target ),this.defaults.active=_target},this.previous=function(){var _target=this.defaults.active-1==0?this.tabs.length:this.defaults.active-1;this.show( _target ),this.defaults.active=_target},this.previous=function(){this.defaults.active--,this.defaults.active||( this.defaults.active=this.tabs.length ),this.show( this.defaults.active )},this.gup=function( name ){name=name.replace( /[\[]/,"\\[" ).replace( /[\]]/,"\\]" );var results=new RegExp( "[\\?&]"+name+"=( [^&#]* )" ).exec( window.location.href );return null==results?null:results[1]},this.parseurl=function( tabinterfaceid ){var result=this.gup( tabinterfaceid );if ( null==result )return null;if ( parseInt( result ) )return parseInt( result );if ( document.getElementById( result ) )for( var i=0;i' ):( his.style.display="table-row",me.innerHTML='hide' )}function aweaver_media_lib( fillarea ){aweaver_fillin=fillarea,tb_show( "","media-upload.php?post_id=0&type=image&TB_iframe=true&width=800&height=600" )}var aweaver_fillin;jQuery( document ).ready( function(){window.send_to_editor=function( html ){imgurl=jQuery( "img",html ).attr( "src" ),jQuery( "#"+aweaver_fillin ).val( imgurl ),tb_remove(),jQuery( "#"+aweaver_fillin ).focus()}} ),jQuery.fn.copyme=function(){jQuery( 'span[id^="success-alert"]' ).remove(),this.select(),jQuery( this ).focus(),document.execCommand( "copy" ),document.getSelection().removeAllRanges(),jQuery( this ).after( '
Copied to clipboard
' ),jQuery( "#success-alert" ).css( "color","green" )};