/* 
   This Javascript code was generated by Jemplate, the Javascript
   Template Toolkit. Any changes made to this file will be lost the next
   time the templates are compiled.

   Copyright 2006 - Ingy döt Net - All rights reserved.
*/

if (typeof(Jemplate) == 'undefined')
    throw('Jemplate.js must be loaded before any Jemplate template files');

Jemplate.templateMap['clip.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<div class="w';
//line 1 "clip.tt"
output += stash.get('width');
output += 'BG';
//line 1 "clip.tt"
output += stash.get('class');
output += ' loc';
//line 1 "clip.tt"
output += stash.get('loc');
output += ' h';
//line 1 "clip.tt"
output += stash.get('height');
output += '">\n\n<div class="wTOP">\n<div class="wBOTTOM">\n<h3 class="clipTITLE">';
//line 5 "clip.tt"
if (stash.get('link')) {
output += '<a href="';
//line 5 "clip.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('link');

    return context.filter(output, 'html', []);
})();

output += '" title="';
//line 5 "clip.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('title');

    return context.filter(output, 'html', []);
})();

output += '">';
}

//line 5 "clip.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('title');

    return context.filter(output, 'html', []);
})();

//line 5 "clip.tt"
if (stash.get('link')) {
output += '</a>';
}

output += '</h3>\n\n<div id="clipBODY_';
//line 7 "clip.tt"
output += stash.get('id');
output += '"></div>\n\n</div>\n</div>\n</div>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['clip_body.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<div class="clipWRAP2">\n';
//line 2 "clip_body.tt"
stash.set('i', 0);
output += '\n';
//line 28 "clip_body.tt"

// FOREACH 
(function() {
    var list = stash.get('clips');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['c'] = value;
output += '\n\n';
//line 5 "clip_body.tt"
stash.set('c_class', stash.get(['c', 0, 'match', [ 'class:[^ ]+' ]]));
output += '\n';
//line 6 "clip_body.tt"
stash.set('c_title', stash.get(['c', 0, 'match', [ 'title:[^ ]+' ]]));
output += '\n';
//line 7 "clip_body.tt"
stash.set('c_link', stash.get(['c', 0, 'match', [ 'link:[^ ]+' ]]));
output += '\n\n';
//line 13 "clip_body.tt"
if ((stash.get('i') % stash.get('width') == 0)) {
output += '\n<div class="mainBOX2">\n';
}
else {
output += '\n<div class="mainBOX">\n';
}

output += '\n\n';
//line 17 "clip_body.tt"
if ((stash.get(['clip', 0, 'id', 0, 'match', [ 'f' ]]) && stash.get('c_class'))) {
output += '\n<h4 class="mainTIT';
//line 16 "clip_body.tt"
output += stash.get(['c_class', 0, 0, 0, 'replace', [ 'class:', '' ]]);
output += '">';
//line 16 "clip_body.tt"
output += stash.get(['c_title', 0, 0, 0, 'replace', [ 'title:', '' ]]);
output += '</h4>\n';
}

output += '\n';
//line 18 "clip_body.tt"
output += stash.get('c');
output += '\n</div>\n\n';
//line 21 "clip_body.tt"
stash.set('i', stash.get('i') + 1);
output += '\n\n';
//line 26 "clip_body.tt"
if ((stash.get('i') % stash.get('width') == 0 && stash.get('i') != stash.get(['clips', 0, 'size', 0]))) {
output += '\n</div>\n<div class="clipWRAP">\n';
}

output += '\n\n';;
            retval = list.get_next();
            var value = retval[0];
            var done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n</div>\n\n<div class="clipSORT">';
//line 32 "clip_body.tt"
if (stash.get('pager')) {
//line 31 "clip_body.tt"
if (stash.get(['clip', 0, 'link', 0])) {
output += '<a href="';
//line 31 "clip_body.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get(['clip', 0, 'link', 0]);

    return context.filter(output, 'html', []);
})();

output += '" title="';
//line 31 "clip_body.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get(['clip', 0, 'title', 0]) || '';

    return context.filter(output, 'html', []);
})();

output += '" class="nBDR">一覧</a>';
}

//line 32 "clip_body.tt"
if (stash.get(['pager', 0, 'current_page', 0]) > 1) {
output += '<img src="/image/common/p_l.gif" alt="前へ" name="p_l_';
//line 31 "clip_body.tt"
output += stash.get('id');
output += '" width="8" height="15" class="cL csrPONT" id="p_l_';
//line 31 "clip_body.tt"
output += stash.get('id');
output += '" onmouseover="MM_swapImage(\'p_l_';
//line 31 "clip_body.tt"
output += stash.get('id');
output += '\',\'\',\'/image/common/p_l_f2.gif\',1)" onmouseout="MM_swapImgRestore()" onclick="Clip.';
//line 31 "clip_body.tt"
output += stash.get('myclip') ? 'MyClip' : 'Home';
output += '.renderBody(\'';
//line 31 "clip_body.tt"
output += stash.get('id');
output += '\', ';
//line 31 "clip_body.tt"
output += stash.get(['pager', 0, 'current_page', 0]) - 1;
output += '); Clip.';
//line 31 "clip_body.tt"
output += stash.get('myclip') ? 'MyClip' : 'Home';
output += '.updatehash(); return false" />';
}
else {
output += '<img src="/image/common/p_l_off.gif" class="cL" alt="前へ" width="8" height="15" />';
}

//line 32 "clip_body.tt"
if (stash.get(['pager', 0, 'last', 0]) < stash.get(['pager', 0, 'total_entries', 0])) {
output += '<img src="/image/common/p_r.gif" alt="次へ" name="p_r_';
//line 32 "clip_body.tt"
output += stash.get('id');
output += '" width="8" height="15" class="cR csrPOINT" id="p_r_';
//line 32 "clip_body.tt"
output += stash.get('id');
output += '" onmouseover="MM_swapImage(\'p_r_';
//line 32 "clip_body.tt"
output += stash.get('id');
output += '\',\'\',\'/image/common/p_r_f2.gif\',1)" onmouseout="MM_swapImgRestore()" onclick="Clip.';
//line 32 "clip_body.tt"
output += stash.get('myclip') ? 'MyClip' : 'Home';
output += '.renderBody(\'';
//line 32 "clip_body.tt"
output += stash.get('id');
output += '\', ';
//line 32 "clip_body.tt"
output += stash.get(['pager', 0, 'current_page', 0]) + 1;
output += '); Clip.';
//line 32 "clip_body.tt"
output += stash.get('myclip') ? 'MyClip' : 'Home';
output += '.updatehash(); return false" />';
}
else {
output += '<img src="/image/common/p_r_off.gif" alt="次へ" width="8" height="15" class="cR" />';
}

}

output += '</div>\n\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['clip_selecter.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<ul>\n';
//line 4 "clip_selecter.tt"

// FOREACH 
(function() {
    var list = stash.get('myclips');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['clip'] = value;
output += '\n<li';
//line 3 "clip_selecter.tt"
if (stash.get(['clip', 0, 'is_selected', 0])) {
output += ' class="selected"';
}

output += '><a href="#" onclick="Clip.Home.change(';
//line 3 "clip_selecter.tt"
output += stash.get(['clip', 0, 'id', 0]);
output += '); return false">';
//line 3 "clip_selecter.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get(['clip', 0, 'title', 0]);

    return context.filter(output, 'html', []);
})();

output += '</a></li>\n';;
            retval = list.get_next();
            var value = retval[0];
            var done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n</ul>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['clipfav.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<div class="w';
//line 1 "clipfav.tt"
output += stash.get('width');
output += 'BG';
//line 1 "clipfav.tt"
output += stash.get('class');
output += ' loc';
//line 1 "clipfav.tt"
output += stash.get('loc');
output += ' h';
//line 1 "clipfav.tt"
output += stash.get('height');
output += '">\n\n<div class="wTOP">\n<div class="wBOTTOM">\n<h3 class="clipTITLE">';
//line 5 "clipfav.tt"
if (stash.get('link')) {
output += '<a href="';
//line 5 "clipfav.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('link');

    return context.filter(output, 'html', []);
})();

output += '" title="';
//line 5 "clipfav.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('title');

    return context.filter(output, 'html', []);
})();

output += '">';
}

//line 5 "clipfav.tt"

// FILTER
output += (function() {
    var output = '';


// FILTER
output += (function() {
    var output = '';

output += stash.get('title');

    return context.filter(output, 'truncate', [ 10 ]);
})();


    return context.filter(output, 'html', []);
})();

//line 5 "clipfav.tt"
if (stash.get('link')) {
output += '</a>';
}

output += '</h3>\n\n<div id="clipBODY_';
//line 7 "clipfav.tt"
output += stash.get('id');
output += '"></div>\n\n</div>\n</div>\n</div>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['clipprofile.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<div class="w';
//line 1 "clipprofile.tt"
output += stash.get('width');
output += 'BG';
//line 1 "clipprofile.tt"
output += stash.get('class');
output += ' loc';
//line 1 "clipprofile.tt"
output += stash.get('loc');
output += ' h';
//line 1 "clipprofile.tt"
output += stash.get('height');
output += '">\n<h3>';
//line 2 "clipprofile.tt"
if (stash.get('link')) {
output += '<a href="';
//line 2 "clipprofile.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('link');

    return context.filter(output, 'html', []);
})();

output += '" title="';
//line 2 "clipprofile.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('title');

    return context.filter(output, 'html', []);
})();

output += '">';
}

//line 2 "clipprofile.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get('title');

    return context.filter(output, 'html', []);
})();

//line 2 "clipprofile.tt"
if (stash.get('link')) {
output += '</a>';
}

output += '</h3>\n\n<div id="clipBODY_';
//line 4 "clipprofile.tt"
output += stash.get('id');
output += '"></div>\n\n</div>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['clips.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
//line 3 "clips.tt"

// FOREACH 
(function() {
    var list = stash.get('clips_html');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['clip'] = value;
output += '\n';
//line 2 "clips.tt"
output += stash.get('clip');
output += '\n';;
            retval = list.get_next();
            var value = retval[0];
            var done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

Jemplate.templateMap['myclip_selecter.tt'] = function(context) {
    if (! context) throw('Jemplate function called without context\n');
    var stash = context.stash;
    var output = '';

    try {
output += '<ul>\n';
//line 4 "myclip_selecter.tt"

// FOREACH 
(function() {
    var list = stash.get('myclips');
    list = new Jemplate.Iterator(list);
    var retval = list.get_first();
    var value = retval[0];
    var done = retval[1];
    var oldloop;
    try { oldloop = stash.get('loop') } finally {}
    stash.set('loop', list);
    try {
        while (! done) {
            stash.data['clip'] = value;
output += '\n<li';
//line 3 "myclip_selecter.tt"
if (stash.get(['clip', 0, 'is_selected', 0])) {
output += ' class="selected"';
}

output += '><a href="#" onclick="Clip.MyClip.change(';
//line 3 "myclip_selecter.tt"
output += stash.get(['clip', 0, 'id', 0]);
output += '); return false">';
//line 3 "myclip_selecter.tt"

// FILTER
output += (function() {
    var output = '';

output += stash.get(['clip', 0, 'title', 0]);

    return context.filter(output, 'html', []);
})();

output += '</a></li>\n';;
            retval = list.get_next();
            var value = retval[0];
            var done = retval[1];
        }
    }
    catch(e) {
        throw(context.set_error(e, output));
    }
    stash.set('loop', oldloop);
})();

output += '\n</ul>\n';
    }
    catch(e) {
        var error = context.set_error(e, output);
        throw(error);
    }

    return output;
}

