// Modernizr.load loading the right scripts only if you need them Modernizr.load([ { // Let's see if we need to load selectivizr test : Modernizr.borderradius, // Modernizr.load loads selectivizr for IE6-8 nope : ['selectivizr-min.js'] } ]); /* imgsizer (flexible images for fluid sites) */ var imgSizer={Config:{imgCache:[],spacer:"/path/to/your/spacer.gif"},collate:function(aScope){var isOldIE=(document.all&&!window.opera&&!window.XDomainRequest)?1:0;if(isOldIE&&document.getElementsByTagName){var c=imgSizer;var imgCache=c.Config.imgCache;var images=(aScope&&aScope.length)?aScope:document.getElementsByTagName("img");for(var i=0;i ul") , 0); function mainNavChildren(parent , level){ jQuery(parent).children("li").each(function(i , obj){ var label = ""; for(var k = 0 ; k < level ; k++){ label += "    "; } label += jQuery(obj).children("a").text(); jQuery("#responsive-main-nav-menu").append(""); if(jQuery(obj).children("ul").size() == 1){ mainNavChildren(jQuery(obj).children("ul") , level + 1); } }); } /*RESPONSIVE MAIN NAVIGATION STARTS*/ /*RESPONSIVE SOCIAL NAVIGATION STARTS*/ mainNavSocial(jQuery("#social-icons > ul") , 0); function mainNavSocial(parent , level){ jQuery(parent).children("li").each(function(i , obj){ var label = ""; for(var k = 0 ; k < level ; k++){ label += "    "; } label += jQuery(obj).children("a").attr("title"); jQuery("#responsive-social-menu").append(""); if(jQuery(obj).children("ul").size() == 1){ mainNavSocial(jQuery(obj).children("ul") , level + 1); } }); } /*RESPONSIVE SOCIAL NAVIGATION STARTS*/ /*TIPSY STARTS*/ if ( jQuery().tipsy ) { jQuery("#social-01").tipsy({gravity: 'n'}); jQuery("#social-02").tipsy({gravity: 'n'}); jQuery("#social-03").tipsy({gravity: 'n'}); jQuery("#social-04").tipsy({gravity: 'n'}); jQuery("#social-05").tipsy({gravity: 'n'}); jQuery("#social-06").tipsy({gravity: 'n'}); jQuery("#social-07").tipsy({gravity: 'n'}); jQuery("#social-07").tipsy({gravity: 'n'}); jQuery("#social-08").tipsy({gravity: 'n'}); jQuery("#social-09").tipsy({gravity: 'n'}); jQuery("#social-10").tipsy({gravity: 'n'}); jQuery("#social-11").tipsy({gravity: 'n'}); jQuery("#team-01").tipsy({gravity: 's'}); } /*TIPSY ENDS*/ /* NAVIGATION JQUERY STARS */ if ( jQuery( '#main-navigation' ).length && jQuery() ) { var arrowimages={down:['downarrowclass', './images/plus.png', 23], right:['rightarrowclass', './images/plus-white.png']} var jqueryslidemenu={ animateduration: {over: 200, out: 100}, //duration of slide in/ out animation, in milliseconds buildmenu:function(menuid, arrowsvar){ jQuery(document).ready(function(jQuery){ var jQuerymainmenu=jQuery("#"+menuid+">ul") var jQueryheaders=jQuerymainmenu.find("ul").parent() jQueryheaders.each(function(i){ var jQuerycurobj=jQuery(this) var jQuerysubul=jQuery(this).find('ul:eq(0)') this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:jQuerysubul.outerWidth(), subulh:jQuerysubul.outerHeight()} this.istopheader=jQuerycurobj.parents("ul").length==1? true : false jQuerysubul.css({top:this.istopheader? this._dimensions.h+"px" : 0}) jQuerycurobj.children("a:eq(0)").css(this.istopheader? {paddingRight: arrowsvar.down[2]} : {}).append( '' ) jQuerycurobj.hover( function(e){ var jQuerytargetul=jQuery(this).children("ul:eq(0)") this._offsets={left:jQuery(this).offset().left, top:jQuery(this).offset().top} var menuleft=this.istopheader? 0 : this._dimensions.w menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>jQuery(window).width())? (this.istopheader? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft if (jQuerytargetul.queue().length<=1) //if 1 or less queued animations jQuerytargetul.css({left:menuleft+"px", width:this._dimensions.subulw+'px'}).slideDown(jqueryslidemenu.animateduration.over) }, function(e){ var jQuerytargetul=jQuery(this).children("ul:eq(0)") jQuerytargetul.slideUp(jqueryslidemenu.animateduration.out) } ) //end hover jQuerycurobj.click(function(){ jQuery(this).children("ul:eq(0)").hide() }) }) //end jQueryheaders.each() jQuerymainmenu.find("ul").css({display:'none', visibility:'visible'}) }) //end document.ready } } jqueryslidemenu.buildmenu("main-navigation", arrowimages) } /* NAVIGATION JQUERY ENDS */ jQuery('#social-links a').attr('target', '_blank'); }); /* JQUERY ENDS */ jQuery.noConflict(); jQuery(document).ready(function(){ if ( jQuery( '.flexslider' ).length && jQuery() ) { jQuery('.flexslider').flexslider({ animation:'slide', controlNav:true, animationLoop: true, controlsContainer:"", pauseOnHover: true, nextText:"›", prevText:"‹", keyboardNav: true, slideshowSpeed: 3000, animationSpeed: 500, start: function(slider) { slider.removeClass('loading'); } }); } }); function button_hover_shortcode(){ jQuery('.button_link,button[type=submit],button,input[type=submit],input[type=button],input[type=reset]').hover( function() { jQuery(this).stop().animate({opacity:0.8},400); }, function() { jQuery(this).stop().animate({opacity:1},400); }); } jQuery(document).ready(function() { if(!jQuery.browser.msie){button_hover_shortcode();} }); (function($) { $.fn.tipsy = function(options) { options = $.extend({}, $.fn.tipsy.defaults, options); return this.each(function() { var opts = $.fn.tipsy.elementOptions(this, options); $(this).hover(function() { $.data(this, 'cancel.tipsy', true); var tip = $.data(this, 'active.tipsy'); if (!tip) { tip = $('
'); tip.css({position: 'absolute', zIndex: 100000}); $.data(this, 'active.tipsy', tip); } if ($(this).attr('title') || typeof($(this).attr('original-title')) != 'string') { $(this).attr('original-title', $(this).attr('title') || '').removeAttr('title'); } var title; if (typeof opts.title == 'string') { title = $(this).attr(opts.title == 'title' ? 'original-title' : opts.title); } else if (typeof opts.title == 'function') { title = opts.title.call(this); } tip.find('.tipsy-inner')[opts.html ? 'html' : 'text'](title || opts.fallback); var pos = $.extend({}, $(this).offset(), {width: this.offsetWidth, height: this.offsetHeight}); tip.get(0).className = 'tipsy'; // reset classname in case of dynamic gravity tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).appendTo(document.body); var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight; var gravity = (typeof opts.gravity == 'function') ? opts.gravity.call(this) : opts.gravity; switch (gravity.charAt(0)) { case 'n': tip.css({top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-north'); break; case 's': tip.css({top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-south'); break; case 'e': tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}).addClass('tipsy-east'); break; case 'w': tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}).addClass('tipsy-west'); break; } if (opts.fade) { tip.css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: 0.8}); } else { tip.css({visibility: 'visible'}); } }, function() { $.data(this, 'cancel.tipsy', false); var self = this; setTimeout(function() { if ($.data(this, 'cancel.tipsy')) return; var tip = $.data(self, 'active.tipsy'); if (opts.fade) { tip.stop().fadeOut(function() { $(this).remove(); }); } else { tip.remove(); } }, 100); }); }); }; // Overwrite this method to provide options on a per-element basis. // For example, you could store the gravity in a 'tipsy-gravity' attribute: // return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' }); // (remember - do not modify 'options' in place!) $.fn.tipsy.elementOptions = function(ele, options) { return $.metadata ? $.extend({}, options, $(ele).metadata()) : options; }; $.fn.tipsy.defaults = { fade: false, fallback: '', gravity: 'n', html: false, title: 'title' }; $.fn.tipsy.autoNS = function() { return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n'; }; $.fn.tipsy.autoWE = function() { return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w'; }; })(jQuery); function showrecentcomments(json){for(var i=0;i]*>/g;l_rc=l_rc.replace(re,"");if(m_rc==true)document.write('On '+k_rc[parseInt(i_rc,10)]+' '+j_rc+' ');document.write(''+b_rc.author[0].name.$t+' commented');if(n_rc==true)document.write(' on '+f_rc);document.write(': ');if(l_rc.length“');document.write(l_rc);document.write('”

');}else{document.write('“');l_rc=l_rc.substring(0,o_rc);var p_rc=l_rc.lastIndexOf(" ");l_rc=l_rc.substring(0,p_rc);document.write(l_rc+'…”');document.write('

');}}} function rp(json){document.write('
    ');for(var i=0;i');var entry=json.feed.entry[i];var posttitle=entry.title.$t;var posturl;if(i==json.feed.entry.length)break;for(var k=0;k]*>/g;postcontent=postcontent.replace(re,"");document.write(posttitle);if(showpostdate==true)document.write(' - '+monthnames[parseInt(cdmonth,10)]+' '+cdday);if(showpostsummary==true){if(postcontent.length')}document.write('
')} function removeHtmlTag(strx,chop){ if(strx.indexOf("<")!=-1) { var s = strx.split("<"); for(var i=0;i")!=-1){ s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length); } } strx = s.join(""); } chop = (chop < strx.length-1) ? chop : strx.length-2; while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++; strx = strx.substring(0,chop-1); return strx+'...'; } function createSummaryAndThumb(pID){ var div = document.getElementById(pID); var imgtag = ""; var img = div.getElementsByTagName("img"); var summ = summary_noimg; if(img.length>=1) { imgtag = ''; summ = summary_img; } var summary = imgtag + '
' + removeHtmlTag(div.innerHTML,summ) + '
'; div.innerHTML = summary; div.style.textAlign = "justify"; }