2011-11-15 20:53:38 +00:00
|
|
|
|
|
|
|
var $j = jQuery.noConflict();
|
|
|
|
$j(document).ready(function(){
|
2012-02-06 18:53:25 +00:00
|
|
|
// caching the selections to speed up response
|
|
|
|
var tabs = $j('#tabs');
|
2012-02-07 18:41:21 +00:00
|
|
|
var tabs1 = $j('li.tabs1');
|
|
|
|
var tabs2 = $j('li.tabs2');
|
|
|
|
var tabs3 = $j('li.tabs3');
|
|
|
|
var tabs4 = $j('li.tabs4');
|
2012-02-06 18:53:25 +00:00
|
|
|
var tabId1 = $j('#tabs-1');
|
|
|
|
var tabId2 = $j('#tabs-2');
|
|
|
|
var tabId3 = $j('#tabs-3');
|
|
|
|
var tabId4 = $j('#tabs-4');
|
|
|
|
var contentBlockContent = $j('#content-block-content');
|
|
|
|
|
|
|
|
tabs1.click(function(){
|
2012-02-08 13:50:29 +00:00
|
|
|
tabs.find('.active').removeClass('active');
|
2011-11-15 20:53:38 +00:00
|
|
|
$j(this).addClass('active');
|
2012-02-07 18:41:21 +00:00
|
|
|
contentBlockContent.find('div.active').removeClass('active');
|
2012-02-06 18:53:25 +00:00
|
|
|
tabId1.addClass('active').show(300);
|
|
|
|
tabId2.hide(200);
|
|
|
|
tabId3.hide(200);
|
|
|
|
tabId4.hide(200);
|
2011-11-15 20:53:38 +00:00
|
|
|
});
|
2012-02-06 18:53:25 +00:00
|
|
|
tabs2.click(function(){
|
2012-02-08 13:50:29 +00:00
|
|
|
tabs.find('.active').removeClass('active');
|
2011-11-15 20:53:38 +00:00
|
|
|
$j(this).addClass('active');
|
2012-02-07 18:41:21 +00:00
|
|
|
contentBlockContent.find('div.active').removeClass('active');
|
2012-02-06 18:53:25 +00:00
|
|
|
tabId2.addClass('active').show(300);
|
|
|
|
tabId1.hide(200);
|
|
|
|
tabId3.hide(200);
|
|
|
|
tabId4.hide(200);
|
2011-11-15 20:53:38 +00:00
|
|
|
});
|
2012-02-06 18:53:25 +00:00
|
|
|
tabs3.click(function(){
|
2012-02-08 13:50:29 +00:00
|
|
|
tabs.find('.active').removeClass('active');
|
2011-11-15 20:53:38 +00:00
|
|
|
$j(this).addClass('active');
|
2012-02-07 18:41:21 +00:00
|
|
|
contentBlockContent.find('div.active').removeClass('active');
|
2012-02-06 18:53:25 +00:00
|
|
|
tabId3.addClass('active').show(300);
|
|
|
|
tabId2.hide(200);
|
|
|
|
tabId1.hide(200);
|
|
|
|
tabId4.hide(200);
|
2011-11-15 20:53:38 +00:00
|
|
|
});
|
2012-02-06 18:53:25 +00:00
|
|
|
tabs4.click(function(){
|
2012-02-08 13:50:29 +00:00
|
|
|
tabs.find('.active').removeClass('active');
|
2011-11-15 20:53:38 +00:00
|
|
|
$j(this).addClass('active');
|
2012-02-07 18:41:21 +00:00
|
|
|
contentBlockContent.find('div.active').removeClass('active');
|
2012-02-06 18:53:25 +00:00
|
|
|
tabId4.addClass('active').show(300);
|
|
|
|
tabId2.hide(200);
|
|
|
|
tabId1.hide(200);
|
|
|
|
tabId3.hide(200);
|
2011-11-15 20:53:38 +00:00
|
|
|
});
|
2012-02-03 17:04:09 +00:00
|
|
|
$j('.findtheungluers').click(function(){
|
2012-02-08 13:50:29 +00:00
|
|
|
tabs.find('.active').removeClass('active');
|
2012-02-03 17:04:09 +00:00
|
|
|
$j('#supporters').addClass('active');
|
2012-02-07 18:41:21 +00:00
|
|
|
contentBlockContent.find('div.active').removeClass('active');
|
2012-02-06 18:53:25 +00:00
|
|
|
tabId3.addClass('active').show(300);
|
|
|
|
tabId2.hide(200);
|
|
|
|
tabId1.hide(200);
|
|
|
|
tabId4.hide(200);
|
2012-02-03 17:04:09 +00:00
|
|
|
});
|
2011-11-15 20:53:38 +00:00
|
|
|
});
|