jQuery.cookie=function(key,value){if(arguments.length>1&&(value===null||typeof value!=="object")){var cookietime=new Date();cookietime.setTime(2147483647000);return(document.cookie=[encodeURIComponent(key),'=',encodeURIComponent(String(value)),'; expires='+cookietime.toGMTString()].join(''));}var result;return(result=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie))?decodeURIComponent(result[1]):null;};$(document).ready(function(){$('.terminal_').append('<span class="con_" id="con_2"></span>').append('<span class="con_" id="con_1"></span>');var cookie=$.cookie('andis_options');if(cookie!==null){var term_sel=cookie.slice(-1);}else{var term_sel=1;var cookie="..0.1";}if(term_sel==2){$('#term_1').hide();$('#term_2').show();$('#con_1').hide();$('#con_2').show();}$('.con_').bind('click',function(){term_sel==2?term_sel=1:term_sel=2;if(term_sel==2){$('#term_1').fadeOut(300);$('#term_2').fadeIn(300);$('#con_1').fadeOut(300);$('#con_2').fadeIn(300);}else{$('#term_2').fadeOut(300);$('#term_1').fadeIn(300);$('#con_2').fadeOut(300);$('#con_1').fadeIn(300);}$.cookie('andis_options',cookie.slice(0,-1)+term_sel);});$('.con_').bind('mouseover',function(){$('#con_1').css('background-position','0 -22px');$('#con_2').css('background-position','-22px -22px');});$('.con_').bind('mouseout',function(){$('#con_1').css('background-position','0 0');$('#con_2').css('background-position','-22px 0');});});

