var dataFileName = "/swf/l_002.swf";
var basePath = "http://tc-gadget.istpika.net/";
var width = "160";
var height = "160";
var title = "Mixiアプリ「時計牧場タイムコレクション」";
var linkURL = "http://mixi.jp/view_appli.pl?id=16725";

function init() {
    ga_str_1 = '<script type="text/javascript">';
    ga_str_1 += 'var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");';
    ga_str_1 += 'document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));';
    ga_str_1 += '</script>';

    document.write(ga_str_1);

    ga_str_2 = '<script type="text/javascript">';
    ga_str_2 += 'try {';
    ga_str_2 += 'var pageTracker = _gat._getTracker("UA-9071923-13");';

    // 設置しているブログのURL(ブログパーツが開かれたページのURL)
    ga_str_2 += 'pageTracker._trackPageview(document.location.href);';

    // ブログパーツのファイル名	
    ga_str_2 += 'pageTracker._trackEvent("BlogWatch", "Load", "l_002_160.js");';

    ga_str_2 += '} catch(err) {}';
    ga_str_2 += '</script>';

    document.write(ga_str_2);
}

function showBlogParts() {
    str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="watch" align="middle">';
    str += '<param name="movie" value="'+basePath+dataFileName+'" />';
    str += '<param name="quality" value="high" />';
    str += '<param name="bgcolor" value="#ffffff" />';
    str += '<embed src="'+basePath+dataFileName+'" quality="high" base="'+basePath+'" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="watch" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_jp" />';
    str += '</object>';
    str += '<div style="font-size:10px;width:'+width+';text-align:center;">Powered by <a href="http://www.istpika.com/" target="_blank">Istpika</a><br><a href="'+linkURL+'" target="_blank" onClick="linkEvent()">'+title+'</a></div>';
    document.write(str);
}

function linkEvent() {
	pageTracker._trackEvent('BlogWatch', 'LinkToAppHome', document.location.href);
}

init();

showBlogParts();
