/*Script copyrighted 2002-2003, Andrew McCafferty, All rights reserved.*/
/* If you modify this file by hand, to avoid overwriting it, change its name.*/
/* GLOBAL LANGUAGE COOKIE */
/* this function gets the cookie, if it exists*/
/*only the first 2 parameters are required, the cookie name, the cookie
value. Cookie time is in milliseconds, so the below expires will make the 
number you pass in the Set_Cookie function call the number of days the cookie
lasts, if you want it to be hours or minutes, just get rid of 24 and 60.
Generally you don't need to worry about domain, path or secure for most applications
so unless you need that, leave those parameters blank in the function call.*/
function Set_Cookie( name, value, expires, path, domain, secure ) {
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );
	// if the expires variable is set, make the correct expires time, the
	// current script below will set it for x number of days, to make it
	// for hours, delete * 24, for minutes, delete * 60 * 24
	if ( expires )
	{
		expires = expires * 1000 * 60 * 60 * 24;
	}
	//alert( 'today ' + today.toGMTString() );// this is for testing purpose only
	var expires_date = new Date( today.getTime() + (expires) );
	//alert('expires ' + expires_date.toGMTString());// this is for testing purposes only
	document.cookie = name + "=" +escape( value ) +
		( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + //expires.toGMTString()
		( ( path ) ? ";path=" + path : "" ) + 
		( ( domain ) ? ";domain=" + domain : "" ) +
		( ( secure ) ? ";secure" : "" );
}		
var exp = new Date();

function Get_Cookie( name ) {
	var start = document.cookie.indexOf( name + "=" );
	var len = start + name.length + 1;
	if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) )
	{
		return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ";", len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}




// this deletes the cookie when called
function Delete_Cookie( name, path, domain ) {
	if ( Get_Cookie( name ) ) document.cookie = name + "=" +
			( ( path ) ? ";path=" + path : "") +
			( ( domain ) ? ";domain=" + domain : "" ) +
			";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
/*GLOBAL LANGUAGE COOKIE*/

Get_Cookie('ra_www_lang');
var SCLang = (Get_Cookie('ra_www_lang'));
 
document.write('<style type=text/css>\n\
#other {float:right; margin:0 8px 40px 30px; clear:right; width:160px; color:#666;; font-family:trebuchet ms,arial,helvetica,sans-serif; font-size:11px; line-height:13px; border:1px solid #ccc; border-width:0 0 0 1px; background-image:url(http://www.rockwellautomation.com/lib/images/menucorner.gif); background-repeat:no-repeat; background-position:bottom right;}\n\
#other h1 {text-transform:none; color:#444; font-size:13px; line-height:15px; background-color:#E1F2F7; margin:0 0 6px 0; padding:3px 6px 2px 6px; border:1px solid #ccc; border-width:1px 1px 1px 0}\n\
#other h2 {text-transform:none; color:#666; font-size:12px; line-height:13px; margin:0; padding:0; margin:0; padding:2px 6px 2px 6px;}\n\
#other a {color:#666; text-decoration:none}\n\
#other a:hover {color:#bb2322; text-decoration:underline}\n\
#other ul {display:block; margin:0 6px 3px 13px; padding:3px 6px 3px 6px}\n\
#other ol {margin:3px 6px 6px 30px; padding:0px;}\n\
#other li, #other li a {font-size:11px; color:#666; margin:0; padding:0 0 2px 0;}\n\
#other ul li {margin:0 0 4px 0; padding:0; list-style-type:none; list-style-position:outside; list-style-image:url(http://www.rockwellautomation.com/lib/images/rightnavlink.gif)}\n\
#other p {font-size:11px; line-height:15px; margin:0; padding:2px 6px 2px 6px}\n\
</style>');

/*
document.write('<div id=other>');

if (SCLang == "English") {
document.write('<h1>Whats New</h1>\n\
<ul>\n\
<li><a href=#>English Testing</a></li>\n\
<li><a href=#>English Testing</a></li>\n\
<li><a href=#>English Testing</a></li>\n\
</ul>');
}

else if (SCLang == "Portuguese") {
document.write('<h1>O que há de novo</h1>\n\
<ul>\n\
<li><a href=#>Portuguese Testing</a></li>\n\
<li><a href=#>Portuguese Testing</a></li>\n\
<li><a href=#>Portuguese Testing</a></li>\n\
</ul>');
}

else if (SCLang == "French") {
document.write('<h1>Nouveautés</h1>\n\
<ul>\n\
<li><a href=#>French Testing</a></li>\n\
<li><a href=#>French Testing</a></li>\n\
<li><a href=#>French Testing</a></li>\n\
</ul>');
}

else if (SCLang == "Italian") {
document.write('<h1>Novità</h1>\n\
<ul>\n\
<li><a href=#>Italian Testing</a></li>\n\
<li><a href=#>Italian Testing</a></li>\n\
<li><a href=#>Italian Testing</a></li>\n\
</ul>');
}

else if (SCLang == "German") {
document.write('<h1>Neue Funktionen</h1>\n\
<ul>\n\
<li><a href=#>German Testing</a></li>\n\
<li><a href=#>German Testing</a></li>\n\
<li><a href=#>German Testing</a></li>\n\
</ul>');
}

else if (SCLang == "Spanish") {
document.write('<h1>Novedades</h1>\n\
<ul>\n\
<li><a href=#>Spanish Testing</a></li>\n\
<li><a href=#>Spanish Testing</a></li>\n\
<li><a href=#>Spanish Testing</a></li>\n\
</ul>');
}

else if (SCLang == "ChineseSimplified") {
document.write('<h1>新增内容</h1>\n\
<ul>\n\
<li><a href=#>Chinese Testing</a></li>\n\
<li><a href=#>Chinese Testing</a></li>\n\
<li><a href=#>Chinese Testing</a></li>\n\
</ul>');
}

else if (SCLang == "Japanese") {
document.write('<h1>新着情報</h1>\n\
<ul>\n\
<li><a href=#>Japanese Testing</a></li>\n\
<li><a href=#>Japanese Testing</a></li>\n\
<li><a href=#>Japanese Testing</a></li>\n\
</ul>');
}

else if (SCLang == "Korean") {
document.write('<h1>새로운 사항</h1>\n\
<ul>\n\
<li><a href=#>Korean Testing</a></li>\n\
<li><a href=#>Korean Testing</a></li>\n\
<li><a href=#>Korean Testing</a></li>\n\
</ul>');
}

else {
document.write('<h1>Whats New</h1>\n\
<ul>\n\
<li><a href=#>English Testing</a></li>\n\
<li><a href=#>English Testing</a></li>\n\
<li><a href=#>English Testing</a></li>\n\
</ul>');
}

document.write('</div>');
*/
