﻿eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('g 6={};g k=Y;6.8=Y;g 15=1F.1E;g 1a=15.1G("1H.1I.16/1D/1C/",0);9(1a<0){1y.D("1x 1z");k=0}$(2(){$("#1w").1B(2(){L({"4":$("#4").1J()});$("#4").1K();f Q});$("#1T > a").j(2(){$("#e").7();m({"n":14.1S,"c":1})});$("#1U").j(2(){$("#e").7();9(6.c<=1)f;m({"c":6.c-1})});$("#1V").j(2(){$("#e").7();9(6.c*k+1>6.8)f;m({"c":6.c+1})});$("#1W").j(2(){$("#s > 12").7();$("#e").7();$("#B").7()});$("#4").1R()});2 L(5){$("#e").7();1Q(g i=0;i<3;i++){E({"4":5.4,"c":i+1,"n":"13","H":Q})}}2 m(5){$("#e").7();9($("#s z").1M()==0)f;E($.O({},6,5,{"H":Z}))}2 E(5){9(5==A)f;9(5.4==A||5.4.1d==0){D("&#I;&#K;&#J;&#u;&#W;&#u;&#U;&#1L;&#1N;&#1O;&#P;&#1P;&#1X;&#1n;&#1i;&#1g;&#N;");f}g d=(5.c-1)*k+1;$.O(6,5);$("#V").p("1j...");$.1f({1v:"1r",o:{"1k":5.4,"n":5.n,"1t-d":d,"1u-1q":k,"1s":"1o-1m-1l"},1p:Z,G:"1h://1A.27.16/2t/2u/e",2v:2(o){6.8=2w(o.M.2s$2r.$t,10);19(d,6.8);9(6.8<d){f}9(6.8==0){D("&#I;&#K;&#J;&#u;&#W;&#u;&#U;&#2o;&#2p;&#2q;&#2x;&#2y;&#2F;&#2G;&#2H;&#2I;&#2E;&#2D;&#2z;&#2A;&#2B;&#1Y;&#2C;&#P;&#2m;&#N;");f}$.2l(o.M.26,2(i,h){g v=h.w$v;$("<28/>").r("R").b($("<l/>").F("C",v.w$R[0].G)).b("<y/>").b(h.29.$t).b("<y/>").b($("<17/>").r("24").p(1b("%1Z%21%22%23%2a%20")+((h.T$S==A)?"0":h.T$S.2b))).j(2(){2i(v.w$2j[0].G,\'2k\')}).2h("#e")});$("#V").7();9(!5.H){X($("#e l:2g").2c(),5.4)}}})}2 19(d,8){$("#B").p(((8==0)?0:d)+" - "+(d+k>8?8:d+k-1)+" / "+8+1b("%2d"))}2 X(l,4){g q=$.2e($("#s z"),2(h,d){f($(h).1c(".18").p()==4)});9(q.1d==0){$("<z/>").b(l).b("<y/>").b($("<17/>").r("18").b(4)).b($("<a/>").r("2f").b("[x]").j(2(){$(14).1e().25();9(6.4==4){$("#e").7();$("#B").7()}})).j(2(){m({"4":4,"c":1,"n":"13"})}).11("#s > 12")}2n{$(q).11($(q).1e()).1c("l").F("C",l.F("C"))}}',62,169,'||function||keyword|cond|searchCond|empty|total|if||append|page|index|videos|return|var|item||click|VIEW_COUNT|img|searchHistory|orderby|data|text|exists|addClass|history||12540|group|media||br|li|null|result|src|alert|search|attr|url|fromHistory|26908|12461|32034|searchNew|feed|12290|extend|12375|false|thumbnail|statistics|yt|12489|loading|12527|addHistory|48|true||prependTo|ul|relevance|this|currentURL|com|span|key|showTotal|urlCheck|unescape|children|length|parent|ajax|12356|http|12373|Loading|vq|script|in|12384|json|cache|results|jsonp|alt|start|max|dataType|frmSearch|Invalid|window|Request|gdata|submit|anriyugo|home|href|location|indexOf|www47|tok2|val|select|12434|size|20837|21147|12390|for|focus|id|sort|back|next|clear|12367|12435|u8868||u793A|u56DE|u6570|info|remove|entry|youtube|div|title|3A|viewCount|clone|u4EF6|grep|del|first|appendTo|jump_url_youtube|player|aff_youtube|each|12383|else|12395|12510|12483|totalResults|openSearch|feeds|api|success|parseInt|12481|12377|12426|12414|12379|12391|12354|12399|12427|12499|12487|12458'.split('|')))

//-----------------------------------------------------second part ends-------------------------------------------------------


function loadYoutube(intKW){
	
	for (var i = 0; i < 3; i++){
        search({
            "keyword":intKW,
            "page": i + 1,
            "orderby": "relevance",
            "fromHistory": false
        	});
	}

}


//************ jump url with youtube **********************************************************************************
function jump_url_youtube(url, urchin_url)
{

	var visit_flag = $.cookie('visited');	

	if (visit_flag != 'check') {
		var win2 = window.open('http://pt.afl.rakuten.co.jp/c/060e9854.e144626f/?url=http%3a%2f%2fwww.rakuten.co.jp%2f','sub','width=300,height=200,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0');
		win2.blur();		
		pageTracker._trackPageview(urchin_url);
		$.cookie('visited', 'check', { expires: 3 });	
	}
	var youtubeURL = window.open(url);
	youtubeURL.focus();
	
}


/**
 * Cookie plugin
 *
 * 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
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};
