$( function()
{
var cHyperlinks = document.getElementsByTagName( "A" );
for ( var i=0; i< cHyperlinks.length; i++ )
{
var eBlock = null;
if ( cHyperlinks[ i ].parentNode.className.indexOf( 'ReadMore' ) >= 0 )
{
eBlock = cHyperlinks[ i ].parentNode.parentNode.parentNode;
}
else
{
continue;
}
eBlock.className = eBlock.className + ' BlockWithHoverEffect';
eBlock.targetPage = cHyperlinks[ i ].href;
eBlock.targetWindow = cHyperlinks[ i ].target;
eBlock.originalOnMouseOver = eBlock.onmouseover;
eBlock.onmouseover = function( e )
{
status = this.targetPage;
this.title = this.targetPage;
if ( this.originalOnMouseOver != null )
this.originalOnMouseOver( e )
}
eBlock.originalOnMouseOut = eBlock.onmouseout;
eBlock.onmouseout = function( e )
{
status = '';
if ( this.originalOnMouseOut != null )
this.originalOnMouseOut( e )
}
eBlock.originalOnClick = eBlock.onclick;
eBlock.onclick = function( e )
{
var target = null;
if ( window.event != null )
e = window.event;
if ( e.srcElement != null )
target = e.srcElement;
else
target = e.target;
if ( target.tagName != null )
{
while ( target.tagName != "BODY" && target.tagName != "A" )
target = target.parentNode;
if ( target.tagName == "A" && this.originalOnClick != null )
return this.originalOnClick( e );
else if ( target.tagName == "A" )
return true;
}
if ( this.targetWindow != '_blank' )
location = this.targetPage;
else
window.open( this.targetPage );
if ( this.originalOnClick != null )
this.originalOnClick( e )
}
}
});
