// JavaScript Document
$(document).ready(function () {
    $('.moblist').hide();
    $('.bot1').click(function () { $('.addcom').slideToggle(500); });


    $("[watermarktext]").each(function () {
        $(this).addClass("Focus");
        $(this).val($(this).attr("watermarktext"));
        $(this).focusin(function () {
            if ($(this).val() == $(this).attr("watermarktext")) {
                $(this).val('');
                $(this).removeClass("Focus");
            }
        }).focusout(function () {
            if ($(this).val() == '') {
                $(this).val($(this).attr("watermarktext"));
                $(this).addClass("Focus");
            }
        });
    });




    $(document).ready(function () {
        var thumbs = $("div li img");
        var thumbs2 = $("div.album div img");

        for (var i = 0, ii = thumbs.length; i < ii; i++) {
            if (thumbs[i].title || thumbs[i].title.length > 0 || thumbs[i].title.length == 0) {
                var imgtitle = thumbs[i].title;
                $(thumbs[i]).wrap('<div class="wrapper" />').

				removeAttr('title');

            }
        }


        for (var i = 0, ii = thumbs2.length; i < ii; i++) {
            if (thumbs2[i].title || thumbs2[i].title.length > 0 || thumbs2[i].title.length == 0) {
                var imgtitle = thumbs2[i].title;
                $(thumbs2[i]).wrap('<div class="wrapper" />').

				removeAttr('title');

            }
        }




        $('.wrapper').hover(
		function () {
		    $(this).find('img').animate({ opacity: ".6" }, 300);
		    $(this).find('.caption').animate({ top: "-85px" }, 300);
		},
		function () {
		    $(this).find('img').animate({ opacity: "1.0" }, 300);
		    $(this).find('.caption').animate({ top: "85px" }, 100);
		}
		);
    });








    $(function () {

        $('.audio').each(function () {

            $(this).html("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='290' height='24' id='FlashID'>"

          + "<param name='movie' value='flash/player.swf' />"
          + "<param name='quality' value='high' />"
         + " <param name='wmode' value='transparent' />"
         + " <param name='swfversion' value='9.0.45.0' />"
         + " <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don�t want users to see the prompt. -->"
          + "<param name='expressinstall' value='scripts/expressInstall.swf' />"

		  + "<param value='&bg=0xebebeb&leftbg=0xffffff&lefticon=0x64c61a&rightbg=0xffffff&rightbghover=0x64c61a&righticon=0x64c61a&righticonhover=0xffffff&text=0x64c519&slider=0x64c519&track=0xebebeb&border=0x64c519&loader=0x9FFFB8&soundFile=" + $(this).attr('href') + "&rtl=yes' name='FlashVars'>"

         + " <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->"
          + "<!--[if !IE]>-->"
          + "<object type='application/x-shockwave-flash' data='flash/player.swf' width='290' height='24'>"
          + "  <!--<![endif]-->"

           + " <param name='quality' value='high' />"
          + "  <param name='wmode' value='transparent' />"
          + "  <param name='swfversion' value='9.0.45.0' />"
          + "  <param name='expressinstall' value='scripts/expressInstall.swf' />"

		  + "<param value='&bg=0xebebeb&leftbg=0xffffff&lefticon=0x64c61a&rightbg=0xffffff&rightbghover=0x64c61a&righticon=0x64c61a&righticonhover=0xffffff&text=0x64c519&slider=0x64c519&track=0xebebeb&border=0x64c519&loader=0x9FFFB8&soundFile=" + $(this).attr('href') + "&rtl=yes' name='FlashVars'>"



          + " <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->"
          + "  <div>"

           + "   <p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
           + " </div>"
           + " <!--[if !IE]>-->"
         + " </object>"
         + " <!--<![endif]-->"
        + "</object>");


        });

    });



});
