/*
CSS Browser Selector v0.4.0 (Nov 02, 2010)
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);


// JavaScript Document
// jQuery(document).ready(function($) {
      // $(".slider").slideshow({
       //  width      : 983,
        // height     : 410,
        // pauseOnHover : false,
        // transition : 'slideLeft',
		// navigation : true,
		// selector : true

      // });
      
      // $(".caption").fadeIn(500);

      // playing with events:
      
     //  $(".slider").bind("sliderChange", function(event, curSlide) {
       //  $(curSlide).children(".caption").hide();
      // });
      
      // $(".slider").bind("sliderTransitionFinishes", function(event, curSlide) {
       //  $(curSlide).children(".caption").fadeIn(500);
      // });
// });

    jQuery(document).ready(function($) {
      $(".slider").slideshow({
        width      : 983,
        height     : 410,
        transition : 'slideleft',
		delay : 3000
      });
    });

// JS for image overlay	
//jquery for image overlay
$(document).ready(function() {

	//move the image in pixel
	var move = -15;
	
	//zoom percentage, 1.2 =120%
	var zoom = 1.2;

	//On mouse over those thumbnail
	$('.thumb-item').hover(function() {
		
		//Set the width and height according to the zoom percentage
		width = $('.thumb-item').width() * zoom;
		height = $('.thumb-item').height() * zoom;
		
		//Move and zoom the image
		$(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});
		
		//Display the caption
		$(this).find('div.thumb-caption').stop(false,true).fadeIn(200);
	},
	function() {
		//Reset the image
		$(this).find('img').stop(false,true).animate({'width':$('.thumb-item').width(), 'height':$('.thumb-item').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Hide the caption
		$(this).find('div.thumb-caption').stop(false,true).fadeOut(200);
	});

});
//JS for the random image of the logo

this.randomtip = function(){
	var length = $("#logo li").length; // this is where we put the id of the list
	//var ran = Math.floor(Math.random()*length) + 1;
	var ran = 1;
	$("#logo li:nth-child(" + ran + ")").show();
};

$(document).ready(function(){	
	randomtip();
});

