// jquery.rian v1.3 
(function(a){a.fn.rianActions=function(b){var b=a.extend({target:"LI",innerTarget:"A",innerTargetLink:"href",innerTargetID:"class",coneElement:"ins",activeClass:"active",pagesClass:".apage"},b||{});a(this).click(function(d){if(d.target.tagName!=b.target){return}d.preventDefault();var c=a(d.target);var f=c.find(b.innerTarget).attr(b.innerTargetLink);if(f){window.location.href=f}else{var g=c.find(b.innerTarget).attr(b.innerTargetID);a("#"+g).toggle();a("#"+g).siblings(b.pagesClass).hide();c.toggleClass(b.activeClass);c.siblings().removeClass(b.activeClass);c.find(b.coneElement).toggle();c.siblings().find(b.coneElement).hide()}})};a.fn.rianFontScale=function(b){var b=a.extend({size1:"12px",size2:"14px",size3:"18px",button1:"size1",button2:"size2",button3:"size3",activeClass:"active"},b||{});var d=a(this);var c=function(){a("#"+b.button1).removeClass(b.acticeClass);a("#"+b.button2).removeClass(b.acticeClass);a("#"+b.button3).removeClass(b.acticeClass)};a("#"+b.button1).click(function(){d.css("font-size",b.size1);c();a(this).addClass(b.activeClass)});a("#"+b.button2).click(function(){d.css("font-size",b.size2);c();a(this).addClass(b.activeClass)});a("#"+b.button3).click(function(){d.css("font-size",b.size3);c();a(this).addClass(b.activeClass)})};a.fn.rianFormHighlight=function(b){var b=a.extend({colorOn:"#f5f5f5",colorOut:"#ffffff"},b||{});a("input[type=text], input[type=password] , textarea, select",this).focus(function(){a(this).css({"background-color":b.colorOn})});a("input[type=text], input[type=password] , textarea, select",this).blur(function(){a(this).css({"background-color":b.colorOut})})};a.fn.rianSlideShow=function(k){var k=a.extend({element:"IMG",autostart:true,delay:"5000",buttons:".buttons",next:".next",prev:".prev",play:".play",stop:".stop",position:".position",positionCurrent:".current",positionTotal:".total",copyright:"copyright",copyrightAttr:"title",copyrightElement:"div"},k||{});var g=a(this);var b=g.find(k.element);var i=b.length;var d=i-1;var h=a("#"+k.copyright);var c=a("#"+k.copyright+" "+k.copyrightElement);a(k.element+":eq(0)",g).removeClass("visible");a(k.element+":eq(0)",g).show();a(k.buttons).show();a(k.position).show();function f(l){a(k.positionCurrent).empty().append(l)}function j(n){if(!n){n=="next"}b.queue("fx",[]);b.stop(true,true);var m=a(k.element+":visible",g);var p=a(k.element,g).index(a(k.element+":visible",g));var l;var o;if(n=="next"){if(p==d){o=0}else{o=p+1}if(typeof(rianSlideShowNext)=="function"){rianSlideShowNext(p,o)}}if(n=="prev"){if(p==0){o=d}else{o=p-1}if(typeof(rianSlideShowPrev)=="function"){rianSlideShowPrev(p,o)}}l=a(k.element+":eq("+o+")",g);nextImageCopyright=a(k.copyrightElement+":eq("+o+")",h);m.css("opacity","1");b.fadeOut("slow");c.hide();f(o+1);l.fadeIn("slow");nextImageCopyright.show()}function e(){g.animate({borderTopWidth:"0"},parseFloat(k.delay),function(){j("next");e()})}a(this).mouseover(function(){a(k.buttons,g).show();a(k.position,g).show()});a(this).mouseout(function(){a(k.buttons,g).hide();a(k.position,g).hide()});a(k.next,g).click(function(){j("next")});a(k.prev,g).click(function(){j("prev")});a(k.play,g).click(function(){e();a(this).css("display","none");a(k.stop,g).css("display","block");if(typeof(rianSlideShowPlay)=="function"){rianSlideShowPlay()}});a(k.stop,g).click(function(){g.queue("fx",[]);g.stop(true,false);a(this).css("display","none");a(k.play,g).css("display","block");if(typeof(rianSlideShowPlay)=="function"){rianSlideShowStop()}});if(k.autostart==true){e();a(k.play,g).css("display","none");a(k.stop,g).css("display","block")}};a.fn.rianTabs=function(b){var b=a.extend({target:"A",targetAttr:"class",activeClass:"active",pagesClass:"div.tabspage"},b||{});a(this).click(function(d){if(d.target.tagName!=b.target){return}d.preventDefault();var c=a(d.target);var f=c.attr(b.targetAttr);a("#"+f).show();a("#"+f).siblings(b.pagesClass).hide();c.parent().siblings().removeClass(b.activeClass);c.parent().addClass(b.activeClass)})}})(jQuery);