

//***************************************************************
// Initialize links w/ mouseovers & mouseouts
//***************************************************************

function initButtonAndBubble()
{
	var home_h1   = document.getElementsByTagName('h1')[0];
	var home_link = home_h1.getElementsByTagName('a')[0];
	var bubble    = document.getElementById('bubble').getElementsByTagName('p')[0];
	var wisdom    = new Array();
	
	wisdom[0]  = 'I want to be on you';
	wisdom[1]  = 'Yipee-Kai-Yay, Mr. Falcon';
	wisdom[2]  = 'Brad is not Zach Klein';
	wisdom[3]  = 'I\'m a loner, Dottie. A rebel.';
	wisdom[4]  = 'There is only Zeul!';
	wisdom[5]  = 'You need me to make you a mix tape?';
	wisdom[6]  = 'Squeeze the juice';
	wisdom[7]  = 'Ain\'t no trip to Cleveland';
	wisdom[8]  = 'I am Jack\'s smirking revenge';
	wisdom[9]  = '2.0? Perhaps. 3.0? Doubt it.';
	wisdom[10] = 'That\'s that, Mattress Man';
	wisdom[11] = 'Let\'s call this the comeback';
	wisdom[12] = 'Tonite, make me unstoppable';
	wisdom[13] = 'How it feels to be something on';
	wisdom[14] = 'Bigger posts. Bigger headshots.';
	wisdom[15] = 'That\'s what she said';
	wisdom[16] = 'I want to live in Woolloomooloo';
	wisdom[17] = 'I\'m highly Googleable';
	wisdom[18] = 'Screamo scares us';
	wisdom[19] = 'We employ dismissing hand gestures';
	wisdom[20] = 'Christmas Jesus is my favorite';
	wisdom[20] = 'Keegan is not Zach Klein, either';
	wisdom[21] = 'It\'s fictional freak-show!';
	wisdom[22] = 'THUNDERCATS ARE GO!!!';
	wisdom[23] = 'slow and steady wins the race...';
	wisdom[24] = 'BEAT L.A.';
	wisdom[25] = 'Celtics 131, Lakers 92';
	
	var getWisdom = wisdom[getRandom(wisdom.length)];
	bubble.innerHTML = getWisdom;
	//bubble.innerHTML = wisdom[24];

	var ad_spot = document.getElementById('block_ad');
	
	if (ad_spot)
	{
		var advert = new Array();
		if (ad_spot.className == 'subpage_ad')
		{
			//advert[0] = '<div id="cottyn_noob"><a href="http://www.cottyn.com">Cottyn. We make T-shirts. For your body.</a></div>';
		}
		else
		{
			//advert[0] = '<div id="sxsw_pc"><a href="https://secure.sxsw.com/peoples_choice/">SXSW People\'s Choice Awards</a></div>';
		}
		//advert[0] = '<div id="sxsw_pc"><a href="https://secure.sxsw.com/peoples_choice/">SXSW People\'s Choice Awards</a></div>';
                //advert[0] = '<div id="hello"><a href="/posts/hello-its-good-to-be-back/">Hello, it\'s good to be back.</a></div>';
		//advert[1] = '<div id="krop"><a href="http://www.krop.com/?krop_affiliate=t6g6">Krop - Creative and Tech Jobs</a></div>';
		advert[0] = '<div id="aj_2009"><a href="http://authenticjobs.com/post/">Authentic Jobs New Year Promotion</a></div>';
		//advert[1] = '<div id="itrapped"><a href="http://www.itrapped.com">iTrapped. It\'s crazy tiny inside an iPhone.</a></div>';
		//advert[2] = '<div id="cottyn_noob"><a href="http://www.cottyn.com">Cottyn. We make T-shirts. For your body.</a></div>';
		//advert[3] = '<div id="cottyn_twitter"><a href="http://www.cottyn.com">Cottyn. We make T-shirts. For your body.</a></div>';
		//advert[4] = '<div id="cottyn_noob"><a href="http://www.cottyn.com">Cottyn. We make T-shirts. For your body.</a></div>';
		//advert[5] = '<div id="cottyn_noob"><a href="http://www.cottyn.com">Cottyn. We make T-shirts. For your body.</a></div>';
		//advert[6] = '<div id="cottyn_humanicon"><a href="http://www.cottyn.com">Cottyn. We make T-shirts. For your body.</a></div>';
		
		var getAdvert = advert[getRandom(advert.length)];
		ad_spot.innerHTML = getAdvert;
	}

	if (home_link)
	{
		home_link.onmouseover = function()
		{
			bubble.innerHTML = 'GO HOME?';
		}
		home_link.onmouseout = function()
		{
			bubble.innerHTML = getWisdom;
		}
	}
}

function getRandom(total)
{
    var ranNum = Math.floor(Math.random()*total);
    return ranNum;
}


//
//
//

<!--
google_ad_client = 'pub-2496626852869849';
google_ad_channel = '8516013560';
google_ad_output = 'js';
google_max_num_ads = '1';
google_kw_type = "broad";
google_kw = "iphone";

function google_ad_request_done(google_ads)
{

    var s = '';
    var i;

    /* Verify that there are actually ads to display. */

    if (google_ads.length == 0)
    {
        return;
    }
    else
    {
        if (google_ads.length == 1)
        {
  
            /* Partners should adjust text sizes so ads occupy the majority of ad space. */
            s += '<span style="line-height:100%; font-family: Helvetica, Arial, Verdana, sans-serif;"><a href="' + google_ads[0].url + '" ' +
                           'onmouseout="window.status=\'\'" ' +
                           'onmouseover="window.status=\'go to ' +
                           google_ads[0].visible_url + '\'" ' +
                           'style="text-decoration:none;">' +
                           '<span style="display:block; text-align:center; font-size:20px; color:#fff; letter-spacing:0; padding:85px 0 10px 0; text-decoration:underline;">' +
                           '<b>' + google_ads[0].line1 + '</b><br></span>' + 
                           '<span style="display:block; text-align:center; color:#90b0d2;font-size:13px; line-height:130%; padding: 0 15px 3px 15px;">' +
                           google_ads[0].line2 + '<br>' +
                           google_ads[0].line3 + '<br></span>' +
                           '<span style="display:block; text-align:center; color:#9fe722;font-size:13px; text-decoration:underline; padding: 0 0 65px 0; line-height:140%;">' +
                           google_ads[0].visible_url + '<br></span>' + 
                           '<span style="display:block; text-align:left; color:#90b0d2; font-size:10px; text-decoration:underline; padding: 0 0 0 6px;">Ads by Google</span></a></span>';
        }
    }

    document.write(s);
    return;
}

// -->


//***************************************************************
// Initialize onLoad
//***************************************************************

window.onload = function() 
{
	initButtonAndBubble();
}