// JavaScript Document

function modifyFooter ()
{
	
	// Properties
	var footer = document.getElementById ( 'footer' );
	
	function getActuallyYear ( )
    {
        var date   = new Date ();
		var year   = date.getFullYear();
    		//year = 2010;	/* for debug */
			//alert ( year ); /* for debug */
		    
		return year;		
    }
	
	function getSiteIdentifier ( )
    {
        var result = null;   
        if ( document.location.href.match ( /\/b2b\/it\/en\/(\w+)/i ) ) result = RegExp.$1;
		
		return result;		
    }
	
	//alert ( getSiteIdentifier ( ) );
	
	if ( getSiteIdentifier () == 'uk' )
	{
		
		// the new Footer-Content
		var newFootercontent = "<dt><a id='ctl00_ctl55_CorporateCopyright' href='/b2b/it/en/uk/'>&copy;&nbsp;Siemens IT Solutions and Services Limited&nbsp;" + getActuallyYear () + "</a><span class='dash'> - </span></dt><dd><a id='ctl00_ctl55_CorporateInformation' href='/b2b/it/en/uk/legal-information/Pages/corporate-information.aspx'>Corporate Information</a><span class='pipe'> | </span><a id='ctl00_ctl55_PrivacyPolicy' href='/b2b/it/en/uk/legal-information/Pages/privacy-policy.aspx'>Privacy Policy</a><span class='pipe'> | </span><a id='ctl00_ctl55_TermsOfUse' href='/b2b/it/en/uk/legal-information/Pages/legal.aspx'>Legal</a></dd>";
		
		if ( footer ) { footer.innerHTML = newFootercontent; }
			
	}

	if ( getSiteIdentifier () == 'us' )
	{
		
		// the new Footer-Content
		var newFootercontent = "<dt><a id='ctl00_ctl55_CorporateCopyright' href='/b2b/it/en/us/'>&copy;&nbsp;Siemens IT Solutions and Services, Inc. 2002 -&nbsp;" + getActuallyYear () + "</a><span class='dash'> - </span></dt><dd><a id='ctl00_ctl55_CorporateInformation' href='http://w1.siemens.com/entry/cc/en/' target='_blank'>Corporate Information</a><span class='pipe'> | </span><a id='ctl00_ctl55_PrivacyPolicy' href='http://w1.siemens.com/entry/cc/en/' target='_blank'>Privacy Policy</a><span class='pipe'> | </span><a id='ctl00_ctl55_TermsOfUse' href='http://w1.siemens.com/entry/cc/en/' target='_blank' title='Terms of Use'>Terms of Use</a><span class='pipe'> | </span><a id='ctl00_ctl55_DigitalID' href='http://w1.siemens.com/entry/cc/en/' target='_blank' title='Digital ID'>Digital ID</a></dd>";
		
		if ( footer ) { footer.innerHTML = newFootercontent; }
			
	}
	
	else
	{
		
	}
	
}

modifyFooter ();