/*
Contextual Tracker
http://ContextualTracker.wiadomosc.info/

Copyright (C) 2006 Tobiasz 'gosciu' Cudnik
gosc@wiadomosc.info

You can use ContextualTracker free of charge.
Distribution and code reuse NOT permitted.
*/

setTimeout('ct_yahooRun()', 500);

function ct_yahooRun()
{
	var ad = document.getElementsByTagName("iframe");

	for ( var i = 0; i < ad.length; i++ ) {
		if ( ad[i].src.indexOf('ypn-js.overture.com') > -1 ) {
			ct_trackFrame( ad[i], 'ct_yahooClick' );
		}
	}

	if ( i == 0 )
		setTimeout('ct_adsenseRun()', 500);
}

function ct_yahooClick( frameObj )
{
	var data = new Object();

	if ( ct_status )
	{
		if ( ct_status == 'http://publisher.yahoo.com/' ) {
			ct_cancelClick( frameObj );
			return;
		}

		data['ad_url'] = 'http://'+ct_status;
	}

	data['sys'] = "yahoo";
	data['src_title'] = document.title;
	data['src_url'] = self.location;
	data['channel'] = ct_getUrlVar( frameObj.src, 'type');
	data['ad_size'] = frameObj.width+"x"+frameObj.height;
	data['browser'] = ct_browser();

	ct_storeClick( data );
}