function ShowSubKey(x,total){
	var p;
	for(var i=0;i<total;i++)
	{
		var p = document.getElementById("key"+i);

		if(x==i){
			if(p.style.display=='none')
				p.style.display='block';
			else{
			p.style.display='none';
			}
		}
		else{
			p.style.display='none';
		}
	}
}

function ShowSubMenu(menuid){
	var p =document.getElementById(menuid);
	p.style.display='block';
}
function HideSubMenu(menuid){
	var p =document.getElementById(menuid);
	p.style.display='none';
}

function swapMenu(obj, img, activate)
{
	var onOff="";
	var flip=true;
	if(activate)
	{
		onOff="On";
	}
	else
	{
		if(id==img)
			flip=false;
	}

	if(flip)
		obj.src="public/images/AR/M"+img+onOff+".gif";
}
function LangSwap(obj, img, activate)
{
	var div1=document.getElementById(obj);
	var onOff="";
	var flip=true;
	if(activate)
	{
		onOff="On";
	}
	else
	{
		if(id==img)
			flip=false;
	}

	if(flip && div1 != null)
		div1.src="public/images/AR/M"+img+onOff+".gif";
}

/////////////slideshow///////////
		var SlideShowSpeed = 3500;
		var CrossFadeDuration = 3;
		var Picture = new Array();
		var Caption = new Array(); 
		
		Picture[1]  = 'public/images/B1.jpg';
		Picture[2]  = 'public/images/B2.jpg';
		Picture[3]  = 'public/images/B3.jpg';
		Picture[4]  = 'public/images/B4.jpg';
		Picture[5]  = 'public/images/B5.jpg';
		Picture[6]  = 'public/images/B6.jpg';
		Picture[7]  = 'public/images/B7.jpg';
		Picture[8]  = 'public/images/B8.jpg';
		Picture[9]  = 'public/images/B9.jpg';
		Picture[10]  = 'public/images/B10.jpg';
		//Picture[11]  = 'public/images/B11.jpg';
		
		
		//Caption[1]  = "";
		//Caption[2]  = "";
		//Caption[3]  = "Supporting the charitable organisations the Rashid Paediatric Therapy Centre, Welfare Association and the construction of the first Russian Orthodox Church in the UAE.";
		//Caption[4]  = "Supporting the charitable organisations the Rashid Paediatric Therapy Centre, Welfare Association and the construction of the first Russian Orthodox Church in the UAE.";
		//Caption[5]  = "Supporting the charitable organisations the Rashid Paediatric Therapy Centre, Welfare Association and the construction of the first Russian Orthodox Church in the UAE.";
		//Caption[6]  = "Supporting the charitable organisations the Rashid Paediatric Therapy Centre, Welfare Association and the construction of the first Russian Orthodox Church in the UAE.";
		//Caption[7]  = "Supporting the charitable organisations the Rashid Paediatric Therapy Centre, Welfare Association and the construction of the first Russian Orthodox Church in the UAE.";
		//Caption[8]  = "Supporting the charitable organisations the Rashid Paediatric Therapy Centre, Welfare Association and the construction of the first Russian Orthodox Church in the UAE.";
		//Caption[9]  = "Supporting the charitable organisations the Rashid Paediatric Therapy Centre, Welfare Association and the construction of the first Russian Orthodox Church in the UAE.";
		
		var tss;
		var iss;
		var jss = 1;
		var pss = Picture.length-1;
		
		var preLoad = new Array();
		for (iss = 1; iss < pss+1; iss++){
		preLoad[iss] = new Image();
		preLoad[iss].src = Picture[iss];}
		
		function runSlideShow(){
		if (document.all){
		document.images.PictureBox.style.filter="blendTrans(duration=2)";
		document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.PictureBox.filters.blendTrans.Apply();}
		document.images.PictureBox.src = preLoad[jss].src;
		//if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
		if (document.all) document.images.PictureBox.filters.blendTrans.Play();
		jss = jss + 1;
		if (jss > (pss)) jss=1;
		tss = setTimeout('runSlideShow()', SlideShowSpeed);
		}

/////////////end slideshow///////////////

/***** change image ******/
function ChangeImg(imgswap)
{
	var imgtop	= document.getElementById("PictureBox");
	//var Text	= document.getElementById("CaptionBox");
	imgtop.src="public/images/"+ imgswap;
	imgURL  = "popup.php?img="+ imgswap;

	//Text.innerHTML = textin ;
}

function BiggerImg(pic_name,textin)
{
	var Text	= document.getElementById("CaptionBox");
	var big_pic= document.getElementById("big_pic");
	var download_pic= document.getElementById("download_pic");
	big_pic.src="public/images/"+ pic_name +".jpg";
	imgURL  = "popup.php?img="+ pic_name +"h.jpg";
	//download_pic.innerHTML = "<a href=\"public/images/"+ pic_name +"h.jpg\" target=\"_blank\"><img src=\"public/images/space.gif\" alt=\"\" title=\"\"></a>";
	Text.innerHTML = textin ;
}

//function popitup(url) {
//	newwindow=window.open(url,'name','height=500,width=500');
//	if (window.focus) {newwindow.focus()}
//	return false;
//}
var imgURL = "";
function popitup(url, picWidth, picHeight)
{
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;
	
	var width="450", height="450";

	if(picWidth > width)
		width = parseInt(picWidth);

	if(picHeight > height)
		height = parseInt(picHeight);
	
	var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
	
	newwindow=window.open(url,'printWindow',styleStr);

	if (window.focus) {newwindow.focus()}

	return false;
}

function PicBorderOnn(divId){
	var div	= document.getElementById(divId);
	var selected = document.getElementById('selected_cat');

	if(selected.value != divId)
		div.className='FontOn';
}
function PicBorderOutt(divId){
	var div	= document.getElementById(divId);
	var selected = document.getElementById('selected_cat');

	if(selected.value != divId)
		div.className='FontOff';
}


function ShowSubMenu(menuid){
	var p =document.getElementById(menuid);
	p.style.display='block';
}
function HideSubMenu(menuid){
	var p =document.getElementById(menuid);
	p.style.display='none';
}
function switchImage(imgSource, picWidth, picHeight) {
	var imgtop	= document.getElementById("main_image");
	imgtop.innerHTML='<a href="javascript:;" onclick="return popitup(\'popup.php?img=' + imgSource + '\', \'' + picWidth + '\', \'' + picHeight + '\');"><img src="admin/images/project/' + imgSource + '" id="blendimage" alt=""></a>';
	//imgURL  = "popup.php?img="+ imgswap +"h.jpg";
}


/**** show hide*******/
function HideContent(div) {
document.getElementById("caption").style.display = "none";
}
function ShowContent(div) {
document.getElementById("caption").style.display = "block";
}



/********end of show hide***********/

/******** start flah *********/
var requiredVersion = 8;
var useRedirect = false;
var flashPage   = ""
var noFlashPage = ""
var upgradePage = ""
var flash2Installed = false;
var flash3Installed = false;
var flash4Installed = false;
var flash5Installed = false;
var flash6Installed = false;
var flash7Installed = false;
var flash8Installed = false;
var flash9Installed = false;
var maxVersion = 9;
var actualVersion = 0;
var hasRightVersion = false;
var jsVersion = 1.0;

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
jsVersion = 1.1;

if(isIE && isWin){

  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
  document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
  document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
  document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
  document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
  document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
  document.write('flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
  document.write('flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');
  document.write('<\/SCR' + 'IPT\> \n');

}

function detectFlash() {

  if (navigator.plugins) {
    if (navigator.plugins["Shockwave Flash 2.0"]
        || navigator.plugins["Shockwave Flash"]) {
      var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
      var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
      var flashVersion = parseInt(flashDescription.substring(16));
      flash2Installed = flashVersion == 2;
      flash3Installed = flashVersion == 3;
      flash4Installed = flashVersion == 4;
      flash5Installed = flashVersion == 5;
      flash6Installed = flashVersion == 6;
      flash7Installed = flashVersion == 7;
      flash8Installed = flashVersion == 8;
      flash9Installed = flashVersion >= 9;
    }
  }
  for (var i = 2; i <= maxVersion; i++) {
    if (eval("flash" + i + "Installed") == true) actualVersion = i;
  }
  if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 4;
  if (actualVersion >= requiredVersion) {
    if (useRedirect) {
      if(jsVersion > 1.0) {
        window.location.replace(flashPage);
      } else {
        window.location = flashPage;
      }
    }
    hasRightVersion = true;
  } else {
    if (useRedirect) {
      if(jsVersion > 1.0) {
        window.location.replace((actualVersion >= 2) ? upgradePage : noFlashPage);
      } else {
        window.location = (actualVersion >= 2) ? upgradePage : noFlashPage;
      }
    }
  }
}
detectFlash();

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?');
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs)
{
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();

    switch (currArg){
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace":
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
/************* end flash *********/
function blendimage(divid, imageid, imagefile, millisec) {
    var speed = Math.round(millisec / 100);
    var timer = 0;
    
    //set the current image as background
    document.getElementById(divid).style.backgroundImage = "url(" + document.getElementById(imageid).src + ")";
    
    //make image transparent
    changeOpac(0, imageid);
    
    //make new image
    document.getElementById(imageid).src = imagefile;

    //fade in image
    for(i = 0; i <= 100; i++) {
        setTimeout("changeOpac(" + i + ",'" + imageid + "')",(timer * speed));
        timer++;
    }
}

function opacity(id, opacStart, opacEnd, millisec) {
	//speed for each frame
	var speed = Math.round(millisec / 100);
	var timer = 0;

	//determine the direction for the blending, if start and end are the same nothing happens
	if(opacStart > opacEnd) {
		for(i = opacStart; i >= opacEnd; i--) {
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	} else if(opacStart < opacEnd) {
		for(i = opacStart; i <= opacEnd; i++)
			{
			setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
			timer++;
		}
	}
}

//change the opacity for different browsers
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
}

function shiftOpacity(id, millisec) { 
        opacity(id, 0, 100, millisec);
}
function switchOpacity(id, millisec) { 
        opacity(id, 100, 00, millisec);
} 
var myTimer;
function changeImage(path) {
	document.getElementById('main_image').src=path;
	clearInterval(myTimer);
}
function swap(image1, image2)
{
	myTimer = setInterval('swapImage(\'' + image1 + '\', \'' + image2 + '\')', 3000);
}
intImage = 2;
function swapImage(image1, image2) {
	switch (intImage) {
	 case 1:
	   document.getElementById('main_image').src = "admin/images/thumb/" + image1;
		intImage = 2  
	   return(false);
	case 2:
	   document.getElementById('main_image').src = "admin/images/thumb/" + image2;
	   intImage = 1
	   return(false);

} }

function resetClassNames(id, total)
{
	for(var i = 0; i < total; i++)
		document.getElementById(i).className='ColorWhite Arial FontSize11 PaddLeft30';
	
	document.getElementById(id).className='ColorYellow Arial FontSize11 PaddLeft30';

	/*document.getElementById('eng').className='ColorWhite Arial FontSize11 PaddLeft30';
	document.getElementById('for').className='ColorWhite Arial FontSize11 PaddLeft30';
	document.getElementById('adm').className='ColorWhite Arial FontSize11 PaddLeft30';
	document.getElementById('oth').className='ColorWhite Arial FontSize11 PaddLeft30';

	document.getElementById(id).className='ColorYellow Arial FontSize11 PaddLeft30';*/
}

function replaceText(vacancy)
{
	var html;
	if(vacancy == 2)
		html = '<strong>Project Architect</strong><br><strong>Civil and Buildings projects</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%"><strong>Architect Degree </strong>from  a reputed University</td></tr><tr><td>Location:</td><td>Lebanon</td></tr><tr><td>Age:</td><td>30 to 35 years</td></tr><tr><td>Experience:</td><td>Minimum 5 years experience in  controlling construction projects</td></tr><tr><td>Language:</td><td>The  candidate must be fluent in English - Speak, Write &amp; Read</td></tr><tr><td>Others:</td><td><div class="FloatLeft" style="width:100px;">Full knowledge of:</div><div class="FloatLeft" style="width:200px;">Shop  Drawing Details<br>Quantity  Surveying<br>Documents  control<br>Cost  control<br></div><div class="FloatLeft" style="width:340px;">Computer knowledge of  MS Office &amp; AutoCAD are required, Primavera planning is an advantage.</div></td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Review  projects drawings &amp; supervise the preparation and submission of shop  drawings.<br>Able  to prepare method statements for execution of construction activities.<br>Be responsible to control execution quality  of work to proper codes &amp; standards.<br>Monitor  and initiate correspondence with client, subcontractors and suppliers<br>Assist  and support project\'s team in all technical matters.<div align="right"><a href="application.php?t_id=2"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 3)
		html = '<strong>Procurement Engineer (Civil)</strong><br><strong>Civil and Buildings projects</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Architect or Civil Engineering Degree from a reputed University </td></tr><tr><td>Location:</td><td>Qatar</td></tr><tr><td>Age:</td><td>30 to 35 years</td></tr><tr><td>Experience:</td><td>Minimum 5 years experience in construction of large projects</td></tr><tr><td>Language:</td><td>The candidate must be fluent in English - Speak, Write & Read</td></tr><tr><td>Others:</td><td><div class="FloatLeft" style="width:100px;">Full knowledge of:</div><div class="FloatLeft" style="width:200px;">Material evaluation<br>Material quantity estimation<br>Technical submittal preparation<br>Project documentation<br>Good communication & negotiation skills<br>Good knowledge of Contractual terms and suppliers\' obligations including payment terms.<br>Fair understanding of construction Project schedules.<br>Good knowledge of MS Office and fair understanding of AutoCAD.<br>Gulf experience desirable.</div></td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Prepare & follow-up  technical submittals for material procurement,<br>Verify quantities & request bids from suppliers<br>Prepare comparative statement of bids received<br>Able to negotiate with suppliers <br>Able to initiate purchase order terms & conditions for suppliers and enforce it.<br>Keep proper Project documentation.<div align="right"><a href="application.php?t_id=3"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 4)
		html = '<strong>Cost Control Engineer </strong><br><strong>Civil and Buildings projects</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Civil Engineering Degree from a reputed University</td></tr><tr><td>Location:</td><td>Qatar</td></tr><tr><td>Age:</td><td>30 to 35 years</td></tr><tr><td>Experience:</td><td>Minimum 5 years experience in project construction with Civil <br>Engineering Contractors.<br>Experience in cost control, preparation and monitoring of monthly progress payments.<br><div class="FloatLeft" style="width:100px;">Full knowledge in:</div><div class="FloatLeft" style="width:200px;">Contractual issues<br>Quantity Surveying<br>Cost estimation and rate analysis</div><div class="FloatLeft" style="width:350px;">Good knowledge of MS Office and fair understanding of AutoCAD, Gulf experience desirable.</div></td></tr><tr><td>Language:</td><td>The candidate must be fluent in English</td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Keep Control on cost of the ongoing projects activities during construction stage, based on the necessary information obtained from the construction sites.<br>Periodically Prepare cost control charts comparing the budgeted/tendered cost and actual completed cost of various items of works.<br>Take timely appropriate actions to control cost of the Project.<br>Inform the Project manager in advance on any expected cost overrun<div align="right"><a href="application.php?t_id=4"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 5)
		html = '<strong>Sr. Estmation Engineer </strong><br><strong>Civil and Buildings projects</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Civil Engineering Degree from a reputed University </td></tr><tr><td>Age:</td><td>30 to 35 years</td></tr><tr><td>Job Location:</td><td>Lebanon</td></tr><tr><td>Experience:</td><td>Minimum 7years experience in construction with Civil Engineering Contractors and 3 years as Estimation Engineer on large Construction projects.<div class="FloatLeft" style="width:100px;">Full knowledge in:</div><div class="FloatLeft" style="width:200px;">Contractual issues<br>Quantity Surveying<br>Cost estimation and rate analysis</div><div class="FloatLeft" style="width:350px;">Good knowledge of MS Office, AutoCAD & estimation software.<br>Gulf experience is desirable</div></td></tr><tr><td>Language:</td><td>The candidate must be fluent in English</td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Estimate all material quantity with required resources for tendering. <br>Verify and prepare contractual requirements with all cost related matters for the job.<br>Prepare execution plan with all required supporting technical proposal for tendering.<div align="right" style="padding-top:5px;"><a href="application.php?t_id=5"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 6)
		html = '<strong>Planning Engineer </strong><br><strong>Civil and Buildings projects</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Civil Engineering Degree from a reputed University </td></tr><tr><td>Age:</td><td>30 to 35 years</td></tr><tr><td>Job Location:</td><td>Saudi Arabia</td></tr><tr><td>Experience:</td><td>Minimum 10 years experience in construction, working with Civil Engineering Contractors and 3 years as Planning Engineer on large Construction projects using latest version of Primavera.<br>Experience in civil works related to large scale industrial projects such as Cement factory, Power plant, Gas projects, Refinery.</td></tr><tr><td>Language:</td><td>The candidate must be fluent in English</td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Prepare by Primavera detailed execution schedules of the project including resources & cost.<br>Organize, plan, monitor, follow up & report the on- going execution of the projects.<br>Take responsibility for controlling and reporting  project progress and cost control.<br>Review contract documents and ensure due and timely implementation of the projects<div align="right" style="padding-top:5px;"><a href="application.php?t_id=6"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 7)
		html = '<strong>Site Manager</strong><br><strong>Civil and Buildings projects</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Civil Engineering Degree from a reputed University </td></tr><tr><td>Age:</td><td>35 to 45 years</td></tr><tr><td>Job Location:</td><td>Saudi Arabia</td></tr><tr><td>Experience:</td><td>Minimum 10 years experience with good reputed Contracting Companies in construction of large Reinforced Concrete works related to civil industrial projects.<br>Minimum 3 years in similar post.<br>Good technical knowledge in construction execution.<br>Possess leadership qualities and capability to follow up and improve his team\'s performance<br>Good knowledge in quality control.<br>Good in MS office and a fair knowledge of AutoCAD Gulf experience advantageous</td></tr><tr><td>Language:</td><td>The candidate must be fluent in English</td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Manage the construction operations on his own and capable of leading large construction team with different skills and categories. <br>Take responsibilities for project progress and cost control.<br>Organize, plan and follow up the execution of the projects.<br>Review contract documents and ensure their due and timely implementation.<br>Ensure to maintain senior level liaison with clients on all matters.<div align="right"><a href="application.php?t_id=7"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 8)
		html = '<strong>Site Engineer</strong><br><strong>Civil and Buildings projects </strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Civil Engineering Degree  </td></tr><tr><td>Age:</td><td>30 to 40 years</td></tr><tr><td>Job Location:</td><td>Saudi Arabia</td></tr><tr><td>Experience:</td><td>Minimum 5 years experience in construction with good experience in reinforced concrete works related to large scale civil industrial projects Good technical knowledge in construction execution.<br>Possess leadership qualities and team work spirit<br>Good knowledge in quality control.<br>Good in MS office and a fair knowledge of AutoCAD<br>Gulf experience advantageous</td></tr><tr><td>Language:</td><td>Good English</td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Supervise foremen/supervisors and follow up there performance.<br>Ensure construction operations are run according to plan, specifications and drawings.<div align="right" style="padding-top:5px;"><a href="application.php?t_id=8"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 9)
		html = '<strong>Site Mechanical Engineer</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Mechanical Engineering Degree </td></tr><tr><td>Age:</td><td>30 to 40 years</td></tr><tr><td>Experience:</td><td>Minimum 5 years experience in construction with good experience in HVAC projects.<br>Good technical knowledge in construction execution.<br>Possess leadership qualities and team work spirit<br>Gulf experience advantageous</td></tr><tr><td>Language:</td><td>Good English</td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Supervise foremen/supervisors and follow up there performance.<br>Plan and monitor construction site activities.<br>Ensure that construction operations are running according to plan, specifications and drawings.<br>Prepare & follow up material submittal, delivery & installation.<br>Inspect on going construction activities & ensure execution is done to proper quality<br>Be responsible of all phase of the work up to testing, commissioning & handing over.<div align="right" style="padding-top:5px;"><a href="application.php?t_id=9"><img src="public/images/apply.gif"></a></div>';
	else if(vacancy == 10)
		html = '<strong>General  Foreman<br>Civil and Buildings projects</strong><strong>Qualifications:</strong><br><table cellpadding="0" cellspacing="0" border="0" width="100%" class="ColorBlue Arial FontSize11 PaddTop5"><tr><td width="21%">Education:</td><td width="79%">Technical Degree </td></tr><tr><td>Age:</td><td>35 to 45 years</td></tr><tr><td>Location:</td><td>Saudi Arabia</td></tr><tr><td>Experience:</td><td>Diploma -technical school graduate with Five years experience in  Similar post. (Practical 15 years experience in similar post could be acceptable alternative)<br>Previous experience in similar trade mainly related to large industrial projects.<br>Able to read and implement engineering details as per drawings. <br>Full knowledge of required trade activities.<br>Knowledge of Material requirement and capable of working out material quantities.<br>Strong Personality - Should have leadership qualities to lead a team of skilled workers and gang leaders. Previous experience in leading a group of workers is necessary.<br>Possess leadership qualities and team work spirit<br>Good knowledge of English both reading and writing necessary</td></tr></table><div class="PaddTop5"><strong>Duties&nbsp;&amp; Responsibilities<br></strong></div>Supervise a team of skilled and laborers and follow up there performance.<br>Monitor work quality of his team and that the construction operations are running according to plan, specifications and drawings.<br>Report his team requirement and performance.<br>Enforce company regulations on his team in relation to quality, safety and execution.<div align="right" style="padding-top:5px;"><a href="application.php?t_id=10"><img src="public/images/apply.gif"></a></div>';

	document.getElementById('vacancy').innerHTML = html;
	document.getElementById('vacancy').className = 'BgGrey2 Padd20 ColorBlue Arial FontSize11';
}




//////////////////Scroll///////////////////////////////
 
 function MM_findObj(n, d) {
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapArrow(obj, img ,lang)
{
	var div=document.getElementById(obj);
	div.src="public/images/"+img+".gif";
}
function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
bw=new verifyCompatibleBrowser() 
 
var speed=40 
 
var loop, timer 
 
function ConstructObject(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
    this.up=MoveAreaUp;this.down=MoveAreaDown;

    this.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth
    this.clipWidth=bw.ns4?this.css.clip.width:this.el.offsetWidth
    this.left=MoveAreaLeft;this.right=MoveAreaRight;

	this.css.zIndex="3";
    this.MoveArea=MoveArea; this.x=0; this.y=0;
    this.obj = obj + "Object"
    eval(this.obj + "=this")
    return this
}
function MoveArea(x,y){ 

	this.x=x;this.y=y 
    this.css.left=this.x+'px'; 
    this.css.top=this.y+'px'; 
}

function MoveAreaDown(move){
   if(this.y>-this.scrollHeight+objContainer.clipHeight){
    this.MoveArea(this.x,this.y-move)
    if(loop) setTimeout(this.obj+".down("+move+")",speed)
   }
}
function MoveAreaUp(move){
   if(this.y<0){
    this.MoveArea(this.x,this.y-move)
    if(loop) setTimeout(this.obj+".up("+move+")",speed)
   }
}

function MoveAreaRight(move){
   if(-this.x + objContainer.clipWidth < this.scrollWidth){
    this.MoveArea(this.x-move,this.y)
    if(loop) setTimeout(this.obj+".right("+move+")",speed)
   }
   window.status = "right no action " + this.x;
}
function MoveAreaLeft(move){
   if(this.x<0){
    this.MoveArea(this.x-move,this.y)
    if(loop) setTimeout(this.obj+".left("+move+")",speed)
   }
   window.status = "left no action " + this.x;
}

var initialised; 
function InitialiseScrollableArea(){ 
    objContainer=new ConstructObject('divContainer1') ;
    objScroller=new ConstructObject('divContent1','divContainer1') ;
    objScroller.MoveArea(0,0) ;
    objContainer.css.visibility='visible';
    initialised=true; 
}

function CeaseScroll(){ 
    loop=false; 
    if(timer) clearTimeout(timer) ;
} 
function PerformScroll(direction,speed){
   if(initialised){
      loop=true;
	  if(direction == 0)
	  {
	        if(speed>0) objScroller.down(speed)
            else objScroller.up(speed)
	  }
	  else
	  {
	        if(speed>0) objScroller.right(speed)
            else objScroller.left(speed)
	  }
   }
} 