﻿var clip = null;

function $(id) { return document.getElementById(id); }

function initMain(){
    init();
    init2();
    init3();
    init4();
}

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('d_clip_button');
}

function my_load(client) {
    
}

function my_mouse_over(client) {
    clip.setText(location.href);
}

function my_complete(client, text) {
    alert("The link of 'Love Horescopes' has been saved. Share it with your friends by a simple click of 'Paste'.");
}

function init2() {
    clip2 = new ZeroClipboard.Client();
    clip2.setHandCursor(true);

    clip2.addEventListener('load', my_load2);
    clip2.addEventListener('mouseOver', my_mouse_over2);
    clip2.addEventListener('complete', my_complete2);

    clip2.glue('d_clip_button2');
}

function my_load2(client) {

}

function my_mouse_over2(client) {
    //clip2.setText(location.href);
}

function my_complete2(client, text) {
    window.open('http://www.friendster.com/sharer.php?u=' + encodeURIComponent(location.href) + '&t=' + encodeURIComponent('HighStreet 5 New Version Free Gifts - Have your love foretold in Love Horoscopes version.'), 'Friendster', 'scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');
    //alert("The link of HighStreet 5 Gallery have been pasted on your shear plate.You can share it with your friends now!");
}

function init3() {
    clip3 = new ZeroClipboard.Client();
    clip3.setHandCursor(true);

    clip3.addEventListener('load', my_load3);
    clip3.addEventListener('mouseOver', my_mouse_over3);
    clip3.addEventListener('complete', my_complete3);

    clip3.glue('d_clip_button3');
}

function my_load3(client) {

}

function my_mouse_over3(client) {
    //clip3.setText(location.href);
}

function my_complete3(client, text) {

    window.open('http://www.facebook.com/sharer.php?t=' + encodeURIComponent('HighStreet 5 New Version Free Gifts - Have your love foretold in Love Horoscopes version.') + '&u=' + encodeURIComponent(location.href), 'Facebook', 'scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');
    //alert("The link of HighStreet 5 Gallery have been pasted on your shear plate.You can share it with your friends now!");
}

function init4() {
    clip4 = new ZeroClipboard.Client();
    clip4.setHandCursor(true);

    clip4.addEventListener('load', my_load4);
    clip4.addEventListener('mouseOver', my_mouse_over4);
    clip4.addEventListener('complete', my_complete4);

    clip4.glue('d_clip_button4');
}

function my_load4(client) {

}

function my_mouse_over4(client) {
    //clip4.setText(location.href);
}

function my_complete4(client, text) {

    window.open('http://bookmarks.yahoo.com/myresults/bookmarklet?t=' + encodeURIComponent('HighStreet 5 New Version Free Gifts - Have your love foretold in Love Horoscopes version.') + '&u=' + encodeURIComponent(location.href), 'Yahoo', 'scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');
    //alert("The link of HighStreet 5 Gallery have been pasted on your shear plate.You can share it with your friends now!");
}
