//more about QC, Expand, collaps
var mins = 2;
$(function()
	{		
		$("#trigger").click(function(event) {
		event.preventDefault();
		linkText = document.getElementById('trigger').innerHTML;
		if(linkText=='More About QC [+]'){
			document.getElementById('trigger').innerHTML = 'Less About QC [-]';
		}else{
			document.getElementById('trigger').innerHTML = 'More About QC [+]';
		}
		$("#box").slideToggle();
		});
/*		$("#box a").click(function(event) {
		event.preventDefault();
		$("#box").slideUp();
		})*/;
	});
	

//quick contact, Expand, collaps
var mins = 2;
$(function()
	{		
		$("#qcontactLink").mouseover(function(event) {
		event.preventDefault();
			$("#quick_con").slideToggle();
		});
		
	});


//facebox
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox({
        loading_image : 'loading.gif',
        close_image   : 'closelabel.gif'
      }) 
    })

//accordion + page peel
	$(document).ready(function() {
		$('#accordion').accordion();
		 $( '#target' ).fold({side: 'right', directory: '/images'});
	});

// add bookmark
function addBookmark(title,url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
	}
}



//social media icon animation
	$(document).ready(function() {
		$('.followUs, .shareUs').fadeIn(2000);
		$('.followUs a').hover(function(){
			$(this).animate({marginTop: "5px"})
		}, function(){
			$(this).animate({marginTop: "0px"})
		});
	});
