/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
 */
function externalLinks()
{
    if (!document.getElementsByTagName) return;

    var anchors = document.getElementsByTagName("a");

    for ( var i=0; i < anchors.length; i++ )
    {
        var anchor = anchors[i];

        if ( anchor.getAttribute("href") && anchor.getAttribute("class") == "fork" )
        {
            if ( anchor.getAttribute("className") )
            {
                anchor.target = anchor.getAttribute("className");
            }
            else
            {
                anchor.target = "_blank";
            }
        }
    }
}

function writit()
{
	text = '<iframe src=\"http://www.google.com/calendar/embed?src=gfc.webservant%40gmail.com&amp;title=GFC%20Calendar&amp;chrome=NONE&amp;mode=AGENDA&amp;wkst=1&amp;height=557\" style=\" border-width:0\" width=\"640\" frameborder=\"0\" height=\"557\"></iframe>';
	if (document.getElementById)
	{
		x = document.getElementById('whatsnew');
		x.innerHTML = '';
		x.innerHTML = text;
	}
	else if (document.all)
	{
		x = document.all['whatsnew'];
		x.innerHTML = text;
	}

}
