/*
    Front-End Javascript
	This file is generated automatically, please don't edit
*/function alertMessage(message){alert(message);}function jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if (restore) selObj.selectedIndex=0;}function openAlertLayer(msg,icon){document.getElementById('error').style.visibility = 'visible';document.getElementById('error').innerHTML = '<div id="error_msg"></div><div id="error_ballon"><span class="error_icon"><img src="../Theme/'+icon+'.png" /></span><span class="alert_texts_small">'+msg+'</span></div>';}function openUploadLayer(msg){document.getElementById('error').style.visibility = 'visible';document.getElementById('error').innerHTML = '<div id="error_msg"></div><div id="error_ballon"><span class="upload_icon"><img src="../Theme/uploadbar.gif" /></span><span class="uploadtxt">'+msg+'</span></div>';}function openComments(){document.getElementById('comment_form').style.display = 'inline';document.getElementById('comment_bar').innerHTML = '<a href="javascript:closeComments();">x sluit</a>';}function closeComments(){document.getElementById('comment_form').style.display = 'none';document.getElementById('comment_bar').innerHTML = '<a href="javascript:openComments();">Reageer op deze post</a>';}function openVideo(video,title){document.getElementById('error').style.visibility = 'visible';document.getElementById('error').innerHTML = '<div id="error_msg"></div><div id="video_ballon"><div id="videoheader"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td class="videotitle">'+ title +'</td><td width="17"><img src="../Theme/close_video.gif" onClick="closeVideo();" style="cursor:pointer;" /></td></tr></table></div><div id="player">Please install the flash player and/or enable javascript</div></div>';flashembed("player", "../SwfObjects/flowplayer-3.0.7.swf",  {config: {
	clip:  video  ,
	plugins: {
		controlbar:null		
	}
}});}function closeVideo(){document.getElementById('error').style.visibility = 'hidden';document.getElementById('video_ballon').style.display = 'none';}function closeAlertLayer(){document.getElementById('error').style.visibility = 'hidden';}function SetupWindowClose(){window.setTimeout("closeAlertLayer()",3*1000);}function expandAdminBar(){document.getElementById('admin_bar').style.height = '100px';document.getElementById('admin_tool_bar').style.visibility = 'visible';}function getResolution(){var w_s = screen.width;var h_s = screen.height;myIdentifier=Math.random();var xmlhttp=false; //Clear our fetching variabletry {xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…} catch (e) {try {xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object} catch (E) {xmlhttp = false;}}if (!xmlhttp && typeof XMLHttpRequest!='undefined') {xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest}var file =  '../Shared/screens.php?width='; //This is the path to the file we just finished making *var hs =  '&height='; //This is the path to the file we just finished making *xmlhttp.open('GET', file + w_s + hs + h_s  , true); //Open the file through GET, and add the page we want to retrieve as a GET variable **xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4) { //Check if it is ready to recieve datavar content = xmlhttp.responseText; //The content data which has been retrieved ***if( content ){ //Make sure there is something in the content variable //                     document.getElementById('cronForm').innerHTML = content; //Change the inner content of your div to the newly retrieved content ****}}}xmlhttp.send(null) //Nullify the XMLHttpRequestreturn;}function fieldRestore(field) {field.style.borderColor = "#dbdbdb";}function askConfirmation(alert_txt){return confirm(alert_txt);}function askRestore(alert_txt){return confirm(alert_txt);}function checkDeleteMultiple(){window.scrollTo(0, 0);var err_txt_1 = document.frm_delete.error_text_1.value; var err_txt_2 = document.frm_delete.error_text_2.value; var check = false;for (i = 0;  i < frm_delete.checkbox.length;  i++){if (frm_delete.checkbox[i].checked)return confirm(err_txt_1);}if (!check){openAlertLayer(err_txt_2,'err_red');SetupWindowClose(); return (false);}}function toogleAll(checkname, exby) {for (i = 0; i < checkname.length; i++)checkname[i].checked = exby.checked? true:false}c=0du="";function a(dv,n){for(i=1;i<=n;i++){if(i==dv ){if(du!=dv){document.getElementById('mdiv'+i).style.display="inline"du=dv}else{du=""document.getElementById('mdiv'+i).style.display="none"}}else{document.getElementById('mdiv'+i).style.display="none"}	}	}function reveza(qq){document.getElementById(qq).className="itens_menu_r"}function volta(qq){document.getElementById(qq).className="itens_menu"}