/* Here i used tooltip for elements for better interaction*/
jQuery(document).ready(function(){
	
	$('a.tipsy').tipsy({
	
		delayIn: 0,      // delay before showing tooltip (ms)
		delayOut: 0,     // delay before hiding tooltip (ms)
		fade: true,     // fade tooltips in/out?
		fallback: '',    // fallback text to use when no tooltip text
		gravity: 's',    // gravity
		html: false,     // is tooltip content HTML?
		live: false,     // use live event support?
		offset: 15,       // pixel offset of tooltip from element
		opacity: 0.8,    // opacity of tooltip
		title: 'title',  // attribute/callback containing tooltip text
		trigger: 'hover' // how tooltip is triggered - hover | focus | manual
	
	});
	
});


$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});


	jQuery(document).ready(function() {
		jQuery(".topMenuAction_glory").click( function() {
			if (jQuery("#openCloseIdentifier_glory").is(":hidden")) {
				jQuery("#slider_glory").animate({ 
					marginLeft: "-289px"
					}, 300 );
				//jQuery("#topMenuImage").html('<img src="http://www.pepsiworld.com.pk/worldcup/wp-content/themes/Pepsi/images/open.png" alt="Open Live Scorecard" />');
				jQuery("#openCloseIdentifier_glory").show();
			} else {
				jQuery("#slider_glory").animate({ 
					marginLeft: "0px"
					}, 300 );
			//	jQuery("#topMenuImage").html('<img src="http://www.pepsiworld.com.pk/worldcup/wp-content/themes/Pepsi/images/close.png" alt="Close Live Scorecard" />');
				jQuery("#openCloseIdentifier_glory").hide();
			}
		return false;
		});  
	});
	
		jQuery(document).ready(function() {
		jQuery(".topMenuAction_tip").click( function() {
			if (jQuery("#openCloseIdentifier_tip").is(":hidden")) {
				jQuery("#slider_tip").animate({ 
					marginLeft: "-289px"
					}, 300 );
				//jQuery("#topMenuImage").html('<img src="http://www.pepsiworld.com.pk/worldcup/wp-content/themes/Pepsi/images/open.png" alt="Open Live Scorecard" />');
				jQuery("#openCloseIdentifier_tip").show();
			} else {
				jQuery("#slider_tip").animate({ 
					marginLeft: "0px"
					}, 300 );
			//	jQuery("#topMenuImage").html('<img src="http://www.pepsiworld.com.pk/worldcup/wp-content/themes/Pepsi/images/close.png" alt="Close Live Scorecard" />');
				jQuery("#openCloseIdentifier_tip").hide();
			}
		return false;
		});  
	});

