


/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/various/tabbed_pages.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */


function dropdowntabbedpages()
{	
	var e, i = 0;
	//alert(document.getElementById('dropdown-wrapper'));
	if(document.getElementById('dropdown-wrapper') != null)
	{
	while (e = document.getElementById('dropdown-wrapper').getElementsByTagName ('DIV') [i++]) 
	{		
		if (e.className == 'on' || e.className == 'off') 
		{
			e.onclick = function () 
			{				
				if (document.getElementById('content-container') != null)
					var main = document.getElementById('content-container');
				if (document.getElementById('contentcontainer') != null)
					var main = document.getElementById('contentcontainer');
				var getEls = main.getElementsByTagName('div');
				max = this.getAttribute('title');
				if(document.getElementById(max) == null)
				{
					for (var z=0; z<getEls.length; z++) 
					{
						getEls[z].className=getEls[z].className.replace('on', 'off');
						getEls[z].className=getEls[z].className.replace('hide', 'show');
					}					
				} else {
					for (var z=0; z<getEls.length; z++) 
					{
						getEls[z].className=getEls[z].className.replace('show', 'hide');
						getEls[z].className=getEls[z].className.replace('on', 'off');
					}
					document.getElementById(max).className = "show";
				}
				this.className = 'on';		
				$(".viewby").text(max);
				var jp = $( ".viewby" );
				jp.css( "font-weight", 800 );					
			}
			if(window.location.href.indexOf("#")!= -1)
			{			
				var bookmark = window.location.href.substr(window.location.href.lastIndexOf("#")+1,window.location.href.length); 
				
				if(bookmark != "")
				{
					max = bookmark.replace(/%20/g, ' ');
				} else {
					max = "All";
				}
				if (document.getElementById('content-container') != null)
					var main = document.getElementById('content-container');
				if (document.getElementById('contentcontainer') != null)
					var main = document.getElementById('contentcontainer');
				var getEls = main.getElementsByTagName('div');
				for (var z=0; z<getEls.length; z++) 
				{
					getEls[z].className=getEls[z].className.replace('show', 'hide');
					getEls[z].className=getEls[z].className.replace('on', 'off');
				}
				this.className = 'on';
				if(document.getElementById(max) == null)
					max = "All";
					
				document.getElementById(max).className = "show";
				$(".viewby").text(max);
				var jp = $( ".viewby" );
				jp.css( "font-weight", 800 );							

			}					
		}
	}
	} else {
		if(window.location.href.indexOf("#")!= -1)
					{			
						var bookmark = window.location.href.substr(window.location.href.lastIndexOf("#")+1,window.location.href.length); 
						
						if(bookmark != "")
						{
							max = bookmark.replace(/%20/g, ' ');
						} else {
							max = "All";
						}
						if (document.getElementById('content-container') != null)
							var main = document.getElementById('content-container');
						if (document.getElementById('contentcontainer') != null)
							var main = document.getElementById('contentcontainer');
						var getEls = main.getElementsByTagName('div');
						for (var z=0; z<getEls.length; z++) 
						{
							getEls[z].className=getEls[z].className.replace('show', 'hide');
							getEls[z].className=getEls[z].className.replace('on', 'off');
						}
						this.className = 'on';
						if(document.getElementById(max) == null)
							max = "All";
							
						document.getElementById(max).className = "show";
						$(".viewby").text(max);
						var jp = $( ".viewby" );
						jp.css( "font-weight", 800 );				
				}	
	
	}
}

function redirect(h){
	window.location = h;
}
/* ------------------------------------------------------------------------
	Class: prettyPhoto
	Use: Lightbox clone for jQuery
	Author: Stephane Caron (http://www.no-margin-for-errors.com)
	Version: 2.5.4
------------------------------------------------------------------------- */

(function($) {
	$.prettyPhoto = {version: '2.5.4'};

	$.fn.prettyPhoto = function(settings) {
		settings = jQuery.extend({
			animationSpeed: 'normal', /* fast/slow/normal */
			padding: 40, /* padding for each side of the picture */
			opacity: 0.80, /* Value between 0 and 1 */
			showTitle: true, /* true/false */
			allowresize: true, /* true/false */
			theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
			hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
			modal: false, /* If set to true, only the close button will close the window */
			changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
			callback: function(){} /* Called when prettyPhoto is closed */
		}, settings);
		
		// Fallback to a supported theme for IE6
		if(!$.support.opacity){
			settings.theme = "light_square";
		}
		
		
		if($('.pp_overlay').size() == 0) {
			_buildOverlay(); // If the overlay is not there, inject it!
		}else{
			// Set my global selectors
			$pp_pic_holder = $('.pp_pic_holder');
			$ppt = $('.ppt');
		}
		
		// Global variables accessible only by prettyPhoto
		var doresize = true, percentBased = false, correctSizes,
		
		// Cached selectors
		$pp_pic_holder, $ppt,
		
		// prettyPhoto container specific
		pp_contentHeight, pp_contentWidth, pp_containerHeight, pp_containerWidth, pp_type = 'image',
	
		//Gallery specific
		setPosition = 0,

		// Global elements
		$scrollPos = _getScroll();
	
		// Window/Keyboard events
		$(window).scroll(function(){ $scrollPos = _getScroll(); _centerOverlay(); _resizeOverlay(); });
		$(window).resize(function(){ _centerOverlay(); _resizeOverlay(); });
		$(document).keydown(function(e){
			if($pp_pic_holder.is(':visible'))
			switch(e.keyCode){
				case 37:
					$.prettyPhoto.changePage('previous');
					break;
				case 39:
					$.prettyPhoto.changePage('next');
					break;
				case 27:
					if(!settings.modal)
					$.prettyPhoto.close();
					break;
			};
	    });
	
		// Bind the code to each links
		$(this).each(function(){
			$(this).bind('click',function(){
				link = this; // Fix scoping
				
				// Find out if the picture is part of a set
				theRel = $(this).attr('rel');
				galleryRegExp = /\[(?:.*)\]/;
				theGallery = galleryRegExp.exec(theRel);
				
				// Build the gallery array
				var images = new Array(), titles = new Array(), descriptions = new Array();
				if(theGallery){
					$('a[rel*='+theGallery+']').each(function(i){
						if($(this)[0] === $(link)[0]) setPosition = i; // Get the position in the set
						images.push($(this).attr('href'));
						titles.push($(this).find('img').attr('alt'));
						descriptions.push($(this).attr('title'));
					});
				}else{
					images = $(this).attr('href');
					titles = ($(this).find('img').attr('alt')) ?  $(this).find('img').attr('alt') : '';
					descriptions = ($(this).attr('title')) ?  $(this).attr('title') : '';
				}

				$.prettyPhoto.open(images,titles,descriptions);
				return false;
			});
		});
	
		
		/**
		* Opens the prettyPhoto modal box.
		* @param image {String,Array} Full path to the image to be open, can also be an array containing full images paths.
		* @param title {String,Array} The title to be displayed with the picture, can also be an array containing all the titles.
		* @param description {String,Array} The description to be displayed with the picture, can also be an array containing all the descriptions.
		*/
		$.prettyPhoto.open = function(gallery_images,gallery_titles,gallery_descriptions) {
			// To fix the bug with IE select boxes
			if($.browser.msie && $.browser.version == 6){
				$('select').css('visibility','hidden');
			};
			
			// Hide the flash
			if(settings.hideflash) $('object,embed').css('visibility','hidden');
			
			// Convert everything to an array in the case it's a single item
			images = $.makeArray(gallery_images);
			titles = $.makeArray(gallery_titles);
			descriptions = $.makeArray(gallery_descriptions);
			
			if($('.pp_overlay').size() == 0) {
				_buildOverlay(); // If the overlay is not there, inject it!
			}else{
				// Set my global selectors
				$pp_pic_holder = $('.pp_pic_holder');
				$ppt = $('.ppt');
			}
			
			$pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); // Set the proper theme

			isSet = ($(images).size() > 0) ?  true : false; // Find out if it's a set

			_getFileType(images[setPosition]); // Set the proper file type

			_centerOverlay(); // Center it

			// Hide the next/previous links if on first or last images.
			_checkPosition($(images).size());
		
			$('.pp_loaderIcon').show(); // Do I need to explain?
		
			// Fade the content in
			$('div.pp_overlay').show().fadeTo(settings.animationSpeed,settings.opacity, function(){
				$pp_pic_holder.fadeIn(settings.animationSpeed,function(){
					// Display the current position
					$pp_pic_holder.find('p.currentTextHolder').text((setPosition+1) + settings.counter_separator_label + $(images).size());

					// Set the description
					if(descriptions[setPosition]){
						$pp_pic_holder.find('.pp_description').show().html(unescape(descriptions[setPosition]));
					}else{
						$pp_pic_holder.find('.pp_description').hide().text('');
					};

					// Set the title
					if(titles[setPosition] && settings.showTitle){
						hasTitle = true;
						$ppt.html(unescape(titles[setPosition]));
					}else{
						hasTitle = false;
					};
					
					// Inject the proper content
					if(pp_type == 'image'){
						// Set the new image
						imgPreloader = new Image();

						// Preload the neighbour images
						nextImage = new Image();
						if(isSet && setPosition > $(images).size()) nextImage.src = images[setPosition + 1];
						prevImage = new Image();
						if(isSet && images[setPosition - 1]) prevImage.src = images[setPosition - 1];

						pp_typeMarkup = '<img id="fullResImage" src="" />';				
						$pp_pic_holder.find('#pp_full_res')[0].innerHTML = pp_typeMarkup;

						$pp_pic_holder.find('.pp_content').css('overflow','hidden');
						$pp_pic_holder.find('#fullResImage').attr('src',images[setPosition]);

						imgPreloader.onload = function(){
							// Fit item to viewport
							correctSizes = _fitToViewport(imgPreloader.width,imgPreloader.height);
							
							_showContent();
						};

						imgPreloader.src = images[setPosition];
					}else{
						// Get the dimensions
						movie_width = ( parseFloat(grab_param('width',images[setPosition])) ) ? grab_param('width',images[setPosition]) : "512";
						movie_height = ( parseFloat(grab_param('height',images[setPosition])) ) ? grab_param('height',images[setPosition]) : "318";
						//movie_width = ( parseFloat(grab_param('width',images[setPosition])) ) ? grab_param('width',images[setPosition]) : "100%";
						//movie_height = ( parseFloat(grab_param('height',images[setPosition])) ) ? grab_param('height',images[setPosition]) : "100%";
						

						// If the size is % based, calculate according to window dimensions
						if(movie_width.indexOf('%') != -1 || movie_height.indexOf('%') != -1){
							movie_height = ($(window).height() * parseFloat(movie_height) / 100) - 100;
							movie_width = ($(window).width() * parseFloat(movie_width) / 100) - 100;
							percentBased = true;
						}

						movie_height = parseFloat(movie_height);
						movie_width = parseFloat(movie_width);

						if(pp_type == 'quicktime') movie_height+=15; // Add space for the control bar

						// Fit item to viewport
						correctSizes = _fitToViewport(movie_width,movie_height);

						if(pp_type == 'flash'){
							flash_vars = images[setPosition];
							
							//pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="sameDomain" /><param name="movie" value="'+ flash_vars +'" /><embed src="'+ flash_vars +'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="sameDomain" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';
							if(flash_vars.indexOf("vplayer.swf") == -1)
							{
								pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="sameDomain" /><param name="movie" value="'+ flash_vars +'" /><embed src="'+ flash_vars +'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="sameDomain" width="'+correctSizes['width']+'" height="'+correctSizes['height']+'"></embed></object>';
							} else {
								
								//streamvideo = flash_vars.substring(flash_vars.indexOf("file=")+5);
								//alert(streamvideo);
								//pp_typeMarkup = '<embed  flashvars="file=http://stream.infosys.com/video_app/'+streamvideo+'&autostart=true&&backcolor=000000&frontcolor=EEEEEE&lightcolor=66FFFF&logo.file=/SiteCollectionImages/infosys-logo.png&logo.position=bottom-left&plugins=viral-2h&viral.allowmenu=false&viral.onpause=false&viral.oncomplete=false"  allowfullscreen="true"  allowscripaccess="always"  id="player1"  name="player1"  src="/richmedia/players/vplayer.swf"  width="512"  height="318"/>';
								xmlplayfile = flash_vars.substring(flash_vars.indexOf("playlistfile=")+13);
								
								//pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="512" height="312" id="vplayers1" name="vplayers1"><param name="movie" value="/richmedia/players/vplayer.swf"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="flashvars" value="playlistfile='+xmlplayfile+'&autostart=true&backcolor=000000&frontcolor=EEEEEE&lightcolor=66FFFF&logo.file=/SiteCollectionImages/infosys-logo.png&logo.position=bottom-left&abouttext=Infosys Limited&aboutlink=http://www.infosys.com&plugins=/richmedia/players/viral-2h.swf&viral.allowmenu=false&viral.onpause=false&viral.oncomplete=false"><embed type="application/x-shockwave-flash" id="vplayers2" name="vplayers2" src="/richmedia/players/vplayer.swf"width="512" height="312" allowscriptaccess="always" allowfullscreen="true" flashvars="playlistfile='+xmlplayfile+'&autostart=true&backcolor=000000&frontcolor=EEEEEE&lightcolor=66FFFF&logo.file=/SiteCollectionImages/infosys-logo.png&logo.position=bottom-left&abouttext=Infosys Limited&aboutlink=http://www.infosys.com&plugins=/richmedia/players/viral-2h.swf&viral.allowmenu=false&viral.onpause=false&viral.oncomplete=false"/></object>';
								
								
								
								pp_typeMarkup = '';
								
								//jwplayer('pp_full_res').setup({'flashplayer': '/richmedia/players/vplayer.swf','playlistfile': xmlplayfile,'backcolor': '000000', 'frontcolor': 'EEEEEE',	'lightcolor': '66FFFF','controlbar': 'bottom','width': '512','height': '312','logo.file': '/SiteCollectionImages/infosys-logo.png',	'logo.position':'bottom-left','author': 'Infosys Limited'});
								
								//jwplayer('pp_full_res').setup({'flashplayer': '/richmedia/players/vplayer.swf', 'playlistfile': xmlplayfile,'backcolor': '000000', 'frontcolor': 'EEEEEE', 'lightcolor': '66FFFF', 'controlbar': 'bottom','width': '512', 'height': '312','logo.file': '/SiteCollectionImages/infosys-logo.png','logo.position':'bottom-left','author': 'Infosys Limited','abouttext':'Infosys Limited','aboutlink': 'http://www.infosys.com', 'plugins': {'/richmedia/players/viral-2h.swf': {onpause: 'false',oncomplete:'false',allowmenu:'false',functions:'embed' } }});
								
								
								
								
								
								//$('#pp_full_res_wrapper').removeClass('').addClass('pp_videovplayer');
								
							}							
						}
						else if(pp_type == 'iframe'){
							movie_url = images[setPosition];
							movie_url = movie_url.substr(0,movie_url.indexOf('iframe')-1);

							pp_typeMarkup = '<iframe src ="'+movie_url+'" width="'+(correctSizes['width']-10)+'" height="'+(correctSizes['height']-10)+'" frameborder="no"></iframe>';
						}

						// Show content
						_showContent();
					}
				});
			});
		};
		
		/**
		* Change page in the prettyPhoto modal box
		* @param direction {String} Direction of the paging, previous or next.
		*/
		$.prettyPhoto.changePage = function(direction){
			if(direction == 'previous') {
				setPosition--;
				if (setPosition < 0){
					setPosition = 0;
					return;
				}
			}else{
				if($('.pp_arrow_next').is('.disabled')) return;
				setPosition++;
			};

			// Allow the resizing of the images
			if(!doresize) doresize = true;

			_hideContent();
			$('a.pp_expand,a.pp_contract').fadeOut(settings.animationSpeed,function(){
				$(this).removeClass('pp_contract').addClass('pp_expand');
				$.prettyPhoto.open(images,titles,descriptions);
			});
		};
		
		/**
		* Closes the prettyPhoto modal box.
		*/
		$.prettyPhoto.close = function(){
			$pp_pic_holder.find('object,embed').css('visibility','hidden');
			
			$('div.pp_pic_holder,div.ppt').fadeOut(settings.animationSpeed);
			
			$('div.pp_overlay').fadeOut(settings.animationSpeed, function(){
				$('div.pp_overlay,div.pp_pic_holder,div.ppt').remove();
			
				// To fix the bug with IE select boxes
				if($.browser.msie && $.browser.version == 6){
					$('select').css('visibility','visible');
				};
				
				// Show the flash
				if(settings.hideflash) $('object,embed').css('visibility','visible');
				
				setPosition = 0;
				
				settings.callback();
			});
			
			doresize = true;
		};
	
		/**
		* Set the proper sizes on the containers and animate the content in.
		*/
		_showContent = function(){
			$('.pp_loaderIcon').hide();

			if($.browser.opera) {
				windowHeight = window.innerHeight;
				windowWidth = window.innerWidth;
			}else{
				windowHeight = $(window).height();
				windowWidth = $(window).width();
			};

			// Calculate the opened top position of the pic holder
			projectedTop = $scrollPos['scrollTop'] + ((windowHeight/2) - (correctSizes['containerHeight']/2));
			if(projectedTop < 0) projectedTop = 0 + $pp_pic_holder.find('.ppt').height();

			// Resize the content holder
			$pp_pic_holder.find('.pp_content').animate({'height':correctSizes['contentHeight']},settings.animationSpeed);
			
			// Resize picture the holder
			$pp_pic_holder.animate({
				'top': projectedTop,
				'left': ((windowWidth/2) - (correctSizes['containerWidth']/2)),
				'width': correctSizes['containerWidth']
			},settings.animationSpeed,function(){
				$pp_pic_holder.width(correctSizes['containerWidth']);
				$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(correctSizes['height']).width(correctSizes['width']);

				// Fade the new image
				$pp_pic_holder.find('#pp_full_res').fadeIn(settings.animationSpeed);

				// Show the nav
				if(isSet && pp_type=="image") { $pp_pic_holder.find('.pp_hoverContainer').fadeIn(settings.animationSpeed); }else{ $pp_pic_holder.find('.pp_hoverContainer').hide(); }
				$pp_pic_holder.find('.pp_details').fadeIn(settings.animationSpeed);

				// Show the title
				if(settings.showTitle && hasTitle){
					$ppt.css({
						'top' : $pp_pic_holder.offset().top - 20,
						'left' : $pp_pic_holder.offset().left + (settings.padding/2),
						'display' : 'none'
					});

					$ppt.fadeIn(settings.animationSpeed);
				};
			
				// Fade the resizing link if the image is resized
				if(correctSizes['resized']) $('a.pp_expand,a.pp_contract').fadeIn(settings.animationSpeed);
				
				// Once everything is done, inject the content if it's now a photo
				
					
				//if(pp_type != 'image') $pp_pic_holder.find('#pp_full_res')[0].innerHTML = pp_typeMarkup;
						
				if(pp_typeMarkup !='')
				{
				$pp_pic_holder.find('#pp_full_res')[0].innerHTML = pp_typeMarkup;
				} else {
					//$pp_pic_holder.find('#pp_full_res')[0].innerHTML = '';
					jwplayer('pp_full_res').setup({'autostart': 'true','flashplayer': '/richmedia/players/vplayer.swf', 'playlistfile': xmlplayfile,'backcolor': '000000', 'frontcolor': 'EEEEEE', 'lightcolor': '66FFFF', 'controlbar': 'bottom','width': '512', 'height': '312','logo.file': '/SiteCollectionImages/infosys-logo.png','logo.position':'bottom-left','author': 'Infosys Limited','abouttext':'Infosys Limited','aboutlink': 'http://www.infosys.com', 'plugins': {'/richmedia/players/viral-2h.swf': {onpause: 'false',oncomplete:'false',allowmenu:'false',functions:'embed' } }});
					
					$('#pp_full_res_wrapper').removeClass('').addClass('pp_videovplayer');
					//$('#pp_full_res').css('display','block');
					//$('#pp_full_res').show();
					//alert($pp_pic_holder.find('#pp_full_res')[0].innerHTML);
				}
						
				
				// Callback!
				settings.changepicturecallback();
			});
		};
		
		/**
		* Hide the content...DUH!
		*/
		function _hideContent(){
			// Fade out the current picture
			$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');
			$pp_pic_holder.find('.pp_hoverContainer,.pp_details').fadeOut(settings.animationSpeed);
			$pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){
				$('.pp_loaderIcon').show();
			});
			
			// Hide the title
			$ppt.fadeOut(settings.animationSpeed);
		}
	
		/**
		* Check the item position in the gallery array, hide or show the navigation links
		* @param setCount {integer} The total number of items in the set
		*/
		function _checkPosition(setCount){
			// If at the end, hide the next link
			if(setPosition == setCount-1) {
				$pp_pic_holder.find('a.pp_next').css('visibility','hidden');
				$pp_pic_holder.find('a.pp_arrow_next').addClass('disabled').unbind('click');
			}else{ 
				$pp_pic_holder.find('a.pp_next').css('visibility','visible');
				$pp_pic_holder.find('a.pp_arrow_next.disabled').removeClass('disabled').bind('click',function(){
					$.prettyPhoto.changePage('next');
					return false;
				});
			};
		
			// If at the beginning, hide the previous link
			if(setPosition == 0) {
				$pp_pic_holder.find('a.pp_previous').css('visibility','hidden');
				$pp_pic_holder.find('a.pp_arrow_previous').addClass('disabled').unbind('click');
			}else{
				$pp_pic_holder.find('a.pp_previous').css('visibility','visible');
				$pp_pic_holder.find('a.pp_arrow_previous.disabled').removeClass('disabled').bind('click',function(){
					$.prettyPhoto.changePage('previous');
					return false;
				});
			};
			
			// Hide the bottom nav if it's not a set.
			if(setCount > 1) {
				$('.pp_nav').show();
			}else{
				$('.pp_nav').hide();
			}
		};
	
		/**
		* Resize the item dimensions if it's bigger than the viewport
		* @param width {integer} Width of the item to be opened
		* @param height {integer} Height of the item to be opened
		* @return An array containin the "fitted" dimensions
		*/
		function _fitToViewport(width,height){
			hasBeenResized = false;
		
			_getDimensions(width,height);
			
			// Define them in case there's no resize needed
			imageWidth = width;
			imageHeight = height;

			windowHeight = $(window).height();
			windowWidth = $(window).width();
		
			if( ((pp_containerWidth > windowWidth) || (pp_containerHeight > windowHeight)) && doresize && settings.allowresize && !percentBased) {
				hasBeenResized = true;
				notFitting = true;
			
				while (notFitting){
					if((pp_containerWidth > windowWidth)){
						imageWidth = (windowWidth - 200);
						imageHeight = (height/width) * imageWidth;
					}else if((pp_containerHeight > windowHeight)){
						imageHeight = (windowHeight - 200);
						imageWidth = (width/height) * imageHeight;
					}else{
						notFitting = false;
					};

					pp_containerHeight = imageHeight;
					pp_containerWidth = imageWidth;
				};
			
				_getDimensions(imageWidth,imageHeight);
			};

			return {
				width:imageWidth,
				height:imageHeight,
				containerHeight:pp_containerHeight,
				containerWidth:pp_containerWidth,
				contentHeight:pp_contentHeight,
				contentWidth:pp_contentWidth,
				resized:hasBeenResized
			};
		};
		
		/**
		* Get the containers dimensions according to the item size
		* @param width {integer} Width of the item to be opened
		* @param height {integer} Height of the item to be opened
		*/
		function _getDimensions(width,height){
			$pp_pic_holder.find('.pp_details').width(width).find('.pp_description').width(width - parseFloat($pp_pic_holder.find('a.pp_close').css('width'))); /* To have the correct height */
			
			// Get the container size, to resize the holder to the right dimensions
			pp_contentHeight = height + $pp_pic_holder.find('.pp_details').height() + parseFloat($pp_pic_holder.find('.pp_details').css('marginTop')) + parseFloat($pp_pic_holder.find('.pp_details').css('marginBottom'));
			pp_contentWidth = width;
			pp_containerHeight = pp_contentHeight + $pp_pic_holder.find('.ppt').height() + $pp_pic_holder.find('.pp_top').height() + $pp_pic_holder.find('.pp_bottom').height();
			pp_containerWidth = width + settings.padding;
		}
	
		function _getFileType(itemSrc){
			if (itemSrc.match(/youtube\.com\/watch/i)) {
				pp_type = 'youtube';
			}else if(itemSrc.indexOf('.mov') != -1){ 
				pp_type = 'quicktime';
			}else if(itemSrc.indexOf('.swf') != -1){
				pp_type = 'flash';
			}else if(itemSrc.indexOf('iframe') != -1){
				pp_type = 'iframe'
			}else{
				pp_type = 'image';
			};
		};
	
		function _centerOverlay(){
			if($.browser.opera) {
				windowHeight = window.innerHeight;
				windowWidth = window.innerWidth;
			}else{
				windowHeight = $(window).height();
				windowWidth = $(window).width();
			};

			if(doresize) {
				$pHeight = $pp_pic_holder.height();
				$pWidth = $pp_pic_holder.width();
				$tHeight = $ppt.height();
				
				projectedTop = (windowHeight/2) + $scrollPos['scrollTop'] - ($pHeight/2);
				if(projectedTop < 0) projectedTop = 0 + $tHeight;
				
				$pp_pic_holder.css({
					'top': projectedTop,
					'left': (windowWidth/2) + $scrollPos['scrollLeft'] - ($pWidth/2)
				});
		
				$ppt.css({
					'top' : projectedTop - $tHeight,
					'left' : (windowWidth/2) + $scrollPos['scrollLeft'] - ($pWidth/2) + (settings.padding/2)
				});
			};
		};
	
		function _getScroll(){
			if (self.pageYOffset) {
				scrollTop = self.pageYOffset;
				scrollLeft = self.pageXOffset;
			} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
				scrollTop = document.documentElement.scrollTop;
				scrollLeft = document.documentElement.scrollLeft;
			} else if (document.body) {// all other Explorers
				scrollTop = document.body.scrollTop;
				scrollLeft = document.body.scrollLeft;	
			}
			
			return {scrollTop:scrollTop,scrollLeft:scrollLeft};
		};
	
		function _resizeOverlay() {
			$('div.pp_overlay').css({
				'height':$(document).height(),
				'width':$(window).width()
			});
		};
	
		function _buildOverlay(){
			toInject = "";
			
			// Build the background overlay div
			toInject += "<div class='pp_overlay'></div>";
			
			// Basic HTML for the picture holder
			toInject += '<div class="pp_pic_holder"><div class="pp_top"><a class="pp_close" href="#">Close</a></div><div class="pp_content"><div class="pp_loaderIcon"></div><div id="pp_full_res"></div><div class="pp_details clearfix"><p class="pp_description"></p><div class="pp_bottom"></div></div></div></div>';
			
			$('body').append(toInject);
			
			// So it fades nicely
			$('div.pp_overlay').css('opacity',0);
			
			// Set my global selectors
			$pp_pic_holder = $('.pp_pic_holder');
			$ppt = $('.ppt');
			
			$('div.pp_overlay').css('height',$(document).height()).hide().bind('click',function(){
				if(!settings.modal)
				$.prettyPhoto.close();
			});

			$('a.pp_close').bind('click',function(){ $.prettyPhoto.close(); return false; });

			$('a.pp_expand').bind('click',function(){
				$this = $(this); // Fix scoping
				
				// Expand the image
				if($this.hasClass('pp_expand')){
					$this.removeClass('pp_expand').addClass('pp_contract');
					doresize = false;
				}else{
					$this.removeClass('pp_contract').addClass('pp_expand');
					doresize = true;
				};
			
				_hideContent();
				
				$pp_pic_holder.find('.pp_hoverContainer, .pp_details').fadeOut(settings.animationSpeed);
				$pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){
					$.prettyPhoto.open(images,titles,descriptions);
				});
		
				return false;
			});
		
			$pp_pic_holder.find('.pp_previous, .pp_arrow_previous').bind('click',function(){
				$.prettyPhoto.changePage('previous');
				return false;
			});
		
			$pp_pic_holder.find('.pp_next, .pp_arrow_next').bind('click',function(){
				$.prettyPhoto.changePage('next');
				return false;
			});

			$pp_pic_holder.find('.pp_hoverContainer').css({
				'margin-left': settings.padding/2
			});
		};
	};
	
	function grab_param(name,url){
	  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	  var regexS = "[\\?&]"+name+"=([^&#]*)";
	  var regex = new RegExp( regexS );
	  var results = regex.exec( url );
	  if( results == null )
	    return "";
	  else
	    return results[1];
	}
})(jQuery);

    $(document).ready(function(){
	if(document.getElementById('galler') != null)
		$(".gallery a[rel^='prettyPhoto']").prettyPhoto();	
   });

jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
/*  
 *  Slider Kit v1.8 (packed) - Sliding contents with jQuery
 *  http://www.kyrielles.net/sliderkit
 *  
 *  Copyright (c) 2010-2011 Alan Frog
 *  Licensed under the GNU General Public License
 *  See <license.txt> or <http://www.gnu.org/licenses/>
 *  
 *  Requires : jQuery v1.3+ <http://jquery.com/>
 * 
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){2m=7(){o n=3;3.2n=7(c,d){3.4=$.3n({},3.2o,d);3.8={1b:3.4.t+"-1b",1c:3.4.t+"-1c",y:3.4.t+"-y",B:3.4.t+"-1c-3o",N:3.4.t+"-1c-3p",13:3.4.t+"-y-3q",v:3.4.t+"-v",J:3.4.t+"-v-3r",2p:3.4.t+"-v-1d",14:3.4.t+"-v-2q",15:3.4.t+"-v-2r",F:3.4.t+"-1d-3s",1e:3.4.t+"-3t-1d",2s:3.4.t+"-1O-2q",2t:3.4.t+"-1O-2r",G:3.4.t+"-3u-1d",O:3.4.t+"-1O-1d"};3.q=$(c);3.y=$("."+3.8.1c,3.q);3.u=3.y.K();3.v=$("."+3.8.v,3.q);3.J=$("."+3.8.J,3.v);3.H=3.u>0?1:0;3.1x=3.J.K()>0?1:0;3.1P=3.q.P();3.2u=3.q.Q();6(!3.H&&!3.1x){3.R("1Q #3v",3.4.S,1)}x 6(3.1P=="16"&&!3.4.1y){3.R("1Q #3w",3.4.S,1)}3.q.z("2v","3x");3.p=0;3.1f=0;3.1g=0;3.L=r;3.1R=0;3.1h=1;3.1z=0;3.T=r;3.3y=9;3.3z=1;3.2w=9;3.2x=1i 1A;3.2y=1i 1A;3.2z=1i 1A;3.2A=1i 1A;6(3.1x){3.2B()}3.2C();6(3.H){3.1S=$("."+3.8.y,3.q);6(3.4.1B=="1C"){3.2D()}}3.1D=!3.H?1:0;6(3.4.1T){3.q.1T(7(a,b){b>0?n.1E():n.1j();w 9})}6(3.4.2E){3.q.3A(7(a){6(a.2F==37){n.1E()}x 6(a.2F==39){n.1j()}})}6(3.4.2G&&3.H){3.1S.U(7(){n.1j();w 9})}3.2H=3.4.1F>=3.u?3.u-1:3.4.1F<0?0:3.4.1F;6(3.4.2I){1U{3.3B()}1V(17){3.R(17,3.4.S,0)}}6(3.4.1W){1U{3.3C(3.4.1W)}1V(17){3.R(17,3.4.S,0)}}3.1G(3.2H,r);6(3.4.16){3.1k();3.2J()}6(3.4.1X){1U{3.3D(3.4.1X)}1V(17){3.R(17,3.4.S,0)}}w 3};3.2o={t:"1Y",1F:0,16:s,2K:3E,1H:9,1T:9,2E:9,1l:9,V:5,2L:9,2M:9,2N:9,1Z:9,2O:s,2P:"1C",20:7(){},21:7(){},I:r,2Q:3F,2R:r,1B:"22",1I:3G,23:r,2S:"1m",24:7(){},25:7(){},2T:9,2G:9,C:9,2U:9,2V:9,1y:9,2W:s,2I:9,1W:9,1X:9,S:9};3.R=7(a,b,c){6(b){3H("3I 3J 3K!\\3L = "+a+" (3M 3N 3O 3P)\\2X 2Y = "+3.q.2Z("2Y")+"\\2X 26 = "+3.q.2Z("26"))}6(c){w 9}};3.2J=7(){6(!3.1J&&!3.4.1H){3.q.30(7(){6(n.T!=r){n.1n()}},7(){n.1k()})}6(3.4.1H){3.q.3Q(7(){6(n.T==r){n.1k()}})}};3.2B=7(){3.M=$("3R",3.J);3.D=$("27",3.M);3.1K=3.D.K();6(3.H&&(3.1K!=3.u)&&3.v.K()==1){3.R("1Q #3S",3.4.S,1)}6(3.4.2V){3.4.V=3.u}x{7 1o(a){28=n.D.z(a);6(28!="16"&&a!=""&&a!="3T"){w 31(28)}x w 0}o c=3.4.C?3.v.P():3.v.Q();o d=3.D.3U(s);o e=3.D.3V(s);o f=1o("1p-W")+1o("1p-3W");o g=1o("1p-X")+1o("1p-3X");3.Y=3.4.C?e:d;3.29=3.Y*3.1K;3.1q=(3.4.V*3.Y)-(3.4.C?g:f);3.1L=3.4.C?"X":"W";o h=3.4.C?"P":"Q";o i=3.4.C?"Q":"P";3.D.z({Q:3.D.Q(),P:3.D.P()});3.M.z(h,3.29+"2a");3.J.z({Q:3.4.C?d:3.1q,P:3.4.C?3.1q:e});6(3.4.2M){3.J.z(3.1L,(c-3.1q)/2).z("1p","0")}3.u=3.1K;6(3.u>3.4.V){3.1z=s;6(3.4.I==r||3.4.I<0||3.4.I>3.u){3.4.I=3.4.V}3.1M=$("."+3.8.2p,3.v);6(3.1M.K()>0){3.32()}}}6(3.4.2L&&3.H){3.D.2b(7(){n.1G(2c(3,"27"),$(3))})}x 6(3.H||3.4.1Z){3.D.U(7(){n.1G(2c(3,"27"),$(3));w 9})}7 2c(a,b){w $(b,$(a).2d()).3Y(a)}};3.32=7(){3.33=s;3.18=$("."+3.8.14,3.v);3.1r=$("."+3.8.15,3.v);3.18.U(7(){n.14();w 9});3.1r.U(7(){n.15();w 9});6(3.4.2N){3.18.2b(7(){n.14(s)});3.1r.2b(7(){n.15(s)});3.1M.3Z(7(){n.34()})}6(!3.4.1l){3.18.40(3.8.F)}};3.2e=7(){3.19=3.4.C?3.M.2f().X:3.M.2f().W;3.Z=10.41(10.1s(3.19)/3.Y);3.11=10.42((3.29-10.1s(3.19)-3.1q)/3.Y);6(3.11<0){3.11=0}};3.2C=7(){3.G=$("."+3.8.G,3.q);3.1a=$("."+3.8.O,3.q);3.1J=3.G.K()>0?1:0;3.O=3.1a.K()>0?1:0;6(3.1J){6(3.4.16){3.G.A(3.8.1e)}3.G.U(7(){6(n.G.1N(n.8.1e)){n.2g()}x{n.35()}w 9})}6(3.O){3.2h=$("."+3.8.2s,3.q);3.2i=$("."+3.8.2t,3.q);6(3.4.2T){3.1a.1t();$("."+3.8.y,3.q).30(7(){n.1a.36()},7(){n.1a.43()})}3.2h.U(7(){n.1E($(3));w 9});3.2i.U(7(){n.1j($(3));w 9})}};3.2D=7(){3.y.44(\'<38 26="\'+3.8.13+\'"></38>\');3.13=$("."+3.8.13,3.1S);3.13.z({"2f":"45"})};3.12=7(a,b,c,d,e){6(e&&3.T!=r){6(3.1J){3.2g()}6(3.4.1H){n.1n()}}6(a){6(a.1N(3.8.F)){w 9}}o f=0;o g=$(":46",3.4.2W?3.v:3.q).K()>0?1:0;6(!g&&!3.2w){3.1f=3.p;6(c==r&&!d){3.p=b=="-="?3.p+1:3.p-1}x 6(c!=r){c=31(c);3.p=c<0?0:c>3.u-1?3.u-1:c;o h=a?a.2d().2d().1N(3.8.J)?9:s:s}6(3.O){3.1a.E(3.8.F)}6(!3.4.1l){6(3.p==-1){3.p=0;f=1}6(3.p==0&&3.O){3.2h.A(3.8.F)}6(3.p==3.u){3.p=3.u-1;f=1}6(3.p==3.u-1){6(3.4.16){3.1n()}6(3.O){3.2i.A(3.8.F)}}}x 6(!3.1z){6(3.p==3.u){3.p=0}6(3.p==-1){3.p=3.u-1}}6(3.1z&&!f){3.3a(d,b,h)}6(3.1x){3.3b(3.p)}6(!(d&&!3.4.2O)){6(3.H){3.3c(3.p,b)}}6(3.1h){3.1h=0}}};3.3a=7(a,b,c){3.2e();o d=a?s:9;o e=0;6(!a){o f=10.1s(3.p+1-3.Z);o g=3.4.V-f+1;o h=3.p==0||3.p==3.u-1?1:0;6((3.4.1Z&&(g==1||f==1))&&!3.1h&&!h){e=3.4.I-1;d=s}6(g==0||f==0){d=s}6(c){o i=10.1s(3.1f-3.p);6(i>0){e=i;d=s}}6(b==""){6(3.1f==3.p&&!h){b=3.3d=="-="?"+=":"-="}x{b=3.1f<3.p?"-=":"+="}}3.3d=b}6(d){o j=e>0?e:3.4.I;o k=b=="-="?3.11:3.Z;o l=k<j?k:j;o m=l*3.Y;3.1g=b=="-="?3.Z+l:3.Z-l+3.4.V-1;6((b=="-="&&3.1g>3.p)||(b=="+="&&3.1g<3.p)){3.p=3.1g}6(3.4.1l){6(3.Z<=0&&b=="+="){b="-=";3.p=3.u-1;m=(3.11/3.4.I)*(3.Y*3.4.I)}x 6(3.11==0&&b=="-="){b="+=";3.p=0;m=10.1s(3.19)}}3.3e(b,m)}};3.3c=7(a,b){3.L=3.y.3f(a);o c=7(){6($.1u(n.4.25)){n.4.25()}n.1v(n.2y)};6(!3.L.1N(3.8.B)){6(3.1h){3.2j=3.4.2S;o d=1}x{o e=3.4.1y&&3.4.1B=="22"?"3g":"1m";3.2j=3.4.1y?e:3.4.1B}6($.1u(n.4.24)){n.4.24()}3.1v(3.2x);3.3h[3.2j](b,d,c)}};3.3e=7(a,b){o c=7(){6(!n.4.1l&&n.33){n.1M.E(n.8.F);n.2e();6(n.Z<=0){n.18.A(n.8.F)}x 6(n.11<=0){n.1r.A(n.8.F)}}6(n.1w){47(7(){n.1w=="-="?n.14():n.15()},0)}x 6($.1u(n.4.21)){n.4.21()}n.1v(n.2A)};6($.1u(n.4.20)){n.4.20()}n.1v(n.2z);3.3i[3.4.2P](a,b,c)};3.1v=7(c){$.3j(c,7(a,b){6($.1u(b)){b()}})};3.48=7(a){a.49=0};3.3h={1m:7(a,b,c){n.y.E(n.8.B).1t();n.L.A(n.8.B).2k();c()},1C:7(a,b,c){6(a==""){a=n.1R<n.p?"-=":"+="}n.1R=n.p;o d=a=="-="?"+":"-";o e=n.4.2U?"X":"W";o f=n.4.C?n.1P:n.2u;o g=e=="X"?{X:a+f}:{W:a+f};n.3k=$("."+n.8.N,n.q);n.3l=$("."+n.8.B,n.q);n.y.z(e,"0");n.3k.E(n.8.N).1t();n.3l.E(n.8.B).A(n.8.N);n.L.A(n.8.B).z(e,d+f+"2a").2k();n.13.3m(s,s).z(e,"0").2l(g,n.4.1I,n.4.23,7(){c()})},22:7(a,b,c){6(b){n.y.1t()}x{n.L.z("2v","1m")}$("."+n.8.N,n.q).E(n.8.N);$("."+n.8.B,n.q).3m(s,s).E(n.8.B).A(n.8.N);n.L.A(n.8.B).2l({"4a":"2k"},n.4.1I,n.4.23,7(){c()})},3g:7(a,b,c){n.y.E(n.8.B).1t();n.L.36(n.4.1I,7(){c()})}};3.3i={1m:7(a,b,c){o d=a=="-="?n.19-b:n.19+b;n.M.z(n.1L,d+"2a");c()},1C:7(a,b,c){n.M.2l(n.1L=="W"?{W:a+b}:{X:a+b},n.4.2Q,n.4.2R,7(){c()})}};3.2g=7(){3.G.E(3.8.1e);3.1n()};3.35=7(){3.G.A(n.8.1e);3.1k()};3.1k=7(){o a=3;3.T=4b(7(){a.12(r,"-=",r,a.1D,r)},a.4.2K)};3.1n=7(){4c(3.T);3.T=r};3.1G=7(a,b){3.12(b,"",a,0,1)};3.1E=7(a){3.12(a,"+=",r,n.1D,1)};3.1j=7(a){3.12(a,"-=",r,n.1D,1)};3.14=7(c){6(c){n.1w="-="}3.12(3.18,"+=",r,1,1)};3.15=7(c){6(c){n.1w="+="}3.12(3.1r,"-=",r,1,1)};3.34=7(){n.1w=""};3.3b=7(a){$("."+3.8.1b,3.M).E(3.8.1b);3.D.3f(a).A(3.8.1b)}};$.4d.1Y=7(a){w 3.3j(7(){$(3).4e("1Y",1i 2m().2n(3,a))})}})(4f);',62,264,'|||this|options||if|function|cssNames|false|||||||||||||||var|currId|domObj|null|true|cssprefix|allItems|nav|return|else|panels|css|addClass|panelActive|verticalnav|navLI|removeClass|btnDisable|playBtn|arePanels|scroll|navClip|size|currPanel|navUL|panelOld|goBtns|height|width|_errorReport|debug|isPlaying|click|shownavitems|left|top|navLIsize|LIbefore|Math|LIafter|_change|panelsWrapper|navPrev|navNext|auto|err|navBtnPrev|navPos|gBtns|selected|panel|btn|btnPause|prevId|newId|firstTime|new|stepForward|autoScrollStart|circular|none|autoScrollStop|getLImargin|margin|navClipSize|navBtnNext|abs|hide|isFunction|_runCallBacks|scrollcontinue|isNavClip|freeheight|scrollActive|Array|panelfx|sliding|lineScrollDo|stepBackward|start|changeWithId|autostill|panelfxspeed|isPlayBtn|navLINum|cssPosAttr|navBtns|hasClass|go|domObjHeight|Error|prevPanel|panelsBag|mousewheel|try|catch|delaycaptions|timer|sliderkit|navscrollatend|navfxbefore|navfxafter|fading|panelfxeasing|panelfxbefore|panelfxafter|class|li|attrVal|navULSize|px|mouseover|getIndex|parent|_getNavPos|position|playBtnPause|goBtnPrev|goBtnNext|panelTransition|show|animate|SliderKit|_init|_settings|navBtn|prev|next|goPrev|goNext|domObjWidth|display|animating|panelAnteFns|panelPostFns|navAnteFns|navPostFns|_buildNav|_buildControls|_wrapPanels|keyboard|keyCode|panelclick|startId|counter|_autoScrollHoverStop|autospeed|navitemshover|navclipcenter|navcontinuous|navpanelautoswitch|navfx|scrollspeed|scrolleasing|panelfxfirst|panelbtnshover|verticalslide|tabs|fastchange|nElement|id|attr|hover|parseInt|_buildNavButtons|scrollBtns|navStopContinuous|playBtnStart|fadeIn||div||_setNavScroll|selectThumbnail|_animPanel|scrollWay|_animNav|eq|tabsfading|_panelTransitions|_navTransitions|each|oldPanel|activePanel|stop|extend|active|old|wrapper|clip|disable|pause|play|01|02|block|changeOngoing|currLine|keyup|Counter|DelayCaptions|Timer|4000|600|700|alert|Slider|Kit|error|nMessage|see|doc|for|details|mouseleave|ul|03|0px|outerWidth|outerHeight|right|bottom|index|mouseout|toggleClass|ceil|floor|fadeOut|wrapAll|relative|animated|setTimeout|_clearCallBacks|length|opacity|setInterval|clearTimeout|fn|data|jQuery'.split('|'),0,{}))

			//$(window).load(function(){
//$("#carousel").sliderkit({shownavitems:4,scrolleasing:"easeInBack", 
						   //"easeOutBounce, easeOutBack"
					//scrollspeed:500
				//});	
			//});
			
			
$(document).ready(function(){
	if(document.getElementById('carousel') != null)
		$("#carousel").sliderkit({
					shownavitems:3,
					scrolleasing:"easeInBack", //"easeOutBounce, easeOutBack"
					scrollspeed:500
				});	
   });








/*
$(window).load(function(){
						
	if (document.getElementById('mediaplayer-container') != null) {
		jwplayer("mediaplayer-container").setup({flashplayer: "/richmedia/players/jwplayer.swf",file: "http://stream.infosys.com/video_app/"+videoinfosys,plugins: {sharing: { link: false }}});


	}
});	
*/
function vplayercall(istreamfile,preimage,wid,hei,contid,startmode){
	
	//alert(istreamfile+wid+hei+contid+'dd');	
	jwplayer(contid).setup({
	'autostart': startmode,
    'flashplayer': '/richmedia/players/vplayer.swf',
   // 'file': 'http://stream.infosys.com/video_app/'+istreamfile,
	'playlistfile': '/Videos/vplayer/'+istreamfile+'.xml',
	//'image': preimage,
    'backcolor': '000000',
    'frontcolor': 'EEEEEE',
    'lightcolor': '66FFFF',
    'controlbar': 'bottom',
    'width': wid,
    'height': hei,
	'logo.file': '/SiteCollectionImages/infosys-logo.png',	
	'logo.position':'bottom-left',
	'author': 'Infosys Limited',
	'abouttext':'Infosys Limited',
	'aboutlink': 'http://www.infosys.com',
    'plugins': {
       '/richmedia/players/viral-2h.swf': {onpause: 'false',oncomplete:'false',allowmenu:'false',functions:'embed' }
    }	
  });
//alert(istreamfile+wid+hei+contid);	
}
(function(){
	var po = document.createElement("script");
	po.type = "text/javascript"; po.async = true;po.src = "/Style Library/JSFiles/vplayer.js";
	var s = document.getElementsByTagName("script")[0];
	s.parentNode.insertBefore(po, s);
})();
/*
$(window).load(function(){
if(document.getElementById('lightBoxslideshow') != null)
		$('#lightBoxslideshow a').lightBox(); 
   });

(function(){
	var po = document.createElement("script");
	po.type = "text/javascript"; po.async = true;po.src = "/Style Library/JSFiles/lightbox.js";
	var s = document.getElementsByTagName("script")[0];
	s.parentNode.insertBefore(po, s);
})();
*/
