﻿function removedtext(a){if(a=="sw"){if(document.getElementById(a).value=="type here")document.getElementById(a).value="";else if(document.getElementById(a).value=="")document.getElementById(a).value="type here"}else if(a=="nl")if(document.getElementById(a).value=="type here")document.getElementById(a).value="";else if(document.getElementById(a).value=="")document.getElementById(a).value="type here"}function preload(c,a){var c=$(c),a=$(a);a.hide();var b=setInterval(function(){var d=a.find("img"),c=0;d.each(function(){if(this.complete)c++});if(c==d.length){clearInterval(b);setTimeout(function(){a.fadeIn("fast")},1e3)}},100)}$(function(){preload(".loading_img",".img")});$(function(){$(".scroll").scrollable({vertical:true,size:6,easing:"custom",speed:700}).mousewheel()});$(function(){$(".scrollSpecial").scrollable({vertical:true,size:16,easing:"custom",speed:700}).mousewheel()});$.easing.custom=function(f,a,c,d,e){var b=1.70158;if((a/=e/2)<1)return d/2*(a*a*(((b*=1.525)+1)*a-b))+c;return d/2*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)+c};$(function(){$(".extras").tooltip({tip:"#mini_dynatip",offset:[0,0],effect:"slide"}).dynamic({bottom:{direction:"down",bounce:true}})});$(document).ready(function(){$(".cp").colorbox({width:"50%",inline:true,href:"#companyProfile"});$(".ld").colorbox({width:"350px",inline:true,href:"#locationInfo"})});function promptALERT(promptAlertpicture,promptAlerttext){promptbox=document.createElement("div");promptbox.setAttribute("id","promptALERT");document.getElementsByTagName("body")[0].appendChild(promptbox);promptbox=eval("document.getElementById('promptALERT').style");document.getElementById("promptALERT").innerHTML="<div id='backPROMPT'></div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id='cuerpoPROMPT'> \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src='"+promptAlertpicture+"' alt='icon' style='float:left; margin:10px 15px 0px 0px;' > <p style='text-align:left;'>"+promptAlerttext+"</p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style='background:#F9F9F9; text-align:right;'> <input type='button' class='btn' value='CLOSE' onclick='disablePrompt();' style='width:80px;' /> </div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>"}function callPromptALERT(a,b){promptALERT(a,b);loadPrompt();centerPrompt()}function promptLOGIN(promptAlertpicture,promptAlerttext){promptbox=document.createElement("div");promptbox.setAttribute("id","promptLOGIN");document.getElementsByTagName("body")[0].appendChild(promptbox);promptbox=eval("document.getElementById('promptLOGIN').style");document.getElementById("promptLOGIN").innerHTML="<div id='backPROMPT'></div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id='cuerpoPROMPT'> \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src='"+promptAlertpicture+"' alt='icon' style='float:left; margin:0px 15px 0px 0px;' > <p style='text-align:left;'>"+promptAlerttext+"</p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style='background:#F9F9F9; text-align:left;'> <p style='text-align:left; font-weight:bold; border-bottom:1px solid #CCCCCC;'> Admin confirmation: </p>\t\t\t\t\t<form name='fnlogin' id='fnlogin' method='post' action='newsAdministration.php' enctype='multipart/form-data'>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for='u'> User name: </label> <input type='text' name='u' id='u' /> <br />\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for='p'> Password:  </label> <input type='password' name='p' id='p' /> \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type='submit' class='btn' value='LOG IN' style='width:80px; float:right;' /> </div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form> </div>"}function callPromptLOGIN(a,b){promptLOGIN(a,b);loadPrompt();centerPrompt();fnlogin()}function centerPrompt(){var c=document.documentElement.clientWidth,a=document.documentElement.clientHeight,b=$("#cuerpoPROMPT").height(),d=$("#cuerpoPROMPT").width();$("#cuerpoPROMPT").css({top:a/2-b/2,left:c/2-d/2});$("#backPROMPT").css({height:a})}var promptPopup=0;function loadPrompt(){if(promptPopup==0){$("#cuerpoPROMPT").css({opacity:"1.0"});$("#cuerpoPROMPT").fadeIn("slow");$("#backPROMPT").fadeIn("slow");promptPopup=1}}function disablePrompt(){if(promptPopup==1){$("#cuerpoPROMPT").fadeOut("slow");$("#backPROMPT").fadeOut("slow");promptPopup=0}}$(document).ready(function(){$("#fwesletter").validate({rules:{nl:{required:true,email:true}},messages:{nl:{required:"enter a e-mail address",email:"invalid e-amil adress"}}})})
