// document is loaded
jQuery(document).ready(function($){
								
	$('.slides').cycle({
    speed:    1400, 
    timeout:  9000 
            });
	// main nav
	$("#menu > ul").superfish({
		delay:900,
		autoArrows: false,
		animation: { height:"show" }
	}).addClass('clearfix');
	
	// controls padding on submenus
	$('#menu ul.Level1').wrapInner("<div class='clearfix'/>");
	
	// remove title tags from menu links
	$('#menu a').attr('title','');
	
	// keep main menu items from jumping
	$('#menu a[href="#"]').click(function() { return false });
	$('#sitemenu a[href="#"]').click(function() { return false });
	
	// remove outline from links
	$('a').focus(function() { this.blur(); });
	

	// open off-site links in new window
	$("a[href^='http']:not([href*='"+ this.location.host +"'])").attr("target", "_blank");
	// for pdfs
	$("a[href$='.pdf']").attr("target","_blank");
	
	// faq accordions
	$('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();
		
// BEGIN LivePerson Monitor.
 var lpMTagConfig = {'lpServer' : "server.iad.liveperson.net",'lpNumber' : "58428053",'lpProtocol' : (document.location.toString().indexOf('https:')==0) ? 'https' : 'http'}; function lpAddMonitorTag(src){if(typeof(src)=='undefined'||typeof(src)=='object'){src=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:'/hcp/html/mTag.js';}if(src.indexOf('http')!=0){src=lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpServer+src+'?site='+lpMTagConfig.lpNumber;}else{if(src.indexOf('site=')<0){if(src.indexOf('?')<0)src=src+'?';else src=src+'&';src=src+'site='+lpMTagConfig.lpNumber;}};var s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('charset','iso-8859-1');s.setAttribute('src',src);document.getElementsByTagName('head').item(0).appendChild(s);} if (window.attachEvent) window.attachEvent('onload',lpAddMonitorTag); else window.addEventListener("load",lpAddMonitorTag,false);
});
// END LivePerson Monitor.

//sIFR implementation
function pageScripts(){
	var TradeGothic = {  src: skinpath + 'TradeGothic.swf' };
	sIFR.activate(TradeGothic);
	sIFR.replace(TradeGothic, {
	  selector: 'h1', 
	  wmode: 'transparent', 
	  src:  skinpath +  'TradeGothic.swf', 
	  css: [ '.sIFR-root {color:#f3ecda; font-size:30px; text-transform:uppercase;}'  ]
	});
}
function pageScripts_home(){
	var TradeGothic = {  src: skinpath + 'TradeGothic.swf' };
	sIFR.activate(TradeGothic);
	sIFR.replace(TradeGothic, {
	  selector: 'p.trade span', 
	  wmode: 'transparent', 
	  src:  skinpath +  'TradeGothic.swf', 
	  css: [ '.sIFR-root {color:#ffffff; font-size:14px;font-weight:normal!important;}'  ] 
	});
}


