// JavaScript Document
	function chekvid(){
		var file = document.getElementById('fakefilepc').value;
		file = file.split('.');
		if(file[(file.length-1)] == 'mov' || file[(file.length-1)] == 'm4v' || file[(file.length-1)] == 'wmv' || file[(file.length-1)] == 'avi' || file[(file.length-1)] == 'flv' || file[(file.length-1)] == 'mpg' || file[(file.length-1)] == 'mpeg'){
			show_statusbar();
			return true;
		}else{
			alert('This video format is not allowed!');
			return false;
		}
	}

	function show_statusbar(){
		//alert(document.getElementById('status_bar').style.display);
		document.getElementById('status_bar').style.display='block';
	}
    $(document).ready(function(){
        if ($("div.message")) {
            setTimeout(function(){ $("div.message").fadeOut("slow")}, 7000);
         }
	    if ($("input#statuss")) {
		$("input#statuss").click(function(){
		    $("input#statuss").attr("value", "");
		});
	    }
        if ($("div.feeds")) {
               $("div.feeds a").click(function(){
                  window.open($(this).attr("href"));
                  return false;
               })
            }
        })

<!--

	   /* tinyMCE.init({

	    // General options

	    mode : "exact",

	    elements : "intro, entry",

	    theme : "simple",

	    skin : "o2k7",

	    plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,imagemanager",

	    

	    // Theme options

	    theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,styleselect,fontselect,fontsizeselect",

	    theme_advanced_buttons2 : "pastetext,pasteword,|,justifyleft,justifycenter,justifyright,justifyfull,|,replace,outdent,indent,|,link,unlink, image,cleanup,|,preview,|,forecolor,backcolor",

	    theme_advanced_buttons3 : "tablecontrols,hr,|,sub,sup,charmap,iespell,media,|,fullscreen,insertimage",

	    

	    theme_advanced_toolbar_location : "top",

	    theme_advanced_toolbar_align : "left",

	    theme_advanced_statusbar_location : "bottom",

	    theme_advanced_resizing : true,

	    

	    // Example content CSS (should be your site CSS)

	    content_css : "<?=base_url()?>css/style.css?"+ new Date().getTime(),

	    

	    // Drop lists for link/image/media/template dialogs

	    template_external_list_url : "lists/template_list.js",

	    external_link_list_url : "lists/link_list.js",

	    external_image_list_url : "lists/image_list.js",

	    media_external_list_url : "lists/media_list.js",

	    

	    // Replace values for the template plugin

	    template_replace_values : {

	    username : "foetus",

	    staffid : "991234"

	    }

	    });*/
		
		
		
// checkbox  for enable password field updating info profile

$(document).ready(function(){

		$("#chk-password").click(function(){
			  if ($("#chk-password").is(":checked")){
	
				$("#user-password").removeAttr('disabled');
				$("#user-password").click(function(){ $("#user-password").val('') });
				
			  }else{
				  
				$("#user-password").attr('disabled',true);
				
			  }
		});	
})
