// JavaScript Document

/**
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
jQuery.cookie=function(w,p,i){if(typeof p!="undefined"){i=i||{};if(p===null){p="";i.expires=-1}var t="";if(i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)){var s;if(typeof i.expires=="number"){s=new Date();s.setTime(s.getTime()+(i.expires*24*60*60*1000))}else{s=i.expires}t="; expires="+s.toUTCString()}var n=i.path?"; path="+(i.path):"";var r=i.domain?"; domain="+(i.domain):"";var x=i.secure?"; secure":"";document.cookie=[w,"=",encodeURIComponent(p),t,n,r,x].join("")}else{var u=null;if(document.cookie&&document.cookie!=""){var o=document.cookie.split(";");for(var q=0;q<o.length;q++){var v=jQuery.trim(o[q]);if(v.substring(0,w.length+1)==(w+"=")){u=decodeURIComponent(v.substring(w.length+1));break}}}return u}};
// Begin
jQuery.fn.fadeToggle=function(a,c,b){return this.animate({opacity:"toggle"},a,c,b)};jQuery(document).ready(function(){jQuery("#spanel").css("opacity","0.5");jQuery("#spanel").hover(function(){jQuery(this).stop().animate({opacity:1},"slow")},function(){var a=jQuery("#s").val();if(a.length>0){}else{jQuery(this).stop().animate({opacity:0.5},"slow")}});jQuery("#spanel_right").click(function(){jQuery("#bottompanel_top").fadeOut(400);jQuery("#bottompanel_main").delay(400).slideDown(500)});jQuery("#bottompanel_close").click(function(){jQuery("#bottompanel_top").slideDown(500);jQuery("#bottompanel_main").slideUp(500)});jQuery("#jtop").css("opacity","0");jQuery(window).scroll(function(){var a=jQuery(window).scrollTop();if(a!=0){jQuery("#jtop").stop().animate({opacity:"0.5"},"slow")}else{jQuery("#jtop").stop().animate({opacity:"0"},"slow")}});jQuery("#jtop").hover(function(b){var a=$(window).scrollTop();if(a!=0){jQuery("#jtop").stop().animate({opacity:"1"},"slow")}},function(b){var a=$(window).scrollTop();if(a!=0){jQuery("#jtop").stop().animate({opacity:"0.5"},"slow")}});jQuery("#searchsubmit").fadeOut(0);jQuery("#s").focus(function(a){jQuery(this).blur(function(){jQuery(this).parents("#spanel").stop().animate({opacity:0.5},"slow")});jQuery(this).keyup(function(d){var b=jQuery(this).val();if(b.length>-1){jQuery(this).parents("#spanel").stop().animate({opacity:1},"slow")}var c=jQuery(this).val();if(c.length>0){jQuery(this).parent().children("#searchsubmit").fadeIn(500)}});jQuery(this).keyup(function(c){var b=jQuery(this).val();if(b.length==0){jQuery(this).parent().children("#searchsubmit").fadeOut(500)}})});jQuery("a[href*=#]").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=$(this.hash);a=a.length&&a||$("[name="+this.hash.slice(1)+"]");if(a.length){var b=a.offset().top;$("html,body").animate({scrollTop:b},1000);return false}}});jQuery(".inside ul li:last-child").css("border-bottom","0px");jQuery(".tabs_js").each(function(){jQuery(this).children("li:first").addClass("selected")});jQuery(".inside > *").hide();jQuery(".inside > *:first-child").show();jQuery(".tabs_js li").click(function(b){var a=jQuery(this).attr("title");jQuery(this).parent().children("li").removeClass("selected");jQuery(this).addClass("selected");jQuery(this).parent().parent().children(".inside").children("*").hide();jQuery(".inside "+a).fadeIn(1000);b.preventDefault()});jQuery("#f_wsqlogo strong,#f_wordpresslogo strong").hide().animate({opacity:"0",left:"-15px",top:"-25px"},0);jQuery("#f_wsqlogo,#f_wordpresslogo").hover(function(){jQuery(this).find("strong").show().animate({opacity:"0.9",left:"-15px",top:"-35px"},400)},function(){jQuery(this).find("strong").animate({opacity:"0",left:"-15px",top:"-25px"},500,function(){jQuery(this).hide()})});jQuery(".post").hover(function(){jQuery(this).find(".sharepanel").animate({opacity:"0",left:"0"},0);jQuery(this).find(".sharepanel").stop().show().animate({opacity:"0.5"},"slow")},function(){jQuery(this).find(".sharepanel").stop().animate({opacity:"0"},"slow");jQuery(this).find(".sharesubdiv").stop().animate({opacity:"0"},"slow")});jQuery(".sharepanel").hover(function(){jQuery(this).stop().show().animate({opacity:"1"},"slow")},function(){jQuery(this).stop().animate({opacity:"0.5"},"slow")});jQuery(".panel_excon").click(function(){jQuery(this).parents(".post").children(".postcontent").stop().fadeToggle("slow");jQuery(this).stop().toggleClass("active");return false});jQuery(".panel_bird").click(function(){jQuery(this).parents(".postpanel").children(".sharesubdiv").stop().animate({opacity:"0",left:"-10px",top:"-200px"},0);jQuery(this).parents(".postpanel").children(".sharesubdiv").stop().show().animate({opacity:"1",left:"-10px",top:"-189px"},"slow");jQuery(this).parents(".postpanel").hover(function(){},function(){jQuery(this).children(".sharesubdiv").stop().animate({opacity:"0",left:"-10px",top:"-200px"},1000)})});jQuery(".comment-reply").css("opacity","0");jQuery(".comment-main").hover(function(){jQuery(this).find(".comment-reply").stop().animate({opacity:"1"},"slow")},function(){jQuery(this).find(".comment-reply").stop().animate({opacity:"0"},"slow")});jQuery(".g_01 li a em").hide().css("opacity","0");jQuery(".g_01 li").hover(function(){jQuery(this).find("a em").show().animate({opacity:1},500)},function(){jQuery(this).find("a em").stop().animate({opacity:"0"},500,function(){jQuery(this).hide()})})});function externallinks(){if(!document.getElementsByTagName){return}var c=document.getElementsByTagName("a");for(var b=0;b<c.length;b++){var a=c[b];if(a.getAttribute("href")&&a.getAttribute("rel")=="external"){a.target="_blank"}}}window.onload=externallinks;