//Brandkits - jQuery Scripts 2011
//webapp list entrepreneurs
function brand(kits){
	jQuery(".three:nth-child(3n+2)").addClass('last');//add class 3rd child
	jQuery(".xugxn").each(function(){
		var e=jQuery(this).find(".xthis").next("div");//get and find next div
		var u=jQuery(this).find(".xthis img");//get div class xthis image
		
		var g=u.attr(kits);
		var n=e.find("img").attr(kits);
		u.hover(function(){
			jQuery(this).attr(kits,n).css({"opacity":"0.0"}).fadeTo("3500",0.9);
           
		},
		function(){
			jQuery(this).attr(kits,g).css({"opacity":"0.0"}).fadeTo("3500",0.9);
		}
		);
	});
}
brand("src");
//end
//webapp details entrepreneur
function xlid_e(ugen,r,p){
	jQuery(ugen).click(function(){
                jQuery(ugen).addClass(r);
		if(jQuery(this).next().is(":hidden")){			
			jQuery(this).toggleClass(p).next().slideDown("slow").css({"opacity":"0.2"}).fadeTo("slow",0.9);
		}else{
			jQuery(this).toggleClass(p).next().slideUp("slow").css({"opacity":"0.2"}).fadeTo("fast",0.9);
		}
	});
}
xlid_e(".accordn","xopen","xclose");
//end
//about - add class
function addClass(e,p,x){
	jQuery(".ext img").addClass(x);
	jQuery(".ext:even").addClass(e);
	jQuery(".ext:odd").addClass(p);	
}
addClass('left','right','br_black');
//end
//webapp home - add/remove class
function find(thisclass){
	if(thisclass === undefined){
		jQuery(".npad .left:eq(2)").addClass("last");
		jQuery(".col-2 .last:eq(0)").removeClass("right").addClass("left");
		jQuery(".class-b:eq(1)").removeClass("planit_text").addClass("designit_text");
                jQuery(".class-a:eq(1)").removeClass("number-1").addClass("number-2");
                jQuery(".class-a:eq(2)").removeClass("number-1").addClass("number-3");
	}
}
find();
//end here
//webapp entrepreneur text-limit
function textlimit(index, content, xclass){
	jQuery(xclass).each(function(){
		var str = jQuery(this).text();
		jQuery(this).text(str.substring(index,content) +' ...');
	});
}
textlimit(0, 170, 'span.limit');//change these: 0 - text from, 170 - text limit, span.limit - span.class;
//end here

