// JavaScript Document
<!--
$(document).ready(function(){
	//init
	 $.getScript("/js/base.js", function(){ dropDownMenu('');});
	  $.getScript("/js/featuredcontentglider.js");
	  $("#printThis , .shareBox li:eq(1)").click(function(){
	  	window.print();
		return false;
	  });
	  
	  $(".shareBox li").hover(function(){
	    $(this).children("em").stop(true, true).animate({opacity: "show", filter: "alpha(opacity=1)"}, "fast");
	  },
	  function () {
		$(this).children("em").animate({opacity: "hide", filter: "alpha(opacity=0)"}, "fast");
	  });
	  
	  $(".shareBox li").hover(function(){
	    $(this).children("em").stop(true, true).animate({opacity: "show", filter: "alpha(opacity=1)"}, "fast");
	  },
	  function () {
		$(this).children("em").animate({opacity: "hide", filter: "alpha(opacity=0)"}, "fast");
	  });
	  
	 $("#shortlyURL p span").hover(function(){
	 	$(this).children("span").show();
	 },
	 function () {
	 	$(this).children("span").hide();	
	 });
	 init();
	  
 });

var clip = null;
			
function init() {
	clip = new ZeroClipboard.Client();
	clip.setHandCursor( true );
	
	clip.addEventListener('load', my_load);
	clip.addEventListener('mouseOver', my_mouse_over);
	clip.addEventListener('complete', my_complete);
	
	clip.glue( 'submitCopy' );
}

function my_load(client) {
	debugstr("Flash movie loaded and ready.");
}

function my_mouse_over(client) {
	// we can cheat a little here -- update the text on mouse over
	clip.setText( $("#newURL").val() );
}

function my_complete(client, text) {
	$("#newURL").select();
	debugstr("Copied text to clipboard: " + text );
}

function debugstr(msg) {
	//alert(msg);		
}
-->
