|
$(document).ready(function()
|
|
{
|
|
// Record mouseovers on the banner ad.
|
|
var bnadmoused = false;
|
|
$('#bannerTop').bind('mouseover', function( event )
|
|
{
|
|
if( !bnadmoused )
|
|
{
|
|
bnadmoused = true;
|
|
$.post( 'modules.php',
|
|
{
|
|
name: "Video",
|
|
op: "ad_click",
|
|
ad_id: "bannerTop",
|
|
video_id: "",
|
|
campaign: $.cookie('campaign')
|
|
}
|
|
);
|
|
}
|
|
});
|
|
// Record mouseovers on the banner ad.
|
|
var bnadmoused = false;
|
|
$('#bnad980x120 iframe').bind('mouseover', function( event )
|
|
{
|
|
if( !bnadmoused )
|
|
{
|
|
bnadmoused = true;
|
|
$.post( 'modules.php',
|
|
{
|
|
name: "Video",
|
|
op: "ad_click",
|
|
ad_id: "bnad980x120",
|
|
video_id: "",
|
|
campaign: $.cookie('campaign')
|
|
}
|
|
);
|
|
}
|
|
});
|
|
});
|
|
|
|
function showOnlineFriends()
|
|
{
|
|
window.open( "modules.php?name=YuPeople&action=list_online_friends", "OnlineFriends", "width=400,height=397,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );
|
|
}
|
|
|
|
|
|
// Fix for FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=388714
|
|
var checkIframes = function()
|
|
{
|
|
for (i=0; i<window.frames.length; i++)
|
|
{
|
|
try
|
|
{
|
|
if (window.frames[i].document.location.href !=
|
|
window.frames[i].frameElement.src &&
|
|
!(window.frames[i].document.location.href == document.location.href &&
|
|
window.frames[i].frameElement.src == 'about:blank'))
|
|
{
|
|
window.frames[i].frameElement.src = window.frames[i].frameElement.src;
|
|
}
|
|
} catch(e) {}
|
|
}
|
|
};
|
|
|
|
var userAgent = navigator.userAgent.toLowerCase();
|
|
if (userAgent)
|
|
{
|
|
var browserFirefox = /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent );
|
|
if (browserFirefox)
|
|
{
|
|
//$(document).ready(checkIframes);
|
|
}
|
|
}
|