﻿	<!--//--><![CDATA[//><!--

	// ###### URL FILTER ######
	function psyma_url_ok()
	{
		var return_value = false;
		if ( true )
		{
			var my_location = new Array();
			
						my_location.push("http://www.nokiasiemensnetworks.com/");
			
			for (i=0; i<my_location.length; i++)
			{		
				if(false == true && location.href.indexOf(my_location[i]) > -1)
				{
					return_value = false;
					break;
				}
				else if(false == true && location.href.indexOf(my_location[i]) == -1)
				{
					return_value = true;
					break;
				}
				
				if(false == false && location.href.indexOf(my_location[i]) > -1)
				{
					return_value = true;
					break;
				}
			}
		}
		else
		{
			return_value = true;
		}
						
		return return_value;
	}
	// ###### URL FILTER (ENDE) ######

	// ###### ALLE JS-FUNKTIONEN ######
	var psyma_use_cookies = true;
var psyma_participation = 0;
var psyma_participation_cookie = "psyma_participation";
var psyma_entry_page = location.href;
var psyma_cookie_exp = psyma_get_expiration_date();

var psyma_index = psyma_entry_page.indexOf('?');
if (psyma_index >= 0)
{
	psyma_entry_page = psyma_entry_page.substr(0, psyma_index);
}

var connectionSpeed = 0;
var screen_width = screen.width;
var screen_height = screen.height;

var horizontal_alignment = "center";

// ###### Bandbreite (START) ######
function drawCSImageTag(fileLocation, fileSize, imgTagProperties)
{
	start = (new Date()).getTime();
	loc = fileLocation + '?t=' + escape(start);
	document.write('<img src="' + loc + '" ' + imgTagProperties + ' onload="connectionSpeed=computeConnectionSpeed(' + start + ',' + fileSize + ');">');
	return;
}

function connectionType(speed)
{
	SLOW_MODEM = 15;
	FAST_MODEM = 57;
	ISDN_MODEM = 120;
	DSL_MODEM = 1440;
	
	if (speed)
	{
		if (speed < SLOW_MODEM)
		{
			return "Slow Modem";
		}
		else if (speed < FAST_MODEM)
		{
			return "Fast Modem";
		}
		else if (speed < ISDN_MODEM)
		{
			return "ISDN Modem";
		}
		else if (speed < DSL_MODEM)
		{
			return "DSL Modem";
		}
		else
		{
			return "partial T1 or greater connection";
		}
	}
	else
	{
		return "Undetermined Connection";
	}
}

function psyma_get_expiration_date()
{
	var psyma_day_offset = 30;		// how many days should cookies be active
	var psyma_milli_offset = psyma_day_offset * 1000 * 60 * 60 * 24;
	var psyma_now = new Date();
	psyma_participation_exp = new Date(psyma_now.valueOf() + psyma_milli_offset);
	return psyma_participation_exp;
}

function computeConnectionSpeed(start, fileSize)
{
	end = (new Date()).getTime();
	connectSpeed = (Math.floor((((fileSize * 8) / ((end - start) / 1000)) / 1024) * 10) / 10);
	return connectSpeed;
}

function showSpeed()
{
	//alert('The Connection Speed : ' + connectionSpeed + ' kbps. Your connection device is most likely a ' + connectionType(connectionSpeed) + '.');
	return;
}
// ###### Bandbreite (ENDE) ######

// ###### Browser-Check (START) ######
function psyma_check_browser()
{
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("webtv") != -1) return 'WebTV';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Mozilla Firefox';
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	//if (agt.indexOf("msie") != -1) return 'Internet Explorer';
	if (agt.indexOf("msie 6.") != -1) return 'Internet Explorer 6';
	if (agt.indexOf("msie 7.") != -1) return 'Internet Explorer 7';
	if (agt.indexOf("msie 8.") != -1) return 'Internet Explorer 8';
	if (agt.indexOf("netscape") != -1) return 'Netscape';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
	return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
	return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}

var psyma_browser_name = psyma_check_browser();
// ###### Browser-Check (ENDE) ######

// ###### View-Port (START) ######
var viewportwidth;
var viewportheight;

// Mozilla / Netscape / Opera / IE7
if (typeof window.innerWidth != 'undefined')
{
	viewportwidth = window.innerWidth,
	viewportheight = window.innerHeight
}

// IE6
else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0)
{
	viewportwidth = document.documentElement.clientWidth,
	viewportheight = document.documentElement.clientHeight
}

// older IEs
else
{
	if(typeof (document.getElementsByTagName('body')) == 'object')
	{
		// IE 6 or IE 7
		viewportwidth = document.getElementsByTagName('body').clientWidth,
		viewportheight = document.getElementsByTagName('body').clientHeight
	}
	else
	{
		// old IEs
		viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
		viewportheight = document.getElementsByTagName('body')[0].clientHeight
	}
}

var viewport = viewportwidth+'x'+viewportheight;
// ###### View-Port (ENDE) ######

// ###### get cookie ######
function get_psyma_cookie(a)
{
	if ( psyma_use_cookies )
	{
		var c=document.cookie.split(a+"=");
		return (c.length>1)?unescape(c[1].split(";")[0]):"";
	}
	else
	return null;
}

// ###### set cookie ######
function set_psyma_cookie(name, value, path, domain, secure, expires)
{
	if ( psyma_use_cookies ) 
	{
		document.cookie =
		  name + "="
		  + escape(value)
		  + ((path) ? "; path=" + path : "")
		  + ((expires) ? "; expires=" + expires.toGMTString() : "")
		  + ((domain) ? "; domain=" + domain : "")
		  + ((secure) ? "; secure" : "");
	}
}

// ###### PSYMA INIT LAYER ######
function psyma_init_layer()
{
	var myWidth = 0, myHeight = 0;

	if( typeof( window.innerWidth ) == 'number' )
	{
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} 
	else if ( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight) )
	{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	
	if (horizontal_alignment == "center") // a) Fr dynamische Positionierung (horizontal):
	{
		poswidth = (myWidth - 550) / 2;
	}
	else // b) Fr feste Positionierung (horizontal):
	{
		poswidth = (horizontal_alignment - 550) / 2;
	}

	psymaTop = 120;
		
	psyma_posLayer("psyma_layer", poswidth, psymaTop);
	psyma_showLayer("psyma_layer");

	set_psyma_cookie(psyma_participation_cookie, 1, "/", "", "", psyma_cookie_exp);
}
// ###### PSYMA INIT LAYER (ENDE) ######

psyma_participation = get_psyma_cookie(psyma_participation_cookie);

// ###### kein Cookie gesetzt UND die URL im Filter ######
if ( psyma_participation != 1 && psyma_participation != 4 && psyma_url_ok() )
{
	function psyma_findLayer(name, doc) 
	{
		var i, layer;
		var length = doc.layers.length;
		for (i = 0; i < length; i++)
		{
			layer = doc.layers[i];
			
			if (layer.name == name)
			{
				return layer;
			}
			
			if (layer.document.layers.length > 0)
			{
				if ((layer = psyma_findLayer(name, layer.document)) != null)
				{
					return layer;
				}
			}
		}
		return null;
	}

	function psyma_showLayer(id)
	{
		if (document.layers)
		{
			id = psyma_findLayer(id, document);
			id.visibility = "show";
		} 
		else if (document.getElementById)
		{
			document.getElementById(''+id+'').style.visibility = "visible";
		}				
	}

	function psyma_hideLayer(id)
	{
		if (document.layers)
		{
			id = psyma_findLayer(id, document);
			id.visibility = "hide";
		} 
		else if (document.getElementById)
		{
			document.getElementById(''+id+'').style.visibility = "hidden";
		}				
	}

	function psyma_posLayer(id,lax,lay)
	{
		if (lax)
		{
			if (document.layers) { document.layers[''+id+''].left = lax }
			else if (document.getElementById) { document.getElementById(''+id+'').style.left = lax + "px" }
		}
		if (lay)
		{
			if (document.layers) { document.layers[''+id+''].top = lay }
			else if (document.getElementById) { document.getElementById(''+id+'').style.top = lay + "px"}
		}
	}

	function psyma_button1()
	{
		psyma_hideLayer('psyma_layer');
		var psyma_width = window.screen.width;
		var psyma_height = window.screen.height - 100;
		if (psyma_width >= 1000)
			psyma_width = 1000;
		if (psyma_height >= 700)
			psyma_height = 700;

		// ### diese Variable steuert alle an die Datenbank bergebenen Werte: ###
		// ### Viewport, Verbindungsgeschwindigkeit, Browserbezeichnung, Bildschirmbreite / Bildschirmhhe, Einstiegsseite; ###
		var survey_window_attributes = "http://www.psyma-surveys.com/uc/nsn_tracking_2010/?a="+viewport+"&b="+connectionSpeed+"&c="+psyma_browser_name+"&d="+screen_width+"x"+screen_height+"&e="+psyma_entry_page;

		var survey_window = window.open(survey_window_attributes, 'psyma_survey',  'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width='+psyma_width+',height='+psyma_height+',top=0,left=0');
		if (survey_window)
			survey_window.opener.focus();
		return false;
	}

	function psyma_button2()
	{
		psyma_hideLayer('psyma_layer');
		return false;
	}

	function psyma_write_layer()
	{
		document.write('<style type="text/css">');
document.write('#psyma_layer');
document.write('{');
document.write('display: block;');
document.write('visibility: hidden;');
document.write('z-index: 100000;');
document.write('position: absolute;');
document.write('top: 120px;');
document.write('left: 0px;');
document.write('width: 550px;');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('font-size: 13px; background-color: #fff;');
document.write('color: #000000;');
document.write('border: 3px solid #9D9D9D;');
document.write('padding: 0;');
document.write('}');
document.write('#psyma_layer p');
document.write('{');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('font-size: 13px;');
document.write('padding: 0;');
document.write('margin: 0 0 10px 0;');
document.write('line-height: 105%;');
document.write('}');
document.write('#psyma_layer #header-background');
document.write('{');
document.write('width: 100%;');
document.write('height: 50px;');
document.write('z-index: 0;');
document.write('margin: 100px 0 0 0;');
document.write('background-color: #DEDEDE;');
document.write('}');
document.write('#psyma_layer #header-background2');
document.write('{');
document.write('width: 100%;');
document.write('height: 20px;');
document.write('z-index: 0;');
document.write('background: #9D9D9D url(\'http://scripts.psyma.com/img/ecken/header_schatten.gif\') repeat-x 0 15px;');
document.write('}');
document.write('#psyma_layer #titel');
document.write('{');
document.write('line-height: 18px;');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('position: absolute;');
document.write('top: 128px;');
document.write('right: 20px;');
document.write('color: #000;');
document.write('font-size: 18px;');
document.write('font-weight: bold;');
document.write('z-index: 1;');
document.write('}');
document.write('#psyma_layer #client-logo-li');
document.write('{');
document.write('position: absolute;');
document.write('top: 10px;');
document.write('left: 10px;');
document.write('padding: 0;');
document.write('margin: 0;');
document.write('text-align: center;');
document.write('width: auto;');
document.write('background-color: #fff;');
document.write('}');
document.write('#psyma_layer #client-logo-re');
document.write('{');
document.write('padding: 5px;');
document.write('}');
document.write('#psyma_layer a:link, #psyma_layer a:active, #psyma_layer a:visited, #psyma_layer a:hover');
document.write('{');
document.write('font-size: 13px;');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('color: #5E5E5E;');
document.write('text-decoration: underline;');
document.write('}');
document.write('#psyma_layer a:hover');
document.write('{');
document.write('text-decoration: none;');
document.write('}');
document.write('#psyma_layer a:link, #psyma_layer a:active, #psyma_layer a:visited, #psyma_layer a:hover');
document.write('{');
document.write('font-size: 13px;');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('color: #5E5E5E;');
document.write('text-decoration: underline;');
document.write('}');
document.write('#psyma_text');
document.write('{');
document.write('text-align: left;');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('font-size: 13px;');
document.write('margin: 10px 20px 0px 20px;');
document.write('padding: 0;');
document.write('}');
document.write('#psyma_layer #psyma_liste');
document.write('{');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('margin: 10px 20px 10px 20px;');
document.write('padding: 0 0 0 15px;');
document.write('list-style: square;');
document.write('font-size: 11px;');
document.write('}');
document.write('#psyma_liste .link_small:link, #psyma_liste .link_small:active, #psyma_liste .link_small:visited, #psyma_liste .link_small:hover, #psyma_layer .link_small:link, #psyma_layer .link_small:active, #psyma_layer .link_small:visited, #psyma_layer .link_small:hover {');
document.write('font-size: 11px;');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('color: #5E5E5E;');
document.write('text-decoration: underline;');
document.write('}');
document.write('#psyma_liste li');
document.write('{');
document.write('text-align: left;');
document.write('font-size: 11px;');
document.write('}');
document.write('');
document.write('#psyma_layer #psyma_logo');
document.write('{');
document.write('position: absolute;');
document.write('top: 25px;');
document.write('left: 400px;');
document.write('}');
document.write('#psyma_button table');
document.write('{');
document.write('border-collapse: collapse;');
document.write('margin: 5px 0 10px 0;');
document.write('}');
document.write('');
document.write('#psyma_button td');
document.write('{');
document.write('font-family: Arial, Helvetica, sans-serif;');
document.write('font-size: 13px;');
document.write('padding: 0;');
document.write('margin: 0;');
document.write('}');
document.write('');
document.write('#psyma_button .psyma_button_text');
document.write('{');
document.write('width: 100%;');
document.write('padding: 0 0 0 5px;');
document.write('background: #fff url(\'http://scripts.psyma.com/img/ecken/dot.gif\') repeat-x bottom left;');
document.write('}');
document.write('#psyma_button a:link, #psyma_button a:active, #psyma_button a:visited, #psyma_button a:hover');
document.write('{');
document.write('font-size: 13px;');
document.write('display: block;');
document.write('width: 100px;');
document.write('text-align: center;');
document.write('text-decoration: none;');
document.write('color: #000;');
document.write('background-color: #DEDEDE;');
document.write('padding: 7px 5px;');
document.write('border: 1px solid #DEDEDE;');
document.write('}');
document.write('');
document.write('#psyma_button a:hover');
document.write('{');
document.write('color: #000;');
document.write('background-color: #9D9D9D;');
document.write('}');
document.write('</style>');
document.write('<div id="hiddenCont" style="display: none;visibility: hidden;">');
document.write('<script type="text/javascript">');
document.write('drawCSImageTag(\'http://scripts.psyma.com/scripts/speedtest.jpg\', 53491, \'border=2 height=472 alt="Psyma"\');');
document.write('window.setTimeout("showSpeed()", 3000);');
document.write('</script>');
document.write('</div>');
document.write('');
document.write('<div id="psyma_layer">');
document.write('<div id="header-background"></div>');
document.write('<div id="header-background2"></div>');
document.write('<div id="titel">Your opinion matters!</div>');
document.write('<div id="client-logo-li"><div id="client-logo-re"><img src="http://scripts.psyma.com/img/logos/nsn_logo.gif" alt="client logo"/></div></div>');
document.write('<div id="psyma_logo"><img src="http://scripts.psyma.com/img/logos/por.gif" alt="Psyma Online Research"/></div>');
document.write('<div style="position: absolute; top: 175px; right: 20px;"><a href="#" onclick="psyma_hideLayer(\'psyma_layer\'); return false;">close</a></div>');
document.write('<div id="psyma_text">');
document.write('<p>Dear visitor,</p>');
document.write('<p>We would appreciate your opinion to help improve the Nokia Siemens Networks website.<br/>');
document.write('Would you like to take part in our online survey (only 4 minutes)?</p>');
document.write('<div id="psyma_button">');
document.write('<table>');
document.write('<tr style="border-top: 1px solid #fff;">');
document.write('<td><a id="psyma_button1" href="#" onclick="psyma_button1();">Yes</a></td>');
document.write('<td class="psyma_button_text">I would like to participate <u>after</u> visiting the website.</td>');
document.write('</tr>');
document.write('</table>');
document.write('');
document.write('<table>');
document.write('<tr style="border-top: 1px solid #fff;">');
document.write('<td><a id="psyma_button2" href="#" onclick="psyma_button2();">No, thank you</a></td>');
document.write('<td class="psyma_button_text">I do not want to participate.</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('<p style="clear: both;"></p>');
document.write('<a href="#" onclick="window.open(\'http://scripts.psyma.com/documents/wtp/wtp.php?lang=en_no_prize\', \'por_wtp\', \'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=350,top=0,left=0\'); return false;">Why take part?</a>');
document.write('</div>');
document.write('<ul id="psyma_liste">');
document.write('<li><a class="link_small" href="#" onclick="window.open(\'http://scripts.psyma.com/documents/por/por.php?lang=en\', \'por_info\', \'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=480,top=0,left=0\'); return false;">Psyma Research+Consulting</a> for Nokia Siemens Networks</li>');
document.write('<li><a class="link_small" href="#" onclick="window.open(\'http://scripts.psyma.com/documents/privacy/privacy.php?lang=en_permanent_cookie_nsn\', \'psyma_privacy\', \'toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=680,top=0,left=0\'); return false;">Your privacy is guaranteed</a></li>');
document.write('</ul>');
document.write('<iframe src="http://scripts.psyma.com/scripts/count.php?type=layercount&id=1111&cr=70&code=0" style="display: none;"></iframe>');
document.write('</div>');
	}

	psyma_write_layer();
	
	// function to be called on script execution -- cache existing function
	if (window.onload)
	{
		cached_onload = window.onload;
		window.onload = new Function(				
			"new_onload",
			"psyma_init_layer();" +			
			"cached_onload();" +
			""
		);
	}
	else
	{
		window.onload = psyma_init_layer;
	}

} // end of if psyma_participation
	//--><!]]>

	