
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - ++resource++cse-search-box.js - */
// http://qt.nokia.com/portal_javascripts/++resource++cse-search-box.js?original=1
jQuery(document).ready(
function(){var f=document.getElementById('cse-search-box');if(!f){f=document.getElementById('searchbox_demo')}
if(f&&f.q){var q=f.q;var n=navigator;var l=location;if(n.platform=='Win32'){q.style.cssText='border: 1px solid #7e9db9; padding: 2px;'}
var b=function(){if(q.value==''){q.style.background='#FFFFFF url(\x2Fgoogle_custom_search_watermark.gif) left no-repeat'}};var f=function(){q.style.background='#ffffff'};q.onfocus=f;q.onblur=b;if(!/[&?]q=[^&]/.test(l.search)){b()}}});

/* - ++resource++languageselector.js - */
// http://qt.nokia.com/portal_javascripts/++resource++languageselector.js?original=1
function setLanguage(){var lockicon=document.getElementById('languagelockicon');var baseurl=lockicon.src.substring(0,lockicon.src.lastIndexOf('/')+1)
var icon=lockicon.src.substring(lockicon.src.lastIndexOf('/')+1,lockicon.src.length)
if(icon=='lock_icon.gif'){document.cookie='I18N_LANGUAGE=; path=/; max_age=0; expires=Wed, 31-Dec-97 23:59:59 GMT'
var lockicon=document.getElementById('languagelockicon');lockicon.src=baseurl+'unlock_icon.gif'} else{var langcode=document.getElementsByTagName('html')[0].lang
document.cookie='I18N_LANGUAGE='+langcode+'; path=/'
lockicon.src=baseurl+'lock_icon.gif'}}


/* - ++resource++trackexternal.js - */
// http://qt.nokia.com/portal_javascripts/++resource++trackexternal.js?original=1
jq(document).ready(function(){jq('#content a:not(.popupwindow)').filter(function(){var theHref=this;if(theHref.hostname&&theHref.hostname!==location.hostname){jq(theHref).not(".noAutoIcon").addClass("offSite");jq(theHref).not(".noAutoLink").attr('target','_blank').bind('click keypress', function(event){var code=event.charCode||event.keyCode;if(!code||(code&&code==13)){if(pageTracker){var fixedLink=this.href;fixedLink=fixedLink.replace(/https?:\/\/(.*)/,"$1");fixedLink='/outgoing/'+fixedLink;pageTracker._trackPageview(fixedLink)}}})}})});

/* - ++resource++qttypes.js - */
// http://qt.nokia.com/portal_javascripts/++resource++qttypes.js?original=1
jQuery(document).ready(function(){jQuery("#partnersearch").show();jQuery("#partnerselect").change(function(){var selval=jQuery("#partnerselect :selected").attr("name");var pdata=jQuery.ajax({type:"GET",url:"ajax?partnercat="+selval,success: function(html){jQuery("#qttypes-overview-stories").replaceWith(html)}})});var maxheight=0;jQuery('.tabbertab .licenseDescription').each(function(i){maxheight=Math.max(maxheight,jQuery(this).height())}).css('min-height',maxheight+'px');jQuery('.tabbertab').filter(':gt(0)').hide();jQuery('.tabHeader').click(function(event){var maxheight=jQuery('.tabbertab .licenseDescription').css('min-height').replace('px','')
jQuery('.tabbertab .licenseDescription').each(function(i){maxheight=Math.max(maxheight,jQuery(this).height())});jQuery('.tabHeader').removeClass('selectedTab');jQuery(this).addClass('selectedTab');jQuery('.tabbertab').hide();jQuery('#content-'+jQuery(this).find('a').blur().attr('id').split('-',2)[1]).show();jQuery('.tabbertab .licenseDescription').each(function(i){maxheight=Math.max(maxheight,jQuery(this).height())}).css('min-height',maxheight+'px');return false});jQuery('a.tabberlink').click(function(event){var tab=jQuery(this).attr('href').replace(/#/,'#tab-');jQuery(tab).parent().click();return false});jQuery('input#email').blur(function(event){this.value=this.value.replace(/ /g,'')})});

/* - ++resource++topicflipper.js - */
// http://qt.nokia.com/portal_javascripts/++resource++topicflipper.js?original=1
jQuery(document).ready(function(){bindTopicFlipperEvents()});bindTopicFlipperEvents=function(){jQuery('li.flippernavitem a').click(triggerTopicFlipperRequest)}
triggerTopicFlipperRequest=function(){var href=this.href;var flipper=jQuery(this).attr('class');var object=href.substring(href.indexOf('currentflipperobject')+21,href.length);var params={'flipper':flipper,'currentflipperobject':object};jQuery.get('@@ajaxtopicflipper',params, function(data){if(data==''){alert('could not render requested resource. aborting')}
jQuery('.topicflipper').replaceWith(data);bindTopicFlipperEvents()});return false}

/* - ++resource++licencefeature.js - */
// http://qt.nokia.com/portal_javascripts/++resource++licencefeature.js?original=1
jQuery(document).ready(function(){jQuery("td.feature_title_cell div").hide()
jQuery("td.feature_title_cell span").css('cursor','pointer');jQuery("td.feature_title_cell span").mouseover(function(){var mydiv=jQuery(this).parent().children("div");jQuery(mydiv).slideDown()});jQuery("td.feature_title_cell span").mouseout(function(){var mydiv=jQuery(this).parent().children("div");jQuery(mydiv).slideUp()})});

/* - ++resource++evaluations.js - */
// http://qt.nokia.com/portal_javascripts/++resource++evaluations.js?original=1
var qtStateOptionsBrain=new Object();jQuery(document).ready(function(){var prestate=jQuery("#countrySelection").attr("value")
if(prestate!='Germany'){jQuery("div.zip-field-set").hide()}
if(prestate!='USA'&prestate!='Canada'){jQuery("div.state-field-set").hide()}
if(jQuery("#receiveInfo").attr('checked')){jQuery("div#code-access").addClass('wide');jQuery("div.receiveInfo-influenced").show()} else{jQuery("div.receiveInfo-influenced").hide();jQuery("div#code-access").removeClass('wide')}
qtStateOptionsBrain.US=jQuery("option.state-option-us").clone();qtStateOptionsBrain.CA=jQuery("option.state-option-ca").clone();var state=jQuery("#countrySelection").attr("value");if(state=='USA'|state=='Canada'){jQuery("div.state-field-set").show();jQuery("#stateSelection option").remove();if(state=='USA'){options=jQuery(qtStateOptionsBrain.US).clone()} else{options=jQuery(qtStateOptionsBrain.CA).clone()}
jQuery("#stateSelection").append(options)} else{jQuery("div.state-field-set").hide()}
jQuery("#countrySelection").change(function(){var state=jQuery(this).attr("value");if(state=='USA'|state=='Canada'){jQuery("div.state-field-set").show();jQuery("#stateSelection option").remove();if(state=='USA'){options=jQuery(qtStateOptionsBrain.US).clone()} else{options=jQuery(qtStateOptionsBrain.CA).clone()}
jQuery("#stateSelection").append(options)} else{jQuery("div.state-field-set").hide()}
if(state=='Germany'){jQuery("div.zip-field-set").show()} else{jQuery("div.zip-field-set").hide()}})
jQuery("#receiveInfo").click(function(){if(jQuery(this).attr('checked')){jQuery("div#code-access").addClass('wide');jQuery("div.receiveInfo-influenced").show()} else{jQuery("div.receiveInfo-influenced").hide();jQuery("div#code-access").removeClass('wide')}})})


