/*\n\n'
+ $('.comment-author', $(this).parents('li div.comment')).html()
+ ':\n\n '
+ $('.comment-content', $(this).parents('li div.comment')).html() + '');
$('#comment').focus();
return false;
})
$("a.reply").live("click", function(){
linkClass = $(this).attr('id');
var pos = linkClass.lastIndexOf('-');
var targetID = linkClass.substr(++pos);
$(".comment.new").hide();
$('#comment_parent').attr('value', targetID);
$("#cancel-reply").show();
$(".comment.new").appendTo('#comment-body-'+targetID).show(0, function(){
// move cursor in textarea, at the end of the text
$('#comment').each(function(){
if (this.createTextRange) {
var r = this.createTextRange();
r.collapse(false);
r.select();
}
$(this).focus();
});
});
return false;
});
$("#cancel-reply").live("click", function (event) {
$(".comment.new").hide();
$('#comment_parent').attr('value','0');
$("#cancel-reply").hide();
$(".comment.new").appendTo('li.new').show(0,function(){
// move cursor in textarea, at the end of the text
$('#comment').each(function(){
if (this.createTextRange) {
var r = this.createTextRange();
r.collapse(false);
r.select();
}
$(this).focus();
});
});
return false;
});
$(".toggle").live("click", function(){
var target = $("."+$(this).attr('rel'), this.parent);
$(target).slideFade('toggle', 333, 'easeOutQuart');
return false;
});
// $(".block ul.menu a").addClass("fadeThis");
if($.support.opacity && window.XMLHttpRequest)
$('.fadeThis').livequery(function(){
$(this).append('').each(function(){
var span = $('> span.hover', this).css('opacity', 0);
$(this).hover(function() { span.stop().fadeTo(200, 1); },
function() { span.stop().fadeTo(800, 0); });
});
});
$(".search-form").each(function(){
form = $(this);
$('a.submit', this).click(function(){
form.submit();
});
});
$('a.tt').bubble();
$('ul[class*="nudge-"] a').each(function(){
var classes = $(this).closest('ul').attr('class');
var amount = parseInt(/amount-(\d+)/.exec(classes)[1], 10);
var direction = /nudge-([^\s]+)/.exec(classes)[1];
$(this).nudge({
property: 'margin' + direction.charAt(0).toUpperCase() + direction.slice(1),
amount: -(amount),
duration: 166
});
});
$(".block-featured .cycle").each(function(index, value){
var count = (index + 1) * 150;
var $$ = $(this),
featured_cycle = function(){
$$.cycle({
fx: 'none',
speed: 500,
pause: true,
prev: '.block-featured a.prev',
next: '.block-featured a.next',
easing: 'easeOutBack',
timeout: 0 });
};
setTimeout(featured_cycle, count);
});
$('a.caption').each(function(){
var title = $(this).attr('title');
$(this).append('
');
$(this).hover(function(){
$(".cover", this).stop().animate({bottom:'0px',opacity:1},{queue:false,duration:200,easing:'easeOutExpo'});
}, function() {
$(".cover", this).stop().animate({bottom:'-100px',opacity:0},{queue:false,duration:300,easing:'easeInExpo'});
});
});
$('a.go-top').each(function(){
var link = $(this);
// link click event
link.click(function () { $('html').animate({ scrollTop: 0 }, 'slow'); return true; });
// window scroll event
$(window).scroll(function(){
//stupid IE hack
if(!jQuery.support.hrefNormalized){
link.css({'position': 'absolute', 'top': $(window).scrollTop() + $(window).height() - 50});
}
if($(window).scrollTop() >= 500) link.fadeIn(200); else link.fadeOut(200);
});
});
jQuery("#instance-atom_recent_comments-3 a.more").click(function(event){
event.preventDefault();
$link = jQuery(this);
$offset = parseInt($link.attr('rel'));
jQuery.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 3,
offset: $offset,
atom_get_comments: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_recent_comments-3 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_recent_comments-3').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-2 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 2,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-2 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-2').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-4 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 4,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-4 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-4').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-5 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 5,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-5 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-5').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-6 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 6,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-6 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-6').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-7 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 7,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-7 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-7').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-9 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 9,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-9 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-9').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-10 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 10,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-10 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-10').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
$("#instance-atom_posts-11 a.more").click(function(event){
event.preventDefault();
$link = $(this);
$offset = parseInt($link.attr('rel'));
$.ajax({
type: "GET",
url: "https://metalhangar18.com",
data: { instance: 11,
offset: $offset,
atom_get_posts: 1 },
beforeSend: function() { $link.addClass("loading"); },
complete: function() { $link.removeClass("loading"); },
success: function(response){
var obj = eval('('+response+')');
// append to list & update tab container height (if we're inside a tabbed widget)
if(obj.output != '')
jQuery(obj.output).appendTo("#instance-atom_posts-11 ul").hide().each(function(i){
jQuery(this).delay(500*i).animate(
{
"opacity": "show",
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{ duration: 333,
step: function(now, fx){
$link.parents('li.block .sections').height(($link.parents('#instance-atom_posts-11').height()) + 5);
}
});
});
$link.attr('rel', obj.offset);
// no more data?
if(!obj.more) $link.hide();
}
});
return false;
});
});
/* ]]> */