
$(function() {
    swapValues = [];
    $(".swap_value").each(function(i){
        swapValues[i] = $(this).val();
        $(this).focus(function(){
            if ($(this).val() == swapValues[i]) {
                $(this).val("");
            }
        }).blur(function(){
            if ($.trim($(this).val()) == "") {
                $(this).val(swapValues[i]);
            }
        });
    });
});



var profiles =
{
windowcomment: {height:500, width:460, status:1, resizable:1, scrollbars:1},
windowtest: {height:500, width:600, status:1, resizable:1, scrollbars:1, center:1},
windowshare: {height:490, width:400, status:1, resizable:0, center:1},
window800: {height:800, width:800, status:1},
window500: {height:500,	width:500, status:1, resizable:0},
windowCenter: {	height:300,	width:400, center:1},
windowMP3: {	height:240,	width:320, center:1}
};


$(document).ready(function() {   
    $("a[@rel='external']").click(function() { window.open($(this).attr('href')); return false; });
	$('.vid-details').tabs({ fxFade: true, fxSpeed: 'fast' });	
	$("div#vidbox, div#readcme").corner("round 10px");
	$("div#vidframe,div#vidfeature,div.addcomment").corner("round bottom 10px");
	
	$(".popupwindow").popupwindow(profiles);
	$('.logindrop').hide();
    $('a#log-show').click(function() {
    $('.logindrop').slideDown('slow');
    return false;});
    $('#logbttn').click(function() {
    $('.logindrop').slideUp('fast');
    return false;
    });
    $('a#log-toggle').click(function() {
    $('.logindrop').slideToggle(400);
    return false;
   });
	      $('.proitem').hover(function() {
        $(this).addClass('prohover');
      }, function() {
        $(this).removeClass('prohover');
      });
	$('.accred').hide();
    $('a#readit').click(function() {
    $('div#readcme').hide();
	$('.accred').show();
    return false;});
	
	
});


$().ajaxStop($.unblockUI); 
    function test() { 
        $.ajax({ url: 'dummypage.html?' + new Date().getTime() }); 
    } 
    $(document).ready(function() { 

        $('#linkadd').click(function() { 
            $.blockUI(); 
            test(); 
        }); 

    }); 