$(document).ready(function() {
$("a.popup").fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
});
var jquery, jqueryui, prototype, mootools, dojo, swfobject, yui, extcore, chromeframe, scriptaculous = null;
function snatch(id) { return document.getElementById(id); }
function init() {
jquery = new ZeroClipboard.Client();
jquery.setHandCursor( true );
jquery.addEventListener('mouseOver', function (client) {
jquery.setText( '' );
});
jquery.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=1", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
jquery.glue( 'd_clip_jquery', 'd_clip_container_jquery' );
jqueryui = new ZeroClipboard.Client();
jqueryui.setHandCursor( true );
jqueryui.addEventListener('mouseOver', function (client) {
jqueryui.setText( '' );
});
jqueryui.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=2", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
jqueryui.glue( 'd_clip_jqueryui', 'd_clip_container_jqueryui' );
prototype = new ZeroClipboard.Client();
prototype.setHandCursor( true );
prototype.addEventListener('mouseOver', function (client) {
prototype.setText( '' );
});
prototype.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=3", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
prototype.glue( 'd_clip_prototype', 'd_clip_container_prototype' );
mootools = new ZeroClipboard.Client();
mootools.setHandCursor( true );
mootools.addEventListener('mouseOver', function (client) {
mootools.setText( '' );
});
mootools.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=4", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
mootools.glue( 'd_clip_mootools', 'd_clip_container_mootools' );
dojo = new ZeroClipboard.Client();
dojo.setHandCursor( true );
dojo.addEventListener('mouseOver', function (client) {
dojo.setText( '' );
});
dojo.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=5", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
dojo.glue( 'd_clip_dojo', 'd_clip_container_dojo' );
swfobject = new ZeroClipboard.Client();
swfobject.setHandCursor( true );
swfobject.addEventListener('mouseOver', function (client) {
swfobject.setText( '' );
});
swfobject.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=6", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
swfobject.glue( 'd_clip_swfobject', 'd_clip_container_swfobject' );
yui = new ZeroClipboard.Client();
yui.setHandCursor( true );
yui.addEventListener('mouseOver', function (client) {
yui.setText( '' );
});
yui.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=7", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
yui.glue( 'd_clip_yui', 'd_clip_container_yui' );
extcore = new ZeroClipboard.Client();
extcore.setHandCursor( true );
extcore.addEventListener('mouseOver', function (client) {
extcore.setText( '' );
});
extcore.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=8", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
extcore.glue( 'd_clip_extcore', 'd_clip_container_extcore' );
chromeframe = new ZeroClipboard.Client();
chromeframe.setHandCursor( true );
chromeframe.addEventListener('mouseOver', function (client) {
chromeframe.setText( '' );
});
chromeframe.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=9", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
chromeframe.glue( 'd_clip_chromeframe', 'd_clip_container_chromeframe' );
scriptaculous = new ZeroClipboard.Client();
scriptaculous.setHandCursor( true );
scriptaculous.addEventListener('mouseOver', function (client) {
scriptaculous.setText( '' );
});
scriptaculous.addEventListener('complete', function (client, text) {
$.ajax({ url: "count.php?client=10", context: document.body, success: function(){}});
$('#copied').fadeIn('slow', function(){
setTimeout(function(){
$('#copied').fadeOut('fast');
}, 1200);
});
});
scriptaculous.glue( 'd_clip_scriptaculous', 'd_clip_container_scriptaculous' );
}