if(!obips.views.ViewSelector){obips.views.ViewSelector=function(){};obips.views.ViewSelector.onViewSelChanged=function(c,b,d){if(b!=null){var a=document.getElementById(b);if(a!=null){d=a.value}}obips.views.ViewController.handleViewAction("ViewSelChanged",c,{P6:d},null,c)};obips.views.ViewSelector._viewUpdateHandler=function(d,b,a,c,h){var g=a.getSubBlockById("vs"+c);if(g){var j=d.ownerDocument.getElementById(c+"ViewContent");if(j){var i=g.properties.type;var f=c+"~v:"+g.properties.name;var e=saw.ondemandload.parseInDocFragment(g.data,j.ownerDocument);if(obips.views.getExpandedViewId()){j=d.ownerDocument.getElementById(f+"ExpandedViewContainer")||d.ownerDocument.getElementById(f+"ViewContainer");e=saw.getFirstChildElement(e)}obips.views.ViewController.updateViewContent(i,j,e,g,f,h);saw.ajax.loadCSSFiles(g.data);saw.ajax.evalScriptsInString(g.data)}return true}};obips.views.ViewController.setViewContentUpdateHandler("viewSelector",obips.views.ViewSelector._viewUpdateHandler)};