﻿
function tip_friends(blogid) {

    try {
        document.getElementById('ctl00_ContentPlaceHolderMain_ctl01_m_blogfolderid').value = blogid;
    }
    catch (err) {
        document.getElementById('ctl00_ContentPlaceHolderMain_BlogList1_m_blogfolderid').value = blogid;
    }
    $find('popup_tipfriend').show();
}




function mycarousel_itemLoadCallback_1(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_1.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_1(gallery_large_1[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_1(item, no) {
    var url_m = gallery_large_1[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};

function mycarousel_itemLoadCallback_2(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_2.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_2(gallery_large_2[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_2(item, no) {
    var url_m = gallery_large_2[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};
function mycarousel_itemLoadCallback_3(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_3.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_3(gallery_large_3[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_3(item, no) {
    var url_m = gallery_large_3[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};

function mycarousel_itemLoadCallback_4(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_4.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_4(gallery_large_4[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_4(item, no) {
    var url_m = gallery_large_4[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};
function mycarousel_itemLoadCallback_5(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_5.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_5(gallery_large_5[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_5(item, no) {
    var url_m = gallery_large_5[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};
function mycarousel_itemLoadCallback_6(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_6.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_6(gallery_large_6[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_6(item, no) {
    var url_m = gallery_large_6[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};
function mycarousel_itemLoadCallback_7(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_7.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_7(gallery_large_7[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_7(item, no) {
    var url_m = gallery_large_7[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};
function mycarousel_itemLoadCallback_8(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_8.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_8(gallery_large_8[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_8(item, no) {
    var url_m = gallery_large_8[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};
function mycarousel_itemLoadCallback_9(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_9.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_9(gallery_large_9[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_9(item, no) {
    var url_m = gallery_large_9[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};
function mycarousel_itemLoadCallback_10(carousel, state) {
    for (var i = carousel.first; i <= carousel.last; i++) {
        if (carousel.has(i)) { continue; }
        if (i > gallery_thumb_10.length) { break; }
        var item = jQuery(mycarousel_getItemHTML_10(gallery_large_10[i - 1], i - 1)).get(0);
        tb_init(item);
        carousel.add(i, item);
    }
};
function mycarousel_getItemHTML_10(item, no) {
    var url_m = gallery_large_10[no].url;
    return '<a href="' + url_m + '" title="' + item.title + '"><img src="' + item.url + '" width="160" height="160" border="0" alt="' + item.title + '" /></a>';
};