jQuery.noConflict();

// Document Ready Event
jQuery(document).ready(function(){
	
	// Define Variables
	var startpos = 42;
	var wrapwidth = 960;
	var menu = jQuery('.wpn_menu > ul');
	var totalwidth = 0;
	var menuitems = jQuery(menu).children('li');
	
	// Calculate the total width of all of the <li> elements
	jQuery(menuitems).each(function(i,item) {
		totalwidth += jQuery(item).outerWidth(true);
	});
	
	// Left menu button events
	jQuery('#menu-lbutton').mouseenter(function() {
		// Don't animate if the amount its going to scroll is smaller then the items there are
		if(wrapwidth < totalwidth) {
			jQuery(menu).animate({left: startpos}, 2000);
		}
	}).mouseleave(function() {
		// Stop the animation if the mouse leaves the button
		jQuery(menu).stop();
	}).mousedown(function() {
		// Mousedown to speed up
		if(wrapwidth < totalwidth) {
			jQuery(this).preventDefault();
			jQuery(menu).stop();
			jQuery(menu).animate({left: startpos}, 1000);
		}
	}).mouseup(function() {
		// Mouseup to slow back down
		jQuery(menu).stop();
		jQuery(menu).animate({left: startpos}, 2000);
	});
	
	// Right menu button events
	jQuery('#menu-rbutton').mouseenter(function(){
		// Don't animate if the amount its going to scroll is smaller then the items there are
		if(wrapwidth < totalwidth) {
			jQuery(menu).animate({left: -(totalwidth)-startpos+wrapwidth-1}, 2000);
		}
	}).mouseleave(function() {
		// Stop the animation if the mouse leaves the button
		jQuery(menu).stop();
	}).mousedown(function() {
		// Mousedown to speed up
		if(wrapwidth < totalwidth) {
			jQuery(menu).stop();
			jQuery(menu).animate({left: -(totalwidth)-startpos+wrapwidth-1}, 1000);
		}
	}).mouseup(function() {
		// Mouseup to slow back down
		jQuery(menu).stop();
		jQuery(menu).animate({left: -(totalwidth)-startpos+wrapwidth-1}, 2000);
	});
	
	 jQuery(window).load(function() {
        jQuery('#slider').nivoSlider();
    });
    
   
});


function displayQuote ( )
{
 	showQuote ( );
    quoteIntervalId = setInterval ( "showQuote()", 12000 );
}
function showQuote ( )
{
 var randnumber=Math.random ( )*1000;
 
randnumber=parseInt(randnumber);
var count_quotes=arrQuotes.length-1;
var quoteindex=randnumber%count_quotes;
document.getElementById("quotemsg").innerHTML = arrQuotes[quoteindex][0];
document.getElementById("quoteauthor").innerHTML = '-'+arrQuotes[quoteindex][1];
}
var quoteIntervalId = 0;
var arrQuotes=[
['I am a slow walker, but I never walk backwards.','Abraham Lincoln'],
['I do not think much of a man who is not wiser today than he was yesterday.','Abraham Lincoln'],
['I will study and get ready, and perhaps my chance will come','Abraham Lincoln'],
['Whatever you are, be a good on','Abraham Lincoln'],
['You cannot escape the responsibility of tomorrow by evading it today','Abraham Lincoln'],
['People are just as happy as they make up their minds to be.','Abraham Lincoln'],
['The best thing about the future is that it comes only one day at a time','Abraham Lincoln'],
['When I do good, I feel good. When I do bad, I feel bad. Thats my religion.','Abraham Lincoln'],
['And in the end, its not the years in your life that count. Its the life in your years.','Abraham Lincoln'],
['He is great who is what he is from nature, and who never reminds us of others.','Ralph Waldo Emerson'],
['Fear always springs from ignorance','Ralph Waldo Emerson'],
['Big jobs usually go to the men who prove their ability to outgrow small ones. ','Ralph Waldo Emerson'],
['A hero is no braver than an ordinary man, but he is braver five minutes longer.','Ralph Waldo Emerson'],
['A person is a success if they get up in the morning and gets to bed at night and in between does what he wants to do.','Bob Dylan'],
['Actually, Im an overnight success. But it took twenty years.','Monty Hall'],
['Success is the ability to go from failure to failure without losing your enthusiasm. ','Sir Winston Churchill'],
['I dont measure a mans success by how high he climbs but how high he bounces when he hits bottom. ','George S. Patton'],
['I dont know the key to success, but the key to failure is trying to please everybody. ','Bill Cosby'],
['It is wise to keep in mind that neither success nor failure is ever final.','Roger Babson'],
['The hardest challenge is to be yourself in a world where everyone is trying to make you be somebody else.','E. E. Cummings'],
['Forget about all the reasons why something may not work. You only need to find one good reason why it will.','Dr. Robert Anthony'],
['Imagination is more important than knowledge. ','Einstein'],
['The life which is unexamined is not worth living.','Socrates'],
['Live as if you were to die tomorrow. Learn as if you were to live forever.','Gandhi'],
[' Strength does not come from winning, When you go through hardships and decide not to surrender, that is strength','Gandhi'],
['Fear is not a disease of the body; fear kills the soul','Gandhi'],
['We must become the change we want to see','Gandhi'],
['The best way to find yourself is to lose yourself in the service of others.','Gandhi'],
['Strength does not come from physical capacity. It comes from an indomitable will.','Gandhi'],
['The weak can never forgive. Forgiveness is the attribute of the strong','Gandhi'],
['There is more to life than simply increasing its speed.','Gandhi'],
['They cannot take away our self-respect if we do not give it to them','Gandhi'],
['Anyone who has never made a mistake has never tried anything new.','Einstein'],
['Whether you think you can or whether you think you cant, youre right. ','Henry Ford'],
['Success is the sum of small efforts, repeated day in and day out.','Robert Collier'],
['Impatience never commanded success.','Edwin H. Chapin'],
['The talent of success is nothing more than doing what you can do, well.','Henry W. Longfellow'],
['To climb steep hills requires a slow pace at first.','Shakespeare'],
['Try not to become a man of success but a man of value.','Albert Einstein'],
['Every artist was first an amateur.','Ralph Waldo Emerson'],
['No great man ever complains of want of opportunities.','Ralph Waldo Emerson'],
['First say to yourself what you would be;and then do what you have to do.','Epictetus '],
['You have to dream before your dreams can come true.','Abdul Kalam'],
['To succeed in your mission, you must have single-minded devotion to your goal','Abdul Kalam'],
['As a child of God, I am greater than anything that can happen to me','Abdul Kalam'],
['We should not give up and we should not allow the problem to defeat us','Abdul Kalam'],
['Man needs his difficulties because they are necessary to enjoy success','Abdul Kalam'],
['A man must be big enough to admit his mistakes, smart enough to profit from them, and strong enough to correct them','John C. Maxwell'],
['A leader is one who knows the way, goes the way, and shows the way.','John C. Maxwell'],
['Learn to say no to the good so you can say yes to the best.','John C. Maxwell'],
['Policies are many, Principles are few, Policies will change, Principles never do.','John C. Maxwell'],
['A problem is a chance for you to do your best. ','Duke Ellington '],
['The only gift is giving to the poor; all else is exchange.','Thiruvalluvar'],
['You will never find time for anything. If you want time, you must make it.','Charles Bruxton'],
['I recommend you take care of the minutes and the hours will take care of themselves.','Earl of Chesterfield'],
['Dont judge each day by the harvest you reap, but by the seeds you plant.','Robert Louis Stevenson'],
['Effort only fully releases its reward after a person refuses to quit.','Napoleon Hill'],
['For Any of your sofware development needs contact us at info@qualitypointtech.net or rajamanickam.a@gmail.com','QualityPoint'],
['If you are interested to join with us, send your resume to qualitypointmail@gmail.com','QualityPoint'],
['We are commited to deliver quality product cost effectively. We are doing sofware development and sofware testing','QualityPoint'],
['Send your feedback about our website to qualitypointmail@gmail.com','QualityPoint'],
['We are located at Chennai and at Ottapidaram in Tuticorin District','QualityPoint'],
['Visit our website www.qualitypointtech.com to know more about our projects','QualityPoint'],
['Send your suggestions/feedback to improve our website better','QualityPoint'],
['Visit qualitypointtech.net to read latest News and to bookmark your favorite links','QualityPoint'],
];


	
	


