
/* 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 -
 */

/* - jquery.biggerlink.js - */
// http://www.schoolscantdoitalone.org/portal_javascripts/jquery.biggerlink.js?original=1
(function($){$.fn.biggerlink=function(options){var settings={hoverclass:'hover',clickableclass:'hot',follow:true};if(options){$.extend(settings,options)}
$(this).filter(function(){return $('a',this).length>0}).addClass(settings.clickableclass).each(function(i){$(this).attr('title',$('a[title]:first',this).attr('title'));$(this).mouseover(function(){window.status=$('a:first',this).attr('href');$(this).addClass(settings.hoverclass)}).mouseout(function(){window.status='';$(this).removeClass(settings.hoverclass)}).bind('click',function(){$(this).find('a:first').trigger('click')}).find('a').bind('focus',function(){$(this).parents('.'+settings.clickableclass).addClass(settings.hoverclass)}).bind('blur',function(){$(this).parents('.'+settings.clickableclass).removeClass(settings.hoverclass)}).end().find('a:first').bind('click',function(e){if(settings.follow==true){window.location=this.href}
e.stopPropagation()}).end().find('a',this).not(':first').bind('click',function(){$(this).parents('.'+settings.clickableclass).find('a:first').trigger('click');return false})});return this}})(jQuery);

/* - ciswa_theme.js - */
// http://www.schoolscantdoitalone.org/portal_javascripts/ciswa_theme.js?original=1
function InitializeFeeds(){jq(".feedlisting").each(function(){var href=jq(this).find('a:first').attr('href');var feedControl=new google.feeds.FeedControl();feedControl.addFeed(href,"CISWA");feedControl.setNumEntries(100);feedControl.setLinkTarget(google.feeds.LINK_TARGET_BLANK);feedControl.draw(this,{})});jq(".feedheadlines").each(function(){var href=jq(this).find('a:first').attr('href');var feeds=[{title:'News',url:href}];var options={stacked:false,horizontal:false,numResults:8,title:"News"}
new GFdynamicFeedControl(feeds,this,options)})}
google.load('feeds','1');google.setOnLoadCallback(InitializeFeeds);jq(document).ready(function(){jq('.portletEmbeddedForm .formControls').prepend('<div class="submit-btn"><a href="#" class="rgtarrowlink"><span class="hiddentext">&raquo;</span></a></div>');mybtn=jq('.portletEmbeddedForm .formControls input:submit');mybtn.css({'display':'none'});jq('.portletEmbeddedForm .formControls a.rgtarrowlink').bind('click', function(){mybtn.click();return false});jq('#nws-name').bind('focus', function(){if(this.value=='Your Name'){this.value=''}});jq('#nws-email').bind('focus', function(){if(this.value=='you@example.com'){this.value=''}});var myhtml='<span class="cornerTopLeft"></span>'+'<span class="cornerTopRight"></span>'+'<span class="cornerBottomLeft"></span>'+'<span class="cornerBottomRight"></span>';jq(".featureImage").append(myhtml);jq('.successwrap, .portlet-static-what-we-do').biggerlink();jq('#hero-banner').biggerlink();jq(".fpvideo").each(function(){var href=jq(this).children()[0].src||jq(this).children()[0].href;var embedhref='http://www.youtube.com/v/'+href.match(/[a-zA-Z0-9-_]+$/)+'&rel;=1';var params={swf:embedhref,width:185,height:152};jq(this).flash(params)})});

/* - jquery.swfobject.min.js - */
// http://www.schoolscantdoitalone.org/portal_javascripts/jquery.swfobject.min.js?original=1
(function(A){A.flashPlayerVersion=function(){var D,B=null,I=false,H="ShockwaveFlash.ShockwaveFlash";if(!(D=navigator.plugins["Shockwave Flash"])){try{B=new ActiveXObject(H+".7")}catch(G){try{B=new ActiveXObject(H+".6");D=[6,0,21];B.AllowScriptAccess="always"}catch(F){if(D&&D[0]===6){I=true}}if(!I){try{B=new ActiveXObject(H)}catch(E){D="X 0,0,0"}}}if(!I&&B){try{D=B.GetVariable("$version")}catch(C){}}}else{D=D.description}D=D.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[D[1]*1,D[3]*1,D[5]*1]}();A.flashExpressInstaller="expressInstall.swf";A.hasFlashPlayer=(A.flashPlayerVersion[0]!==0);A.hasFlashPlayerVersion=function(C){var B=A.flashPlayerVersion;C=(/string|integer/.test(typeof C))?C.toString().split("."):C;return(C)?(B[0]>=(C.major||C[0]||B[0])&&B[1]>=(C.minor||C[1]||B[1])&&B[2]>=(C.release||C[2]||B[2])):(B[0]!==0)};A.flash=function(M){if(!A.hasFlashPlayer){return false}var C=M.swf||"",K=M.params||{},E=document.createElement("body"),B,L,H,D,J,I,G,F;M.height=M.height||180;M.width=M.width||320;if(M.hasVersion&&!A.hasFlashPlayerVersion(M.hasVersion)){A.extend(M,{id:"SWFObjectExprInst",height:Math.max(M.height,137),width:Math.max(M.width,214)});C=M.expressInstaller||A.flashExpressInstaller;K={flashvars:{MMredirectURL:window.location.href,MMplayerType:(A.browser.msie&&A.browser.win)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}if(M.flashvars&&typeof K==="object"){A.extend(K,{flashvars:M.flashvars})}for(J in (I=["swf","expressInstall","hasVersion","params","flashvars"])){delete M[I[J]]}B=[];for(J in M){if(typeof M[J]==="object"){L=[];for(I in M[J]){L.push(I.replace(/([A-Z])/,"-$1").toLowerCase()+":"+M[J][I]+";")}M[J]=L.join("")}B.push(J+'="'+M[J]+'"')}M=B.join(" ");if(typeof K==="object"){B=[];for(J in K){if(typeof K[J]==="object"){L=[];for(I in K[J]){if(typeof K[J][I]==="object"){H=[];for(G in K[J][I]){if(typeof K[J][I][G]==="object"){D=[];for(F in K[J][I][G]){D.push(F.replace(/([A-Z])/,"-$1").toLowerCase()+":"+K[J][I][G][F]+";")}K[J][I][G]=D.join("")}H.push(G+"{"+K[J][I][G]+"}")}K[J][I]=H.join("")}L.push(window.escape(I)+"="+window.escape(K[J][I]))}K[J]=L.join("&amp;")}B.push('<PARAM NAME="'+J+'" VALUE="'+K[J]+'">')}K=B.join("")}if(!(/style=/.test(M))){M+=' style="vertical-align:text-top;"'}if(!(/style=(.*?)vertical-align/.test(M))){M=M.replace(/style="/,'style="vertical-align:text-top;')}if(A.browser.msie){M+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';K='<PARAM NAME="movie" VALUE="'+C+'">'+K}else{M+=' type="application/x-shockwave-flash" data="'+C+'"'}E.innerHTML="<OBJECT "+M+">"+K+"</OBJECT>";return A(E.firstChild)};A.fn.flash=function(C){if(!A.hasFlashPlayer){return this}var B=0,D;while((D=this.eq(B++))[0]){D.html(A.flash(A.extend({},C)));if(D[0].firstChild.getAttribute("id")==="SWFObjectExprInst"){B=this.length}}return this}}(jQuery));

