//////////Generate the captcha image on clicking the refresh button//////////////
function fnGetNewImg(){
 var d = new Date(); 
 $('#capImg').attr('src','jcaptcha.imgcaptcha?dummy='+d.getTime());
}
//////////Generate the captcha image on clicking the refresh button END//////////////

/////////////////////////Header And Menu Code///////////////////////////////////////

var BrowserDetect=null;



$(document).ready(function(){

	/* Adding a colortip to any tag with a title attribute: */

	$('a[title]').colorTip({color:'yellow'});

	

});



function headerandmenu(){

	//header

if(!window.contextPath){

  contextPath = "";

}



BrowserDetect = {

	init: function () {

		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";

		this.version = this.searchVersion(navigator.userAgent)

			|| this.searchVersion(navigator.appVersion)

			|| "an unknown version";

		this.OS = this.searchString(this.dataOS) || "an unknown OS";

	},

	searchString: function (data) {

		for (var i=0;i<data.length;i++)	{

			var dataString = data[i].string;

			var dataProp = data[i].prop;

			this.versionSearchString = data[i].versionSearch || data[i].identity;

			if (dataString) {

				if (dataString.indexOf(data[i].subString) != -1)

					return data[i].identity;

			}

			else if (dataProp)

				return data[i].identity;

		}

	},

	searchVersion: function (dataString) {

		var index = dataString.indexOf(this.versionSearchString);

		if (index == -1) return;

		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));

	},

	dataBrowser: [

		{

			string: navigator.userAgent,

			subString: "Chrome",

			identity: "Chrome"

		},

		{ 	string: navigator.userAgent,

			subString: "OmniWeb",

			versionSearch: "OmniWeb/",

			identity: "OmniWeb"

		},

		{

			string: navigator.vendor,

			subString: "Apple",

			identity: "Safari",

			versionSearch: "Version"

		},

		{

			prop: window.opera,

			identity: "Opera"

		},

		{

			string: navigator.vendor,

			subString: "iCab",

			identity: "iCab"

		},

		{

			string: navigator.vendor,

			subString: "KDE",

			identity: "Konqueror"

		},

		{

			string: navigator.userAgent,

			subString: "Firefox",

			identity: "Firefox"

		},

		{

			string: navigator.vendor,

			subString: "Camino",

			identity: "Camino"

		},

		{		// for newer Netscapes (6+)

			string: navigator.userAgent,

			subString: "Netscape",

			identity: "Netscape"

		},

		{

			string: navigator.userAgent,

			subString: "MSIE",

			identity: "Explorer",

			versionSearch: "MSIE"

		},

		{

			string: navigator.userAgent,

			subString: "Gecko",

			identity: "Mozilla",

			versionSearch: "rv"

		},

		{ 		// for older Netscapes (4-)

			string: navigator.userAgent,

			subString: "Mozilla",

			identity: "Netscape",

			versionSearch: "Mozilla"

		}

	],

	dataOS : [

		{

			string: navigator.platform,

			subString: "Win",

			identity: "Windows"

		},

		{

			string: navigator.platform,

			subString: "Mac",

			identity: "Mac"

		},

		{

			string: navigator.platform,

			subString: "Linux",

			identity: "Linux"

		}

	]



};

BrowserDetect.init();



document.write("<!--[if IE 6]>");

/*document.write("<script defer type='text/javascript' src='"+contextPath+"scripts/pngfix.js'></script>");*/

document.write("<style type='text/css'>#spacer{display:none;}#spacer2{display:none;}</style> ");

document.write("<![endif]-->");

document.write("<div style='position:fixed;top:0;z-index:999;height:95px; background-color:white;'>");

document.write("<div id='header'>");

document.write("<div id='logo'><a href='"+contextPath+"index.htm'><img src='"+contextPath+"images/logo.jpg' width='170' height='66' alt='Intellicus:Enterprise Reporting and Business Insights Platform' title='Intellicus:Enterprise Reporting and Business Insights Platform' border='0' align='left'/></a><span>Enterprise Reporting and <br>Business Insights Platform</span></div>");

//if((BrowserDetect.browser.toLowerCase()=="explorer" && parseFloat(BrowserDetect.version)<=6.0) || (BrowserDetect.OS.toLowerCase()=="mac" && BrowserDetect.browser.toLowerCase()=="firefox" && parseFloat(BrowserDetect.version)<3.6) ||  (BrowserDetect.OS.toLowerCase()=="mac" && BrowserDetect.browser.toLowerCase()=="safari" && parseFloat(BrowserDetect.version)<=4.0) ){//Show the browser alert message when 

//Browser=Explorer <AND> Version<=6 (Some features not working when version is 6 or less then 6)

//OR

//OS=Mac <AND> Browser=Firefox <AND> Version<3.6 (Some features not working when version is less then 3.6 but working properly on version 3.6)

//OR

//OS=Mac <AND> Browser=Safari <AND> Version<=4.0 (Some features not working when version is 4 or less then 4)

//document.write("<div id='msgstatus'><span class='text'> Browser not compatible! Some functions of this site might be disabled including submitting request for download. Try using higher browser version.</span></div>");

//}



//document.write("<div id='msgstatus'><span class='text'> Browser not compatible! Some functions of this site might be disabled including submitting request for download. Try using higher browser version.</span></div>");

document.write("<div id='search'>");

if(!window.isIndexPage){

	document.write("<a href='"+contextPath+"index.htm'><img src='"+contextPath+"images/home.gif' align='right' hspace='12' style='margin-top:16px;' alt='http://www.intellicus.com' title='http://www.intellicus.com'/></a>");

}

document.write("<ul>");

document.write("<li class='devider'><a href='"+contextPath+"sitemap.htm'>Site Map</a></li>");

document.write("<li class='devider'><a href='http://support.intellicus.com/isupport/' target='_blank'>Support</a></li>");

document.write("<li><a href='"+contextPath+"about/contact_us/contact_us.htm'>Contact Us</a></li>");

document.write("</ul>");

document.write("</div>");

document.write("</div>");



//end header



//menu

document.write("<div id='cdc-nav-module'>");

document.write(" <span id='left'></span>");

document.write("<span id='right'></span>");



document.write("<ul>");



////////////Product

document.write("<li class='nav lastnav' id='product'><a href='"+contextPath+"product/overview.htm'>Product</a> ");



document.write("<div class='menuFrame'>");

document.write("<div class='menu'>");

document.write("<ul>");

document.write("<li><a href='"+contextPath+"product/overview.htm'>Overview</a></li>");

document.write("<li><a href='"+contextPath+"product/features.htm'>Features</a></li>");

document.write("<li><a href='"+contextPath+"product/technical_specifications.htm'>Technical Specifications</a></li>");

document.write("<li><a href='"+contextPath+"product/tools_components.htm'>Tools & Components</a></li>");



/*document.write("<li><a href='"+contextPath+"business_intelligence/reporting/reporting.htm'>Enterprise Reporting</a></li>");

document.write("<li><a href='"+contextPath+"business_intelligence/information_delivery/information_delivery.htm'>Information Delivery</a></li>");

document.write("<li><a href='"+contextPath+"business_intelligence/business_analytics/business_analytics.htm'>Business Analytics</a></li>");

document.write("<li><a href='"+contextPath+"business_intelligence/collaboration/collaboration.htm'>Collaboration</a></li>");

document.write("<li><a href='"+contextPath+"business_intelligence/security_compliance/security_compliance.htm'>Security & Compliance</a></li>");

document.write("<li><a href='"+contextPath+"business_intelligence/tools_components/tools_components.htm'>Tools & Components</a></li>");

document.write("<li><a href='"+contextPath+"business_intelligence/technical_specifications/technical_specifications.htm'>Technical Specification</a></li>");*/





//document.write("<li><a href='#'>Dashboards</a></li>");

//document.write("<li><a href='#'>Competitive Comparisions</a></li>");

document.write("</ul>");

document.write("</div>");

document.write("</div></li>");



/////////////////Product End



//////////////solutions



document.write("<li class='nav lastnav' nowrap='nowrap'><a href='"+contextPath+"solutions/solutions.htm'>Solutions</a> ");



document.write("<div class='menuFrame'>");

document.write("<div class='menu'>");

document.write("<ul>");

document.write("<li><a href='"+contextPath+"solutions/oem/for_isv.htm'>ISVs</a></li>");



document.write("<li><a href='"+contextPath+"solutions/saas/for_saas.htm'>SaaS</a></li>");



document.write("<li><a href='"+contextPath+"solutions/enterprises/enterprise_reporting.htm'>Enterprises</a></li>");



//document.write("<li><a href='"+contextPath+"solutions/bigdata/business_insights_from_bigdata.htm'>Big Data</a></li>");

/*document.write("<li><a href='"+contextPath+"solutions/oem/for_isv.htm'><i>for</i> ISVs</a></li>");



document.write("<li><a href='"+contextPath+"solutions/saas/for_saas.htm'><i>for</i> SaaS</a></li>");



document.write("<li><a href='"+contextPath+"solutions/enterprises/enterprise_reporting.htm'><i>for</i> Enterprises</a></li>");*/

document.write("</ul>");

document.write("</div>");

document.write("</div></li>");



/////// end Solutions 



////services



document.write("<li class='nav lastnav'><a href='"+contextPath+"services/services.htm'>Services</a> ");



document.write("<div class='menuFrame'>");

document.write("<div class='menu'>");

document.write("<ul>");

document.write("<li><a href='"+contextPath+"services/consulting/consulting.htm'>Consulting</a></li>");



document.write("<li><a href='"+contextPath+"services/support/support.htm'>Support</a></li>");



document.write("<li><a href='"+contextPath+"services/training/training.htm'>Training</a></li>");

document.write("</ul>");

document.write("</div>");

document.write("</div></li>");



////////end services







/////////download & buy 



document.write("<li class='nav lastnav' nowrap='nowrap'><a href='"+contextPath+"download/download.htm'>Downloads & Buy</a> ");



document.write("<div class='menuFrame'>");

document.write("<div class='menu'>");

document.write("<ul>");

document.write("<li><a href='"+contextPath+"download/free_reporting_download.htm'>Free Reporting Suite</a></li>");



document.write("<li><a href='"+contextPath+"download/free_oem_distributionkit.htm'>Free OEM Distribution Kit</a></li>");

document.write("<li><a href='"+contextPath+"download/download.htm'>Compare Editions</a></li>");

document.write("</ul>");

document.write("</div>");

document.write("</div></li>");





///////end download & buy





/////partners



/*document.write("<li class='nav'><a class='lastnav' href='"+contextPath+"partners/partners.htm'>Partners</a> ");



document.write("<div class='menuFrame'>");

document.write("<div class='menu'>");

document.write("<ul>");

document.write("<li><a href='"+contextPath+"partners/oem/oem_partnering_philosphy.htm'>OEM Partners</a></li>");

document.write("<li><a href='"+contextPath+"partners/saas/saas_partnering_philosphy.htm'>SaaS Partners</a></li>");

document.write("<li><a href='"+contextPath+"partners/reseller/reseller_partnering_philosphy.htm'>Reseller Partners</a></li>");

document.write("<li><a href='http://support.intellicus.com/isupport/' target='_blank'>Support Portal</a></li>");

document.write("</ul>");

document.write("</div>");

document.write("</div></li>");*/



///////end partners



///////about



document.write("<li class='nav' id='about'><a href='"+contextPath+"about/company_profile/company_profile.htm'>About</a> ");

document.write("<div class='menuFrame'>");

document.write("<div class='menu'>");

document.write("<ul>");

document.write("<li><a href='"+contextPath+"about/company_profile/company_profile.htm'>Company Profile </a></li>");

//document.write("<li><a href='"+contextPath+"about/executive_management/executive_management.htm'>Executive Management</a></li>");

//document.write("<li><a href='#'>Awards & Recognitions</a></li>");



document.write("<li><a href='"+contextPath+"about/social_responsibility/social_responsibility.htm'>Social Responsibility</a></li>");

document.write("<li><a href='"+contextPath+"about/events/events.htm'>Events</a></li>");

document.write("<li><a href='"+contextPath+"about/news_room/news_room.htm'>News room</a></li>");

document.write("<li><a href='"+contextPath+"about/contact_us/contact_us.htm'>Contact Us</a></li>");

//document.write("<li><a href='#'>Careers</a></li>");

document.write("</ul>");

document.write("</div>");

document.write("</div></li>");



///////end about







document.write("</ul>");



document.write("</div>");

//menu end



document.write("</div>");

document.write("<div id='spacer'>");

document.write("</div>");



}

///////////////////////////End Header And Menu Code



//////////////////////////Footer Code/////////////////////////////////////////

function footer(){

	//start footer

if(!window.contextPath){

  contextPath = "";

}

document.write("<div id='footer'>");

document.write("<div id='fleft'><span>Copyright &copy; 2004-10 Intellicus Technologies. All Rights Reserved. </span></div>");

document.write("<div id='fright'>");

document.write("<ul>");

document.write("<li class='devider'><a href='"+contextPath+"disclaimer.htm'>Disclaimer</a></li>");

document.write("<li><a href='"+contextPath+"privacy_statement.htm'>Privacy Statement</a></li>");

document.write("</ul>");

document.write("<span class='socialicon'><a href='"+contextPath+"rss.xml' class='rss'></a>");

document.write("<a href='http://www.facebook.com/pages/Intellicus/241332999055?created#/pages/Intellicus/241332999055' class='facebook'></a>");

document.write("<a href='http://twitter.com/intellicus' class='twitter'></a></span></div>");

document.write("</div>");

if(BrowserDetect.browser.toLowerCase()=="explorer" && BrowserDetect.version==6){

	//Show best viewed line only when browser is Explore with 6.0 version

document.write("<div class='footerBestViewed'>This site is best viewed with <strong>IE7+</strong><!--, Firefox2+, Google Chrome 0.2+--> and in 1024x768 resolution.</div>");

}



//end footer

}

//////////////////////////////////////End Footer Code



////////////////////////Product Collaterals Code///////////////////////////////////

function product_collaterals(){

if(!window.contextPath){contextPath=""}

if(!window.isIndexPage){

	

document.write("<span class='leftcorner'>&nbsp;</span> <span class='rightcorner'>&nbsp;</span>");

document.write("<div id='downloadsLinks' class='d_otherpage'>");

document.write("<a href='"+contextPath+"product/product_collaterals/product_catalogue_download_form.htm'>Product Catalogue</a>");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_business_users_form.htm'>Intellicus for Business Users</a>");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_isv_form.htm'>Intellicus for ISVs</a>");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_saas_form.htm'>Intellicus for SaaS</a>");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_healthcare_form.htm'>Intellicus for Healthcare</a>");

document.write("</div>");

document.write("<span style=' float:left; padding-left:10px;'>Product Collaterals</span>");

document.write("<div class='download_down'></div>")

}

else{document.write("<span class='leftcorner'>&nbsp;</span> <span class='rightcorner'>&nbsp;</span>");

document.write("<span style=' float:left; padding-left:10px;'>Product Collaterals</span>");

document.write("<div class='download_down'></div>");

document.write("<div id='downloadsLinks'> <a href='"+contextPath+"product/product_collaterals/product_catalogue_download_form.htm'>Product Catalogue</a> ");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_business_users_form.htm'>Intellicus for Business Users</a>");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_isv_form.htm'>Intellicus for ISVs</a>");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_saas_form.htm'>Intellicus for SaaS</a>");

document.write("<a href='"+contextPath+"product/product_collaterals/intellicus_for_healthcare_form.htm'>Intellicus for Healthcare</a></div>")}}

///////////////////End Product Collaterals Code



//////////////////Campaign Banner Code//////////////////////////

function campaign_banner(){//This JS contains campaign banner code

if(!window.contextPath){

  contextPath = "";

}



document.write("	<div id='leftbox-slide'>");

document.write("		<a href='http://itunes.apple.com/us/app/intellicus/id465302764?mt=8' target='_blank'><img src='"+contextPath+"images/prom_ipad.png' width='197' height='129' alt='Business Insights in your Hands' title='Business Insights in your Hands' longdesc='Business Insights in your Hands'/></a>");

document.write("		<a href='"+contextPath+"download/free_reporting_download.htm'><img src='"+contextPath+"images/prom_1.png' width='197' height='129' alt='Free Reporting' title='Free Reporting' longdesc='free reporting'/></a>");

document.write("		<a href='"+contextPath+"solutions/oem/oem_reporting.htm'><img src='"+contextPath+"images/prom_2.png' width='197' height='129' alt='OEM Reporting' title='OEM Reporting' longdesc='OEM Reporting'/></a>");

document.write("		<a href='"+contextPath+"solutions/saas/saas_reporting.htm'><img src='"+contextPath+"images/prom_3.png' width='197' height='129' alt='Reporting for SaaS Vendors ' title='Reporting for SaaS Vendors' longdesc='Reporting for SaaS Vendors'/></a>");

document.write("	</div>");

	}

/////////////////////////End Campaign Banner Code


//////////////////Event Banner Code//////////////////////////
function event_banner(){//This JS contains event banner code
if(!window.contextPath){
  contextPath = "";
}

document.write("	<div id='rightbox-slide'>");
//document.write("		<a href='http://www.intellicus.com/store/about/events/event_meeting_request_form.jsp?event=TDWI2012MR'><img src='"+contextPath+"images/TDWI2012.png' width='217' height='129' alt='TDWI 2012 FEB. 12-17, 2012 / LAS VEGAS' title='TDWI 2012 FEB. 12-17, 2012 / LAS VEGAS' longdesc='TDWI 2012 FEB. 12-17, 2012 / LAS VEGAS' border='0'/></a>");
document.write("		<a href='http://www.intellicus.com/store/about/events/event_meeting_request_form.jsp?event=HIMSS2012MR'><img src='"+contextPath+"images/himss12.jpg' width='217' height='129' alt='HIMSS 2012 FEB. 20-24, 2012 / LAS VEGAS' title='HIMSS 2012 FEB. 20-24, 2012 / LAS VEGAS' longdesc='HIMSS 2012 FEB. 20-24, 2012 / LAS VEGAS' border='0'/></a>");
document.write("	</div>");
	}
/////////////////////////End Event Banner Code




/////////////////////////Common.js File Code//////////////////////////////

//code for showing Download drop down box with animation.

function initDownloadDropDown(){

	var dwnlodObj = $("#dright");

	var dwnlodLinksObj = $("#downloadsLinks");

	if(dwnlodObj && dwnlodLinksObj){

		/*dwnlodObj.toggle(

			function(){

				dwnlodLinksObj.css({top:dwnlodObj.offset().top + dwnlodObj.height() - 2, left:dwnlodObj.offset().left});

				dwnlodLinksObj.width(dwnlodObj.width());

				dwnlodLinksObj.slideDown("fast"); //speed: fast > medium > slow

			},

			function(){

				dwnlodLinksObj.slideUp();

			}

		);*/

		dwnlodObj.click(

			function(){

				if(dwnlodLinksObj.is(':visible')){

					dwnlodLinksObj.slideUp();

				}else{

					dwnlodLinksObj.css({top:dwnlodObj.offset().top + dwnlodObj.height() - 2, left:dwnlodObj.offset().left});

					dwnlodLinksObj.width(dwnlodObj.width());

					dwnlodLinksObj.slideDown("fast"); //speed: fast > medium > slow

				}



			}

		);

		dwnlodObj.bind("mouseleave",

			function(){

				dwnlodLinksObj.slideUp();

			}

		);

		

	}

}



//Left accordion menu on every page for showing sublinks

function initLeftMenu() {

  $('#activeLeftMenu').show();

  $('#activeLeftMenu').parent().addClass('downimage');

  $('#leftMenu li img').click(

    function() {

      var checkElement = $(this).next().next();

      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {

        return false;

      }

      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {

        checkElement.parent().addClass('downimage');

        $('#leftMenu ul:visible').parent().removeClass('downimage');

        $('#leftMenu ul:visible').slideUp('normal');

        checkElement.slideDown('normal');

        return false;

       }

      }

    );

  }



//OEM page contant accordion

function initOEM_Accordion(){

  var dow_border = $('#dow_border');

  var int_border = $('#int_border');

  var dis_border = $('#dis_border');

  var bookmarkEOF = $('#bookmarkEOF');

  //dow_border.hide();

  //int_border.hide();

  //dis_border.hide();

  var scrollToSpeed = 1000;

  $('#download_button').click(

	function(){

		if(dow_border.is(':visible')){

			dow_border.slideUp('normal');

			$("#arrow_dow").removeClass('darrow');

		}else{

			$("#arrow_dow").addClass('darrow');

			dow_border.slideDown('normal',

				function(){

					$.scrollTo(bookmarkEOF,scrollToSpeed);

				}

			);

		}

		if(int_border.is(':visible')){

			int_border.slideUp('normal');

			$("#arrow_int").removeClass('iarrow');

		}

		if(dis_border.is(':visible')){

			dis_border.slideUp('normal');

			$("#arrow_dis").removeClass('disarrow');

		}

		

	}

  );

  $('#integrate_button').click(

	function(){

		if(int_border.is(':visible')){

			int_border.slideUp('normal');

			$("#arrow_int").removeClass('iarrow');

		}else{

			int_border.slideDown('normal',

				function(){

					$.scrollTo(bookmarkEOF,scrollToSpeed);

				}

			);

			$("#arrow_int").addClass('iarrow');

		}

		if(dow_border.is(':visible')){

			dow_border.slideUp('normal');

			$("#arrow_dow").removeClass('darrow');

		}

		if(dis_border.is(':visible')){

			dis_border.slideUp('normal');

			$("#arrow_dis").removeClass('disarrow');

		}

	}

  );

  $('#distribute_button').click(

	function(){

		if(dis_border.is(':visible')){

			dis_border.slideUp('normal');

			$("#arrow_dis").removeClass('disarrow');

		}else{

			dis_border.slideDown('normal',

				function(){

					$.scrollTo(bookmarkEOF,scrollToSpeed);

				}

			);

			$("#arrow_dis").addClass('disarrow');

		}

		if(dow_border.is(':visible')){

			dow_border.slideUp('normal');

			$("#arrow_dow").removeClass('darrow');

		}

		if(int_border.is(':visible')){

			int_border.slideUp('normal');

			$("#arrow_int").removeClass('iarrow');

		}

	}

  );



}

function initDownloadSpe(){

		$(".hdrTable").click(							 

				function(){

					var thisObj = $(this);

					if($(this).next().is(':hidden')){

							thisObj.next().slideDown('fast',function(){

								thisObj.find('h4:first').addClass("arrow_vr");

								thisObj.find('.hdrTick').hide();

							});

						}else{

							thisObj.next().slideUp('normal',function(){

								thisObj.find('h4:first').removeClass("arrow_vr");

								thisObj.find('.hdrTick').show();

							});

						}

				}

		);

	

	$("#btnExpandAll").click(

		function(){

			$(".hdrContentTable").show();

			$(".hdrTable").find('h4:first').addClass("arrow_vr");

			$(".hdrTick").hide();

		}

	);

	$("#btnCollapseAll").click(

		function(){

			$(".hdrContentTable").hide();

			$(".hdrTable").find('h4:first').removeClass("arrow_vr");

			$(".hdrTick").show();

		}

	);



}

$(document).ready(

	function(){

		//code for showing Download drop down box with animation.

		initDownloadDropDown();

		//Left accordion menu on every page for showing sublinks

		initLeftMenu();

		

		//OEM page contant accordion

		initOEM_Accordion();

		

		//Download specification table

		initDownloadSpe();

		

		//Code for showing Flash animation, PDF and images in fancy animated box.

		if($.prettyPhoto){

			$(".gallery a[rel^='prettyPhoto']").prettyPhoto(

			{

				theme: 'dark_rounded' /* light_rounded / dark_rounded / light_square / dark_square / facebook */,

				opacity: 0.40

			});

		}

		

		//code for showing animated banner on index page and inner pages.

		if(window.includeJQCycle){

			$('#newssticker').cycle({

				fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...

				next:'#newsNxt',

				prev:'#newsPrv',

				pause: 1			

			});

			$('#companyHighlights').cycle({

				fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...

				next:'#cmpyBannerNxt',

				prev:'#cmpyBannerPrv',

				pause: 1,

				timeout: 100000,

				delay:10000		

			});

		    $('#leftbox-slide').cycle({

				fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...

				pause: 1,

				/*random:1,*/

				timeout: 10000,

				delay:10000,

				fit:1

			});
			$('#rightbox-slide').cycle({
				fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
				pause: 1,
				/*random:1,*/
				timeout: 10000,
				delay:10000,
				fit:1
			});

		}

	

	}

);

$(window).resize(function() {

	//code for repositing of Download dropdown box on resize of window when it is visible.

	var dwnlodObj = $("#dright");

	var dwnlodLinksObj = $("#downloadsLinks");

	if(dwnlodObj && dwnlodLinksObj){

		if(dwnlodLinksObj.css("display") != "none"){

			dwnlodLinksObj.css({top:dwnlodObj.offset().top + dwnlodObj.height() - 2, left:dwnlodObj.offset().left});

		}

	}

});

//////////////////////////////End Common.js File Code 



///////////////////////////////////General Methods.js code//////////////////////////////

//check for browser, 

//Form not submit when (1) OS is Mac.  (2) Firefox browser version is less than 3.6. (3) Safari browser version is less than 4.0

function fnCheckCompatibility(){

	//BrowserDetect object is defined in header_and_menu.js

	if((BrowserDetect.OS.toLowerCase()=="mac") && ((BrowserDetect.browser.toLowerCase()=="firefox" && parseFloat(BrowserDetect.version)<3.6) || (BrowserDetect.browser.toLowerCase()=="safari" && parseFloat(BrowserDetect.version)<4.0))){

		window.location=contextPath+"browser_check.htm";

	}

}

///////////////////////////////////////////////////End General_methods.js code



///////////////////////////////////Home.min.js Code/////////////////////////////////////////



/*

 * BEGIN jquery.hoverIntent.minified.js

 */

(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:25,interval:20,timeout:0};J=A.extend(J,H?{over:I,out:H}:I);var L,K,F,D;var E=function(M){L=M.pageX;K=M.pageY};var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);M.hoverIntent_s=1;return J.over.apply(M,[N])}else{F=L;D=K;M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}};var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);M.hoverIntent_s=0;return J.out.apply(M,[N])};var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;while(O&&O!=this){try{O=O.parentNode}catch(P){O=this}}if(O==this){return false}var N=jQuery.extend({},P);var M=this;if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t)}if(P.type=="mouseover"){F=N.pageX;D=N.pageY;A(M).bind("mousemove",E);if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}}else{A(M).unbind("mousemove",E);if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M)},J.timeout)}}};return this.mouseover(B).mouseout(B)}})(jQuery);



/*

 * BEGIN _home.js

 */

if(typeof cdc=="undefined"){cdc={}}if(typeof cdc.homepage=="undefined"){cdc.homepage={}}cdc.homepage.canAnimate=function(){return(navigator.platform.toLowerCase().indexOf("linux")==-1&&!(jQuery.browser.safari&&jQuery.browser.version<500))};function global_openCdcPopup(C,D,A){if(isNaN(parseInt(D))){D=550}else{D=parseInt(D)}if(isNaN(parseInt(A))){A=550}else{A=parseInt(A)}var E="status=yes,scrollbars=yes,resizable=yes,width="+D+",height="+A;var B=window.open(C,"globalCDCpopup",E);if(B){B.focus()}}function addToWindowOnLoad(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){B();A()}}}function checkClear(A,B){if(arguments[2]){A=arguments[1];B=arguments[2]}if(A.value==B){A.value=""}if(!document.getElementById("search-drop-down")){setupSearch()}if(document.getElementById("search-drop-down")){showSuggestionsContainer()}}function vs_makeImg(A){}function vs_makeSubmit(A){}jQuery(document).ready(function(){jQuery("#skiplinks").addClass("skiplinks").removeClass("skiplinkShow");jQuery("#skiplinks a").focus(function(){jQuery("#skiplinks").addClass("skiplinkShow").removeClass("skiplinks")});jQuery("#skiplinks a").blur(function(){jQuery("#skiplinks").addClass("skiplinks").removeClass("skiplinkShow")})});function global_getCookie(B){var A=new String();A=document.cookie;var C=new RegExp("^.*"+B+"=");if(A.match(C)){A=A.replace(C,"");A=A.replace(/;.*/,"");return A}return""}cdc.homepage.loggedin="Logged In";cdc.homepage.registertext="Register";jQuery(document).ready(function(){var A=global_getCookie("SMSESSION");if(A&&A!=""&&A!="LOGGEDOFF"){jQuery(".nav-secondary :contains("+cdc.homepage.registertext+")").prev().remove();jQuery(".nav-secondary :contains("+cdc.homepage.registertext+")").remove();jQuery(".nav-secondary a.login").replaceWith('<span class="loggedin">'+cdc.homepage.loggedin+"</span>")}});jQuery(document).ready(function(){var A="2010";if(jQuery("#footer-copyright-year").html()<A){jQuery("#footer-copyright-year").html(A)}});



/*

 * BEGIN _sitenav.js

 */

jQuery(document).ready(function(){var A=cdc.homepage.canAnimate();jQuery("#cdc-nav-module .nav").hoverIntent(function(){if(A){jQuery(".menuFrame",this).slideDown("fast")}},function(){if(A){jQuery(".menuFrame",this).slideUp("fast")}})});



/////////////////////////End Home.min.js Code

//////////////////////////////////////Color Tool tip////////////////////////////////////////////

(function($){

	$.fn.colorTip = function(settings){



		var defaultSettings = {

			color		: 'yellow',

			timeout		: 500

		}

		

		var supportedColors = ['red','green','blue','white','yellow','black'];

		

		/* Combining the default settings object with the supplied one */

		settings = $.extend(defaultSettings,settings);



		/*

		*	Looping through all the elements and returning them afterwards.

		*	This will add chainability to the plugin.

		*/

		

		return this.each(function(){



			var elem = $(this);

			

			// If the title attribute is empty, continue with the next element

			if(!elem.attr('title')) return true;

			

			// Creating new eventScheduler and Tip objects for this element.

			// (See the class definition at the bottom).

			

			var scheduleEvent = new eventScheduler();

			var tip = new Tip(elem.attr('title'));



			// Adding the tooltip markup to the element and

			// applying a special class:

			

			elem.append(tip.generate()).addClass('colorTipContainer');



			// Checking to see whether a supported color has been

			// set as a classname on the element.

			

			var hasClass = false;

			for(var i=0;i<supportedColors.length;i++)

			{

				if(elem.hasClass(supportedColors[i])){

					hasClass = true;

					break;

				}

			}

			

			// If it has been set, it will override the default color

			

			if(!hasClass){

				elem.addClass(settings.color);

			}

			

			// On mouseenter, show the tip, on mouseleave set the

			// tip to be hidden in half a second.

			

			elem.hover(function(){



				tip.show();

				

				// If the user moves away and hovers over the tip again,

				// clear the previously set event:

				

				scheduleEvent.clear();



			},function(){



				// Schedule event actualy sets a timeout (as you can

				// see from the class definition below).

				

				scheduleEvent.set(function(){

					tip.hide();

				},settings.timeout);



			});

			

			// Removing the title attribute, so the regular OS titles are

			// not shown along with the tooltips.

			

			elem.removeAttr('title');

		});

		

	}





	/*

	/	Event Scheduler Class Definition

	*/



	function eventScheduler(){}

	

	eventScheduler.prototype = {

		set	: function (func,timeout){



			// The set method takes a function and a time period (ms) as

			// parameters, and sets a timeout



			this.timer = setTimeout(func,timeout);

		},

		clear: function(){

			

			// The clear method clears the timeout

			

			clearTimeout(this.timer);

		}

	}





	/*

	/	Tip Class Definition

	*/



	function Tip(txt){

		this.content = txt;

		this.shown = false;

	}

	

	Tip.prototype = {

		generate: function(){

			

			// The generate method returns either a previously generated element

			// stored in the tip variable, or generates it and saves it in tip for

			// later use, after which returns it.

			

			return this.tip || (this.tip = $('<span class="colorTip">'+this.content+

											 '<span class="pointyTipShadow"></span><span class="pointyTip"></span></span>'));

		},

		show: function(){

			if(this.shown) return;

			

			// Center the tip and start a fadeIn animation

			this.tip.css('margin-left',-this.tip.outerWidth()/2).fadeIn('fast');

			this.shown = true;

		},

		hide: function(){

			this.tip.fadeOut();

			this.shown = false;

		}

	}

	

})(jQuery);



/////////////////////////////////////////////////////End Color Tolltip

///////////////////////////////////////jquery.cycle.all.min.js//////////////////////////////

/*

 * jQuery Cycle Plugin (with Transition Definitions)

 * Examples and documentation at: http://jquery.malsup.com/cycle/

 * Copyright (c) 2007-2009 M. Alsup

 * Version: 2.73 (04-NOV-2009)

 * Dual licensed under the MIT and GPL licenses:

 * http://www.opensource.org/licenses/mit-license.php

 * http://www.gnu.org/licenses/gpl.html

 * Requires: jQuery v1.2.6 or later

 *

 * Originally based on the work of:

 *	1) Matt Oakes

 *	2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/)

 *	3) Benjamin Sterling (http://www.benjaminsterling.com/experiments/jqShuffle/)

 */

(function(i){var l="2.73";if(i.support==undefined){i.support={opacity:!(i.browser.msie)}}function a(q){if(i.fn.cycle.debug){f(q)}}function f(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}i.fn.cycle=function(r,q){var s={s:this.selector,c:this.context};if(this.length===0&&r!="stop"){if(!i.isReady&&s.s){f("DOM not ready, queuing slideshow");i(function(){i(s.s,s.c).cycle(r,q)});return this}f("terminating; zero elements found by selector"+(i.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var w=m(this,r,q);if(w===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var x=i(this);var y=w.slideExpr?i(w.slideExpr,this):x.children();var u=y.get();if(u.length<2){f("terminating; too few slides: "+u.length);return}var t=k(x,y,u,w,s);if(t===false){return}var v=t.continuous?10:h(t.currSlide,t.nextSlide,t,!t.rev);if(v){v+=(t.delay||0);if(v<10){v=10}a("first timeout: "+v);this.cycleTimeout=setTimeout(function(){e(u,t,0,!t.rev)},v)}})};function m(q,t,r){if(q.cycleStop==undefined){q.cycleStop=0}if(t===undefined||t===null){t={}}if(t.constructor==String){switch(t){case"stop":q.cycleStop++;if(q.cycleTimeout){clearTimeout(q.cycleTimeout)}q.cycleTimeout=0;i(q).removeData("cycle.opts");return false;case"pause":q.cyclePause=1;return false;case"resume":q.cyclePause=0;if(r===true){t=i(q).data("cycle.opts");if(!t){f("options not found, can not resume");return false}if(q.cycleTimeout){clearTimeout(q.cycleTimeout);q.cycleTimeout=0}e(t.elements,t,1,1)}return false;case"prev":case"next":var u=i(q).data("cycle.opts");if(!u){f('options not found, "prev/next" ignored');return false}i.fn.cycle[t](u);return false;default:t={fx:t}}return t}else{if(t.constructor==Number){var s=t;t=i(q).data("cycle.opts");if(!t){f("options not found, can not advance slide");return false}if(s<0||s>=t.elements.length){f("invalid slide index: "+s);return false}t.nextSlide=s;if(q.cycleTimeout){clearTimeout(q.cycleTimeout);q.cycleTimeout=0}if(typeof r=="string"){t.oneTimeFx=r}e(t.elements,t,1,s>=t.currSlide);return false}}return t}function b(q,r){if(!i.support.opacity&&r.cleartype&&q.style.filter){try{q.style.removeAttribute("filter")}catch(s){}}}function k(y,J,u,t,E){var C=i.extend({},i.fn.cycle.defaults,t||{},i.metadata?y.metadata():i.meta?y.data():{});if(C.autostop){C.countdown=C.autostopCount||u.length}var r=y[0];y.data("cycle.opts",C);C.$cont=y;C.stopCount=r.cycleStop;C.elements=u;C.before=C.before?[C.before]:[];C.after=C.after?[C.after]:[];C.after.unshift(function(){C.busy=0});if(!i.support.opacity&&C.cleartype){C.after.push(function(){b(this,C)})}if(C.continuous){C.after.push(function(){e(u,C,0,!C.rev)})}n(C);if(!i.support.opacity&&C.cleartype&&!C.cleartypeNoBg){g(J)}if(y.css("position")=="static"){y.css("position","relative")}if(C.width){y.width(C.width)}if(C.height&&C.height!="auto"){y.height(C.height)}if(C.startingSlide){C.startingSlide=parseInt(C.startingSlide)}if(C.random){C.randomMap=[];for(var H=0;H<u.length;H++){C.randomMap.push(H)}C.randomMap.sort(function(L,w){return Math.random()-0.5});C.randomIndex=0;C.startingSlide=C.randomMap[0]}else{if(C.startingSlide>=u.length){C.startingSlide=0}}C.currSlide=C.startingSlide=C.startingSlide||0;var x=C.startingSlide;J.css({position:"absolute",top:0,left:0}).hide().each(function(w){var L=x?w>=x?u.length-(w-x):x-w:u.length-w;i(this).css("z-index",L)});i(u[x]).css("opacity",1).show();b(u[x],C);if(C.fit&&C.width){J.width(C.width)}if(C.fit&&C.height&&C.height!="auto"){J.height(C.height)}var D=C.containerResize&&!y.innerHeight();if(D){var v=0,B=0;for(var F=0;F<u.length;F++){var q=i(u[F]),K=q[0],A=q.outerWidth(),I=q.outerHeight();if(!A){A=K.offsetWidth}if(!I){I=K.offsetHeight}v=A>v?A:v;B=I>B?I:B}if(v>0&&B>0){y.css({width:v+"px",height:B+"px"})}}if(C.pause){y.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(c(C)===false){return false}var s=false;t.requeueAttempts=t.requeueAttempts||0;J.each(function(){var N=i(this);this.cycleH=(C.fit&&C.height)?C.height:N.height();this.cycleW=(C.fit&&C.width)?C.width:N.width();if(N.is("img")){var L=(i.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var O=(i.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var M=(i.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(L||O||M||w){if(E.s&&C.requeueOnImageNotLoaded&&++t.requeueAttempts<100){f(t.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){i(E.s,E.c).cycle(t)},C.requeueTimeout);s=true;return false}else{f("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(s){return false}C.cssBefore=C.cssBefore||{};C.animIn=C.animIn||{};C.animOut=C.animOut||{};J.not(":eq("+x+")").css(C.cssBefore);if(C.cssFirst){i(J[x]).css(C.cssFirst)}if(C.timeout){C.timeout=parseInt(C.timeout);if(C.speed.constructor==String){C.speed=i.fx.speeds[C.speed]||parseInt(C.speed)}if(!C.sync){C.speed=C.speed/2}while((C.timeout-C.speed)<250){C.timeout+=C.speed}}if(C.easing){C.easeIn=C.easeOut=C.easing}if(!C.speedIn){C.speedIn=C.speed}if(!C.speedOut){C.speedOut=C.speed}C.slideCount=u.length;C.currSlide=C.lastSlide=x;if(C.random){C.nextSlide=C.currSlide;if(++C.randomIndex==u.length){C.randomIndex=0}C.nextSlide=C.randomMap[C.randomIndex]}else{C.nextSlide=C.startingSlide>=(u.length-1)?0:C.startingSlide+1}if(!C.multiFx){var G=i.fn.cycle.transitions[C.fx];if(i.isFunction(G)){G(y,J,C)}else{if(C.fx!="custom"&&!C.multiFx){f("unknown transition: "+C.fx,"; slideshow terminating");return false}}}var z=J[x];if(C.before.length){C.before[0].apply(z,[z,z,C,true])}if(C.after.length>1){C.after[1].apply(z,[z,z,C,true])}if(C.next){i(C.next).bind(C.prevNextEvent,function(){return o(C,C.rev?-1:1)})}if(C.prev){i(C.prev).bind(C.prevNextEvent,function(){return o(C,C.rev?1:-1)})}if(C.pager){d(u,C)}j(C,u);return C}function n(q){q.original={before:[],after:[]};q.original.cssBefore=i.extend({},q.cssBefore);q.original.cssAfter=i.extend({},q.cssAfter);q.original.animIn=i.extend({},q.animIn);q.original.animOut=i.extend({},q.animOut);i.each(q.before,function(){q.original.before.push(this)});i.each(q.after,function(){q.original.after.push(this)})}function c(w){var u,s,r=i.fn.cycle.transitions;if(w.fx.indexOf(",")>0){w.multiFx=true;w.fxs=w.fx.replace(/\s*/g,"").split(",");for(u=0;u<w.fxs.length;u++){var v=w.fxs[u];s=r[v];if(!s||!r.hasOwnProperty(v)||!i.isFunction(s)){f("discarding unknown transition: ",v);w.fxs.splice(u,1);u--}}if(!w.fxs.length){f("No valid transitions named; slideshow terminating.");return false}}else{if(w.fx=="all"){w.multiFx=true;w.fxs=[];for(p in r){s=r[p];if(r.hasOwnProperty(p)&&i.isFunction(s)){w.fxs.push(p)}}}}if(w.multiFx&&w.randomizeEffects){var t=Math.floor(Math.random()*20)+30;for(u=0;u<t;u++){var q=Math.floor(Math.random()*w.fxs.length);w.fxs.push(w.fxs.splice(q,1)[0])}a("randomized fx sequence: ",w.fxs)}return true}function j(r,q){r.addSlide=function(u,v){var t=i(u),w=t[0];if(!r.autostopCount){r.countdown++}q[v?"unshift":"push"](w);if(r.els){r.els[v?"unshift":"push"](w)}r.slideCount=q.length;t.css("position","absolute");t[v?"prependTo":"appendTo"](r.$cont);if(v){r.currSlide++;r.nextSlide++}if(!i.support.opacity&&r.cleartype&&!r.cleartypeNoBg){g(t)}if(r.fit&&r.width){t.width(r.width)}if(r.fit&&r.height&&r.height!="auto"){$slides.height(r.height)}w.cycleH=(r.fit&&r.height)?r.height:t.height();w.cycleW=(r.fit&&r.width)?r.width:t.width();t.css(r.cssBefore);if(r.pager){i.fn.cycle.createPagerAnchor(q.length-1,w,i(r.pager),q,r)}if(i.isFunction(r.onAddSlide)){r.onAddSlide(t)}else{t.hide()}}}i.fn.cycle.resetState=function(r,q){q=q||r.fx;r.before=[];r.after=[];r.cssBefore=i.extend({},r.original.cssBefore);r.cssAfter=i.extend({},r.original.cssAfter);r.animIn=i.extend({},r.original.animIn);r.animOut=i.extend({},r.original.animOut);r.fxFn=null;i.each(r.original.before,function(){r.before.push(this)});i.each(r.original.after,function(){r.after.push(this)});var s=i.fn.cycle.transitions[q];if(i.isFunction(s)){s(r.$cont,i(r.elements),r)}};function e(x,q,w,y){if(w&&q.busy&&q.manualTrump){i(x).stop(true,true);q.busy=false}if(q.busy){return}var u=q.$cont[0],A=x[q.currSlide],z=x[q.nextSlide];if(u.cycleStop!=q.stopCount||u.cycleTimeout===0&&!w){return}if(!w&&!u.cyclePause&&((q.autostop&&(--q.countdown<=0))||(q.nowrap&&!q.random&&q.nextSlide<q.currSlide))){if(q.end){q.end(q)}return}if(w||!u.cyclePause){var v=q.fx;A.cycleH=A.cycleH||i(A).height();A.cycleW=A.cycleW||i(A).width();z.cycleH=z.cycleH||i(z).height();z.cycleW=z.cycleW||i(z).width();if(q.multiFx){if(q.lastFx==undefined||++q.lastFx>=q.fxs.length){q.lastFx=0}v=q.fxs[q.lastFx];q.currFx=v}if(q.oneTimeFx){v=q.oneTimeFx;q.oneTimeFx=null}i.fn.cycle.resetState(q,v);if(q.before.length){i.each(q.before,function(B,C){if(u.cycleStop!=q.stopCount){return}C.apply(z,[A,z,q,y])})}var s=function(){i.each(q.after,function(B,C){if(u.cycleStop!=q.stopCount){return}C.apply(z,[A,z,q,y])})};if(q.nextSlide!=q.currSlide){q.busy=1;if(q.fxFn){q.fxFn(A,z,q,s,y)}else{if(i.isFunction(i.fn.cycle[q.fx])){i.fn.cycle[q.fx](A,z,q,s)}else{i.fn.cycle.custom(A,z,q,s,w&&q.fastOnEvent)}}}q.lastSlide=q.currSlide;if(q.random){q.currSlide=q.nextSlide;if(++q.randomIndex==x.length){q.randomIndex=0}q.nextSlide=q.randomMap[q.randomIndex]}else{var t=(q.nextSlide+1)==x.length;q.nextSlide=t?0:q.nextSlide+1;q.currSlide=t?x.length-1:q.nextSlide-1}if(q.pager){i.fn.cycle.updateActivePagerLink(q.pager,q.currSlide)}}var r=0;if(q.timeout&&!q.continuous){r=h(A,z,q,y)}else{if(q.continuous&&u.cyclePause){r=10}}if(r>0){u.cycleTimeout=setTimeout(function(){e(x,q,0,!q.rev)},r)}}i.fn.cycle.updateActivePagerLink=function(q,r){i(q).each(function(){i(this).find("a").removeClass("activeSlide").filter("a:eq("+r+")").addClass("activeSlide")})};function h(v,s,u,r){if(u.timeoutFn){var q=u.timeoutFn(v,s,u,r);while((q-u.speed)<250){q+=u.speed}a("calculated timeout: "+q+"; speed: "+u.speed);if(q!==false){return q}}return u.timeout}i.fn.cycle.next=function(q){o(q,q.rev?-1:1)};i.fn.cycle.prev=function(q){o(q,q.rev?1:-1)};function o(r,u){var q=r.elements;var t=r.$cont[0],s=t.cycleTimeout;if(s){clearTimeout(s);t.cycleTimeout=0}if(r.random&&u<0){r.randomIndex--;if(--r.randomIndex==-2){r.randomIndex=q.length-2}else{if(r.randomIndex==-1){r.randomIndex=q.length-1}}r.nextSlide=r.randomMap[r.randomIndex]}else{if(r.random){if(++r.randomIndex==q.length){r.randomIndex=0}r.nextSlide=r.randomMap[r.randomIndex]}else{r.nextSlide=r.currSlide+u;if(r.nextSlide<0){if(r.nowrap){return false}r.nextSlide=q.length-1}else{if(r.nextSlide>=q.length){if(r.nowrap){return false}r.nextSlide=0}}}}if(i.isFunction(r.prevNextClick)){r.prevNextClick(u>0,r.nextSlide,q[r.nextSlide])}e(q,r,1,u>=0);return false}function d(r,s){var q=i(s.pager);i.each(r,function(t,u){i.fn.cycle.createPagerAnchor(t,u,q,r,s)});i.fn.cycle.updateActivePagerLink(s.pager,s.startingSlide)}i.fn.cycle.createPagerAnchor=function(u,v,s,t,w){var r;if(i.isFunction(w.pagerAnchorBuilder)){r=w.pagerAnchorBuilder(u,v)}else{r='<a href="#">'+(u+1)+"</a>"}if(!r){return}var x=i(r);if(x.parents("body").length===0){var q=[];if(s.length>1){s.each(function(){var y=x.clone(true);i(this).append(y);q.push(y[0])});x=i(q)}else{x.appendTo(s)}}x.bind(w.pagerEvent,function(A){A.preventDefault();w.nextSlide=u;var z=w.$cont[0],y=z.cycleTimeout;if(y){clearTimeout(y);z.cycleTimeout=0}if(i.isFunction(w.pagerClick)){w.pagerClick(w.nextSlide,t[w.nextSlide])}e(t,w,1,w.currSlide<u);return false});if(w.pagerEvent!="click"){x.click(function(){return false})}if(w.pauseOnPagerHover){x.hover(function(){w.$cont[0].cyclePause++},function(){w.$cont[0].cyclePause--})}};i.fn.cycle.hopsFromLast=function(t,s){var r,q=t.lastSlide,u=t.currSlide;if(s){r=u>q?u-q:t.slideCount-q}else{r=u<q?q-u:q+t.slideCount-u}return r};function g(s){function r(t){t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function q(w){for(;w&&w.nodeName.toLowerCase()!="html";w=w.parentNode){var t=i.css(w,"background-color");if(t.indexOf("rgb")>=0){var u=t.match(/\d+/g);return"#"+r(u[0])+r(u[1])+r(u[2])}if(t&&t!="transparent"){return t}}return"#ffffff"}s.each(function(){i(this).css("background-color",q(this))})}i.fn.cycle.commonReset=function(v,t,u,r,s,q){i(u.elements).not(v).hide();u.cssBefore.opacity=1;u.cssBefore.display="block";if(r!==false&&t.cycleW>0){u.cssBefore.width=t.cycleW}if(s!==false&&t.cycleH>0){u.cssBefore.height=t.cycleH}u.cssAfter=u.cssAfter||{};u.cssAfter.display="none";i(v).css("zIndex",u.slideCount+(q===true?1:0));i(t).css("zIndex",u.slideCount+(q===true?0:1))};i.fn.cycle.custom=function(B,v,q,s,r){var A=i(B),w=i(v);var t=q.speedIn,z=q.speedOut,u=q.easeIn,y=q.easeOut;w.css(q.cssBefore);if(r){if(typeof r=="number"){t=z=r}else{t=z=1}u=y=null}var x=function(){w.animate(q.animIn,t,u,s)};A.animate(q.animOut,z,y,function(){if(q.cssAfter){A.css(q.cssAfter)}if(!q.sync){x()}});if(q.sync){x()}};i.fn.cycle.transitions={fade:function(r,s,q){s.not(":eq("+q.currSlide+")").css("opacity",0);q.before.push(function(v,t,u){i.fn.cycle.commonReset(v,t,u);u.cssBefore.opacity=0});q.animIn={opacity:1};q.animOut={opacity:0};q.cssBefore={top:0,left:0}}};i.fn.cycle.ver=function(){return l};i.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!i.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);

/*

 * jQuery Cycle Plugin Transition Definitions

 * This script is a plugin for the jQuery Cycle Plugin

 * Examples and documentation at: http://malsup.com/jquery/cycle/

 * Copyright (c) 2007-2008 M. Alsup

 * Version:	 2.72

 * Dual licensed under the MIT and GPL licenses:

 * http://www.opensource.org/licenses/mit-license.php

 * http://www.gnu.org/licenses/gpl.html

 */

(function(a){a.fn.cycle.transitions.none=function(c,d,b){b.fxFn=function(g,e,f,h){a(e).show();a(g).hide();h()}};a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var c,b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true)});if(!d.speedAdjusted){d.speed=d.speed/2;d.speedAdjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(c=0;c<f.length;c++){d.els.push(f[c])}for(c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(m,j,l,g,i){var h=i?a(m):a(j);a(j).css(l.cssBefore);var k=l.slideCount;h.animate(l.shuffle,l.speedIn,l.easeIn,function(){var o=a.fn.cycle.hopsFromLast(l,i);for(var q=0;q<o;q++){i?l.els.push(l.els.shift()):l.els.unshift(l.els.pop())}if(i){for(var r=0,n=l.els.length;r<n;r++){a(l.els[r]).css("z-index",n-r+k)}}else{var s=a(m).css("z-index");h.css("z-index",parseInt(s)+1+k)}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){a(i?this:m).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h);h.animIn.height=g.cycleH;h.animOut.top=i.cycleH});d.cssBefore={top:c,left:b};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn={top:0,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h);if(i=="right"){h.cssBefore.left=-b}else{if(i=="up"){h.cssBefore.top=c}else{if(i=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h,true,true,true);if(i=="right"){h.animOut.left=b}else{if(i=="up"){h.animOut.top=-c}else{if(i=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(s,m,e){var q=s.css("overflow","hidden").width();var j=s.height();e.cssBefore=e.cssBefore||{};var g;if(e.clip){if(/l2r/.test(e.clip)){g="rect(0px 0px "+j+"px 0px)"}else{if(/r2l/.test(e.clip)){g="rect(0px "+q+"px "+j+"px "+q+"px)"}else{if(/t2b/.test(e.clip)){g="rect(0px "+q+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){g="rect("+j+"px "+q+"px "+j+"px 0px)"}else{if(/zoom/.test(e.clip)){var o=parseInt(j/2);var f=parseInt(q/2);g="rect("+o+"px "+f+"px "+o+"px "+f+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var k=e.cssBefore.clip.match(/(\d+)/g);var u=parseInt(k[0]),c=parseInt(k[1]),n=parseInt(k[2]),i=parseInt(k[3]);e.before.push(function(w,h,t){if(w==h){return}var d=a(w),b=a(h);a.fn.cycle.commonReset(w,h,t,true,true,false);t.cssAfter.display="block";var r=1,l=parseInt((t.speedIn/13))-1;(function v(){var y=u?u-parseInt(r*(u/l)):0;var z=i?i-parseInt(r*(i/l)):0;var A=n<j?n+parseInt(r*((j-n)/l||1)):j;var x=c<q?c+parseInt(r*((q-c)/l||1)):q;b.css({clip:"rect("+y+"px "+x+"px "+A+"px "+z+"px)"});(r++<=l)?setTimeout(v,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);



////////////////////////////////End Jquery.cycle.all.min.js

///////////////////////////////////////Scroll To min.js code//////////////////////////////////////////

/**

 * jQuery.ScrollTo - Easy element scrolling using jQuery.

 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com

 * Dual licensed under MIT and GPL.

 * Date: 5/25/2009

 * @author Ariel Flesler

 * @version 1.4.2

 *

 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html

 */

;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);



////////////////////////////End Scroll to min.js
