﻿if (typeof addthis_widget=="undefined")
{
	var addthis_widget='addthis'; 
}
at12o( );
function at12o( )
{
	addthis_url=encodeURIComponent(addthis_url); 
	addthis_title=encodeURIComponent(addthis_title); 
	addthis_title=addthis_title.replace('\'','\\\''); 
	addthis_pref=encodeURIComponent(addthis_pref);
	var at12Y='<a onmouseover=\"return addthis_onmouseover(this, event, \''+addthis_url+'\', \''+addthis_title+'\', \''+addthis_pub+'\')\" onmouseout=\"addthis_onmouseout()\">'; 
	at12Y+='<img src="'+addthis_pref+'images/btn_RSS.gif" border="0" alt="RSS" /></a>'; 
	document.write(at12Y); 
}
function at12I(at12i)
{
	return document.getElementById(at12i); 
}
function addthis_clearclosewin( )
{
	if (typeof at12A!="undefined")clearTimeout(at12A); 
}
function addthis_onmouseover(at12a,at12E,at12e,at12U,at12u)
{
	addthis_clearclosewin( ); 
	addthis_url=at12e; 
	addthis_title=at12U; 
	addthis_pub=at12u; 

	var at12x=at12a.getElementsByTagName('img'); 
	if (at12x)at12a=at12x[0]; 
	var at12W=at12I('addthis_dropdown'); 
	at12W.style.display='block'; 
	var at12w=at12V(at12a); 
	at12v=at12w[0]+1; 
	at12T=at12w[1]; 
	var at12t=at12S( ); 
	var at12s=at12R( ); 
	if (at12v-at12s[0]-at12W.clientWidth+024>at12t[0])at12v=at12v-0157; 
	if (at12T-at12s[1]+at12W.clientHeight+at12a.clientHeight+024>at12t[1])at12T=at12T-0235; 
	at12W.style.left=(at12v+at12a.clientWidth-at12W.clientWidth)+'px'; 
	at12W.style.top=(at12T+at12a.clientHeight)+'px'; 
	return false; 
}
function addthis_onmouseout( )
{
	addthis_closewinwait( ); 
}
function addthis_closewinwait( )
{
	at12A=setTimeout("addthis_closewin()",0764);
}
function addthis_closewin( )
{
	var at12W=at12I('addthis_dropdown'); 
	at12W.style.display='none'; 
	return false; 
}
function addthis_to(at12r)
{
	addthis_closewin( ); 

	window.open(at12y(at12r)); 
	return false; 
}
function at12y(at12r)
{
	if(at12r=='icio')
	{
		return 'http://del.icio.us/post?url=http://news.iceportal.com/news.xml'
	}
	if(at12r=='newsgator')
	{
		return 'http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http://news.iceportal.com/news.xml'
	}
	if(at12r=='google')
	{
		return 'http://fusion.google.com/add?feedurl=http://news.iceportal.com/news.xml'
	}

	if(at12r=='yahoo')
	{
		return 'http://add.my.yahoo.com/rss?url=http://news.iceportal.com/news.xml'
	}	
	return 'http://www.addthis.com/feed.php?pub=iceportal&h1=http://news.iceportal.com/news.xml&t1='

}
function at12V(at12Q)
{
	var at12q=0,at12P=0; 
	do {
		at12q+=at12Q.offsetTop || 0; 
		at12P+=at12Q.offsetLeft || 0; 
		at12Q=at12Q.offsetParent; 
	}while (at12Q); 
	return [at12P,at12q]; 
}
function at12S( )
{
	var at12p=0; 
	var at12N=0; 
	if (typeof(window.innerWidth)=='number')
	{
		at12p=window.innerWidth; at12N=window.innerHeight; 
	}else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
	{
		at12p=document.documentElement.clientWidth; at12N=document.documentElement.clientHeight; 
	}else if (document.body && (document.body.clientWidth || document.body.clientHeight))
	{
		at12p=document.body.clientWidth; at12N=document.body.clientHeight; 
	}
	return [at12p,at12N]; 
}
function at12R( )
{
	var at12n=0; 
	var at12M=0; 
	if (typeof(window.pageYOffset)=='number')
	{
		at12M=window.pageYOffset; 
		at12n=window.pageXOffset; 
	}else if (document.body && (document.body.scrollLeft || document.body.scrollTop))
	{
		at12M=document.body.scrollTop; 
		at12n=document.body.scrollLeft; 
	}else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop))
	{
		at12M=document.documentElement.scrollTop; 
		at12n=document.documentElement.scrollLeft; 
	}
	return [at12n,at12M]; 
}
function at12m( )
{
	at12L=document.createElement('link'); 
	at12L.rel='stylesheet'; 
	at12L.type='text/css'; 
	at12L.href=addthis_pref+'popup.css'; 
	at12L.media='all'; 
	document.lastChild.firstChild.appendChild(at12L); 
}
function at12l( )
{
	at12m( ); 
	var at12K='<div id="addthis_dropdown" onmouseover="addthis_clearclosewin()" onmouseout="addthis_onmouseout()" style="z-index: 1000; position: absolute; display: none">'; 
	at12K+='<table width="100%" cellpadding="2" cellspacing="0" style="background-color: #EEEEEE; height: 20px">'; 
	at12K+='<tr><td style="font-size: 11px; color: #666666">Available RSS readers</td></tr>'; 
	at12K+='</table>'; 
	at12K+='<table id="addthis_services" width="100%" cellpadding="0" style="font-family: Verdana, Arial; font-size: 11px;">'; 
	
	at12K+='<tr>'; 
	at12K+='<td style="font-size: 3pt">&nbsp;</td>';
	at12K+='</tr><tr>';	
	at12K+='<td><a href="/" target="_blank" onclick="return addthis_to(\'google\')"><img src="'+addthis_pref+'images/rss_google.gif" id="addthis_google" alt="Add to Google" title="Add to Google" width="103" height=\"16\" /></a></td>'; 

	
	at12K+='<td><a href="/" target="_blank" onclick="return addthis_to(\'newsgator\')"><img id="addthis_newsgator" width="91" height="17" border="0" src="'+addthis_pref+'images/rss_newsgator.gif" alt="Add to Newsgator" title="Add to Newsgator"/></a></td>'; 
	at12K+='</tr><tr>'; 
	at12K+='<td style="font-size: 3pt">&nbsp;</td>';
	at12K+='</tr><tr>';	
	at12K+='<td><a href="/" target="_blank" onclick="return addthis_to(\'yahoo\')"><img id="addthis_yahoo" width="91" height="17" border="0" alt="Add to Yahoo" title="Add to Yahoo" src="'+addthis_pref+'images/rss_yahoo.gif" /></a></td>'; 
	at12K+='<td><a href="/" target="_blank" onclick="return addthis_to(\'icio\')"><img id="addthis_icio" width="91" height="17" border="0" src="'+addthis_pref+'images/rss_icio.gif" alt="del.icio.us ICE News" title="Add to del.icio.us"/></a></td>'; 
	at12K+='</tr><tr>'; 
	at12K+='<td style="font-size: 3pt">&nbsp;</td>';
	at12K+='</tr><tr>';	
	at12K+='<td colspan="2" align="center"><a href="/" target="_blank" onclick="return addthis_to(\'other\')"><img id="addthis_other" width="125" height="16" border="0" alt="Other readers" title="Other readers" src="'+addthis_pref+'images/rss_other.gif"></a></td>'; 
	at12K+='</tr>'; 
	at12K+='</table>'; 
	at12K+='<table width="100%" cellpadding="0" cellspacing="0" style="background-color: #EEEEEE; height: 6px; font-size: 10px; color: #777777">'; 
	at12K+='<tr><td colspan="2"></td></tr>'; 
	at12K+='</table>'; 
	at12K+='</div>'; 
	at12k=document.createElement('div'); 
	at12k.innerHTML=at12K; 
	document.body.insertBefore(at12k,document.body.firstChild); 
}
at12l( ); 


