/*
    Front-End Javascript
	This file is generated automatically, please don't edit
*/function preloadImages() {  var d=document; if(d.images){ if(!d.p) d.p=new Array(); var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}}preloadImages('../Theme/bg_alerts.png');preloadImages('../Theme/err_red.png');preloadImages('../Theme/err_green.png');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 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;}var timeout         = 500;var closetimer		= 0;var ddmenuitem      = 0;function jsddm_open(){	jsddm_canceltimer();jsddm_close();ddmenuitem = jQuery(this).find('ul').eq(0).css('visibility', 'visible');}function jsddm_close(){	if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}function jsddm_timer(){	closetimer = window.setTimeout(jsddm_close, timeout);}function jsddm_canceltimer(){	if(closetimer){	window.clearTimeout(closetimer);closetimer = null;}}jQuery(document).ready(function(){	jQuery('#jsddm > li').bind('mouseover', jsddm_open);jQuery('#jsddm > li').bind('mouseout',  jsddm_timer);});document.onclick = jsddm_close;function fieldRestore(field) {field.style.borderColor = "#009AEF";}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}
