function changeOpacity3(offset, id)  
     {   
       var main = document.getElementById(id).style;  
	   //alert(main);
        main.top = offset + "px";
      // object.filter = "alpha(opacity=" + opacity + ")";   
     }  
         
     function setOpacity3(id, opStart, opEnd, ms)  
     {              
       var speed = Math.round(ms / 100);   
       var timer = 0;   
 
       if(opStart > opEnd)  
       {   
         for(i = opStart; i >= opEnd; i--)  
         {   
         setTimeout(  
           "changeOpacity(" + i + ",'" + id + "')",  
           (timer * speed)  
         );   
           timer++;   
         }  
       }   
       else if(opStart < opEnd)  
       {   
         for(i = opStart; i <= opEnd; i++)   
         {  
           setTimeout(  
             "changeOpacity3(" + i + ",'" + id + "')",  
             (timer * speed)  
           );   
           timer++;  
         }  
       }  
     }

	function show(id){
		document.getElementById(id).style.display = '';
		hideother(id);
	}
	function hideother(id){
	if(!(id=='menutable')) document.getElementById('menutable').style.display = 'none';
	if(!(id=='cb')) document.getElementById('cb').style.display = 'none';
	if(!(id=='wd')) document.getElementById('wd').style.display = 'none';
	if(!(id=='wp')) document.getElementById('wp').style.display = 'none';
	if(!(id=='webmaintenance')) document.getElementById('webmaintenance').style.display = 'none';
	if(!(id=='seo')) document.getElementById('seo').style.display = 'none';
	}

	



function checkData (){
 if (document.FormMail.FieldData0.value == "") {
  alert("Full Name Is Required.")
  document.FormMail.FieldData0.focus()
  return false}
if (document.FormMail.FieldData1.value != document.FormMail.vemail.value) { 
						alert("E-mail Addresses do not match, please correct this before posting your ticket");
						return false;
					}
					if (document.FormMail.FieldData1.value == '') { 
						alert("An e-mail address is required!");
						return false;
					}
				
				
 if (document.FormMail.FieldData4.value == "") {
  alert("Please Select A Category")
  document.FormMail.FieldData0.focus()
  return false}
 if (document.FormMail.FieldData5.value == "") {
  alert("Please Fill In The Question/Problem Field")
  document.FormMail.FieldData0.focus()
  return false}
}
	 
	 
function downme(main, width, height, direct, pause) { //v5.0 GlobalWebFactory

    //var main = document.getElementById(main);
  
  
  //var speed = Math.max(1.001, Math.min((direct == "up" || direct == "down") ? height : width, speed));
   // if (!document.getElementById) return false;
       	   
       var tt = 0;   
	//var offset = Math.floor(1000 / speed);
	//alert(offset);
	//setOpacity3(main, 0, 300, pause) 
	  for(i = 0; i <= 75; i++)   
         {  
		 //alert(timer * pause * i);
           
             setTimeout( "changeOpacity3(" + i + ",'" + main + "')", (i*tt)/((i*tt)/(tt*tt))*pause);
           tt++; 		   
         }  
      
    
}


function MM_preloadImages() { //v5.0 GlobalWebFactory


document.getElementById('bodyin').innerHTML = '<div class="overlay3" id="overlay3"><div class="lightbox3" id="lightbox3"><div align="center" class="container3"><div align="center" class="homebody2"><div align="center" class="main2" id="forming"></div><div align="center" class="main3" style="display:;" id="loadingforming"></div><div align="center" class="main4" style="display:none;" id="formingloading"></div></div></div></div></div>';



  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i]; }
	}
	
	
	var scroll1 = new scrollObject("forming", 600, 160, "up", 1000, 1.3);
	function scrollObject(main, width, height, direct, pause, speed) {
  var self = this;
  this.main = main;
  this.width = width;
  this.height = height;
  this.direct = direct;
  this.pause = pause;
  this.speed = Math.max(1.001, Math.min((direct == "up" || direct == "down") ? height : width, speed));
  this.block = new Array();
  this.blockprev = this.offset = 0;
  this.blockcurr = 1;
  this.mouse = false;
  this.scroll = function() {
    if (!document.getElementById) return false;
    this.main = document.getElementById(this.main);
	//alert(this.main);
    while (this.main.firstChild) this.main.removeChild(this.main.firstChild);
    this.main.style.overflow = "hidden";
    //this.main.style.position = "relative";
    this.main.style.width = this.width + "px";
    this.main.style.height = this.height + "px";
    for (var x = 0; x < this.block.length; x++) {
      var table = document.createElement('table');
          table.cellPadding = table.cellSpacing = table.border = "0";
          table.style.position = "absolute";
          table.style.left = table.style.top = "0px";
          table.style.width = this.width + "px";
          table.style.height = this.height + "px";
          table.style.overflow = table.style.visibility = "hidden";
        var tbody = document.createElement('tbody');
          var tr = document.createElement('tr');
            var td = document.createElement('td');
                td.innerHTML = this.block[x];
              tr.appendChild(td);
            tbody.appendChild(tr);
          table.appendChild(tbody);
      this.main.appendChild(this.block[x] = table);
    }
    if (this.block.length > 1) {
      this.main.onmouseover = function() { self.mouse = true; }
      this.main.onmouseout = function() { self.mouse = false; }
      setTimeout(function() {
        if (!self.offset && self.scrollLoop()) self.block[self.blockcurr].style.visibility = "visible";
      }, this.pause);
    } this.block[this.blockprev].style.visibility = "visible";
  }
  this.scrollLoop = function() {
    if (!this.offset) {
      if (this.mouse) return false;
      this.offset = (this.direct == "up" || this.direct == "down") ? this.height : this.width;
    } else this.offset = Math.floor(this.offset / this.speed);
    if (this.direct == "up" || this.direct == "down") {
      this.block[this.blockcurr].style.top = ((this.direct == "up") ? this.offset : -this.offset) + "px";
      this.block[this.blockprev].style.top = ((this.direct == "up") ? this.offset - this.height : this.height - this.offset) + "px";
    } else {
      this.block[this.blockcurr].style.left = ((this.direct == "left") ? this.offset : -this.offset) + "px";
      this.block[this.blockprev].style.left = ((this.direct == "left") ? this.offset - this.width : this.width - this.offset) + "px";
    }
    if (!this.offset) {
      this.block[this.blockprev].style.visibility = "hidden";
      this.blockprev = this.blockcurr;
      if (++this.blockcurr >= this.block.length) this.blockcurr = 0;
	  } else setTimeout(function() { self.scrollLoop(); }, 10);
    return true;
  }
}


scroll1.block[0] = ''; scroll1.block[1] = '<table width="600" align="center" border="0" id="mainingchoosing" cellspacing="0" cellpadding="0"><tr valign="middle" height="30"><td width="300" style="text-align:center; font-family:Verdana; font-size:11pt; color:#116; font-weight:bold"><input type=button onMouseDown="gohoming('+"'homingcu'"+','+"'ma'"+'); return false;" id="homingcu" value="Members Login" style="text-decoration:none; vertical-align:middle; text-align:right;color:#003A8C; font-style:italic;font-weight:lighter;font-size:14pt;font-family:Verdana, Geneva, sans-serif; width:152px;cursor:pointer; cursor:hand; border:0px; background-color:transparent" onMouseOver="this.style.color=' + "'#010'" + '" onMouseOut="this.style.color=' + "'#003A8C'" + '"></td><td width="300" style="text-align:center; font-family:Verdana; font-size:11pt; color:#116; font-weight:bold"><form style="clear:both" action="mainpage.aspx" method="post" onSubmit="return false" id=abt><input type=submit onClick="goSubmit(' + "'abt'" + ');" value="Surf Website" style="text-decoration:none; width:130px; vertical-align:middle; text-align:right;color:#003A8C; font-style:italic;font-weight:lighter;font-size:14pt;font-family:Verdana, Geneva, sans-serif;cursor:pointer; cursor:hand; border:0px; background-color:transparent" onMouseOver="this.style.color=' + "'#001'" + '" onMouseOut="this.style.color=' + "'#003A8C'" + '"><div style="display:none;"></form></div></td></tr></table><table width="600" align="center" border="0" cellspacing="0" cellpadding="0" style="display:none;" id="mainingloading"><tr valign="middle" height="162"><td width="600" style="text-align:center; font-family:Verdana; font-size:11pt; color:#116; font-weight:bold"><font id=loadingforminginingm style="color:#e8ecff;font-weight:lighter;font-size:7pt;font-family:Verdana, Geneva, sans-serif;">&raquo;</font></td></tr></table>';
			scroll1.scroll();
			setTimeout( function () { document.getElementById('formingloading').style.display = ''; document.getElementById('loadingforming').style.display = 'none'; }, 1000);

		//downme("forming", 600, 200, "left", 0.2);
		
		

document.getElementById('contrastic').innerHTML += '<style> .homebody2 { background-color: #003A8C; background-image: url(http://www.globalwebfactory.com/images/kiNmkia54658RryEckuyEc); background-repeat: no-repeat;	vertical-align:top;	background-position: top;	margin-left: 0px;	margin-top: 0px;	margin-right: 0px;	margin-bottom: 0px;	margin:0px;	padding-bottom:0px;	padding-left:0px;	padding-right:0px;	padding-top:0px;	height:890px;	}	.homebody {	background-color: #034ea8; background-image: url(http://www.globalwebfactory.com/images/kopaksa81iNmkia54658RryEckuyEc); background-repeat: no-repeat;	vertical-align:top;	background-position: top;	margin-left: 0px;	margin-top: 0px;	margin-right: 0px;	margin-bottom: 0px;	margin:0px;	padding-bottom:0px;	padding-left:0px;	padding-right:0px;	padding-top:0px;	}	.homebodyin {	background-color: #034ea8; background-image: url(http://www.globalwebfactory.com/images/kopaksa81iNmkia54658RryEckuyEc); background-repeat: no-repeat;	vertical-align:top;	background-position: top;	margin-left: 0px;	margin-top: 0px;	margin-right: 0px;	margin-bottom: 0px;	margin:0px;	padding-bottom:0px;	padding-left:0px;	padding-right:0px;	padding-top:0px;	width:980px; } 	.lightbox3{		position: absolute;		top:50%;		left:50%;		width:100%;	margin-top:-400px;	margin-right:0px;	margin-bottom:0px;	margin-left:-50%;		text-align:center;	}	.lightbox3{		position:fixed;	}	.container3 {		height:800px;		width:100%;	} 	.lightboxfbb{		position: absolute;		top:50%;		left:50%;		z-index:2000;		width:600px;		height:200px;		margin:-100px 0 0 -300px;		border:0px solid #fff;	text-align:right;	}	.lightboxfbb{		position:fixed;	} .lightbox{		position: absolute;		top:50%;		left:50%;		z-index:6000;		width:600px;		height:400px;		margin:-200px 0 0 -300px;		border:0px solid #fff;		background:;		text-align:center;	}	.lightbox{		position:fixed;	}	.containerfbb {		height:160px; text-align:right;		width:580px;		z-index:2000;	}	.container {		height:402px;		width:600px;		overflow:auto;		z-index:6000;	}	.overlayfbb{		position:absolute;		top:0;		left:0;		width:100%;		height:100%;		z-index:2000;		/*background-color:#000;		-moz-opacity: 0.8;		opacity:.80;		filter: alpha(opacity=80);*/	}	.overlayfbb{		position:fixed;	}	.overlay{		position:absolute;		top:0;		left:0;		width:100%;		height:100%;		z-index:5000; }	.overlay{		position:fixed;	}	.overlay2{		position:absolute;		top:0;		left:0;		width:100%;		height:100%;		z-index:5000;		background-color:#000;		-moz-opacity: 0.7;		opacity:.70;		filter: alpha(opacity=70);	}	.overlay2{		position:fixed;	} A:link {	font-weight:lighter; text-decoration:underline; color:#e8ecff; FONT-SIZE: 7pt; font-family:Verdana; } A:visited {	font-weight:lighter; text-decoration:underline; color:#e8ecff; FONT-SIZE: 7pt; font-family:Verdana; } A:active { text-decoration:underline; color:#e8ecff; FONT-SIZE: 7pt; font-family:Verdana; } A:hover {	text-decoration:none; color:#005;; FONT-SIZE: 7pt; font-family:Verdana; } .whmenu A:link { font-weight:bold; text-decoration:none; color:#FFF; FONT-SIZE: 7pt; font-family:Verdana; } .whmenu A:visited {	font-weight:bold; text-decoration:none; color:#FFF; FONT-SIZE: 7pt; font-family:Verdana; } .whmenu A:active { text-decoration:none; color:#FFF; FONT-SIZE: 7pt; font-family:Verdana; font-weight:bold; } .whmenu A:hover {	text-decoration:none; color:#005; FONT-SIZE: 7pt; font-family:Verdana; font-weight:bold; } </style>';

document.getElementById('siscoplate').innerHTML = '<div style="display:none;" class="overlay2" id="overlay2"></div><div style="display:none;" class="overlay" id="overlay"><div class="lightbox" id="lightbox"><div align="center" class="container"><div style="float:right; background:"><a href="" style="color:#fff; text-decoration:none; font-weight:bold; font-size:11pt" onMouseDown="document.getElementById('+"'overlay'"+').style.display = '+"'none'"+'; document.getElementById('+"'overlay2'"+').style.display = '+"'none'"+'; return false;"><img src="close2.gif" border=0 height=17></a></div><br clear="all" /><div style="display:none; background:#FFF" align="center" id="containerbodycontentloading"><table width="600" border="0" align="center" cellspacing="0" cellpadding="0"><tr height="382" valign="middle"><td style="text-align:center; color:#000; font-size:7pt" width="600"><!--<img src="http://www.globalwebfactory.com/images/sxcsdHgYhjiuyYjh98su98y79ywe8idgh7682y3786hg78f6y" border="0" />--><OBJECT width="50" height="50" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT><PARAM NAME="_cx" VALUE="10028"><PARAM NAME="_cy" VALUE="6297"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="https://ebanking.fransabank.com/images/clock.swf"><PARAM NAME="Src" VALUE="https://ebanking.fransabank.com/images/clock.swf"><PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="0"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><embed src="https://ebanking.fransabank.com/images/clock.swf" width="50" height="50" type="application/x-shockwave-flash"  quality="best" play="true" menu="false"></OBJECT><br /><br /><br /><b>P L E A S E &nbsp; W A I T &nbsp; A &nbsp; M O M E N T</b><br /><br /></td></tr></table></div><div id="containerbodycontent" align="center" style="display:;"></div></div></div></div>';

//document.getElementById('siscoplate2').innerHTML = '<div style="display:;" class="overlayfbb" id="overlayfbb"><div class="lightboxfbb" id="lightboxfbb"><div align="center" class="containerfbb"><img src="fb.png" border=0 height=43 style="cursor:pointer; curser:hand" onMouseDown="Startfb();"></div></div></div>';

document.getElementById('loadingforming').innerHTML = '<table width="600" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="middle" height="160"><td width="600" style="text-align:center; font-family:Verdana; font-size:11pt; color:#116; font-weight:bold"><font id=loadingformingining style="color:#e8ecff;font-weight:lighter;font-size:7pt;font-family:Verdana, Geneva, sans-serif;">&raquo;</font></td></tr></table>';
for(i=0;i<4;i++){
setTimeout( function () {
document.getElementById('loadingformingining').innerHTML += '&raquo;';
}, i*200);
}

document.getElementById('formingloading').innerHTML = '<table width="600" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="middle" height="162"><td width="600" style="text-align:center; font-family:Verdana; font-size:11pt; color:#116; font-weight:bold"><font style="color:#e8ecff;font-weight:lighter;font-size:7pt;font-family:Verdana, Geneva, sans-serif;">&laquo; Please Choose &raquo;</font></td></tr></table><table width="600" align="center" border="0" id="mainingchoosingunder" cellspacing="0" cellpadding="0"><tr valign="top" height="30"><td width="600" style="text-align:justify; font-family:Verdana; font-size:10pt; color:#fff; font-weight:normal">Welcome to GlobalWebFactory !!! - Last update April 15, 2010. Contact Us for any question. Thank you.</td></tr></table>';

}


function LOADCONTENTS() { //v5.0 GlobalWebFactory
MM_preloadImages("http://www.globalwebfactory.com/images/kopaksa81iNmkia54658RryEckuyEc","http://www.globalwebfactory.com/images/kiNmkia54658RryEckuyEc","csprev.jpg","sibabandprev.jpg","laserprev.jpg","casprev.jpg");

}


// Get the HTTP Object
function getHTTPObject(){
   if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
   else if (window.XMLHttpRequest) return new XMLHttpRequest();
   else {
      alert("Your browser does not support AJAX.");
      return null;
   }
}   
function gowlcm(gg){
var http = new XMLHttpRequest();
var url = "mainpage.aspx!id=3";
var introtext = document.editform.intro.value;
var fstext = document.editform.fs.value;
var edittext = document.editform.edit.value;
var params = "edit=" + edittext + "&intro=" + introtext + "&fs=" + fstext + "";
http.open("POST", url, true);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");

http.onreadystatechange = function() {//Call a function when the state changes.
	if(http.readyState == 4 && http.status == 200) {
		// document.getElementById('myBody').innerHTML = http.responseText;
		loadSite(gg);
	}
}
http.send(params);
}

function gogo(){
	loadSite('mainpage.aspx!id=22');
}
function contactus(gg){
var http = new XMLHttpRequest();
var url = "mainpage.aspx!id=2";
var titletext = document.addnews.title.value;
var newstext = document.addnews.news.value;
var addtext = document.addnews.add.value;
var params = "add=" + addtext + "&title=" + titletext + "&news=" + newstext + "";
http.open("POST", url, true);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");

http.onreadystatechange = function() {//Call a function when the state changes.
	if(http.readyState == 4 && http.status == 200) {
		// document.getElementById('myBody').innerHTML = http.responseText;
		loadSite(gg);
	}
}
http.send(params);
}
function L0ADC0NTENTS(){
var http = new XMLHttpRequest();
var url = "mainpage.aspx!id=13";
var titletext = document.addreport.title.value;
var srctext = document.addreport.src.value;
var addrtext = document.addreport.addr.value;
var params = "addr=" + addrtext + "&title=" + titletext + "&src=" + srctext + "";
http.open("POST", url, true);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");

http.onreadystatechange = function() {//Call a function when the state changes.
	if(http.readyState == 4 && http.status == 200) {
		// document.getElementById('myBody').innerHTML = http.responseText;
		loadSite(gg);
	}
}
http.send(params);
}


// Change the value of the outputText field
function setOutput(){
   if(httpObject.readyState == 4){
      document.getElementById('myBody').innerHTML = httpObject.responseText;
	  
	document.getElementById('myBody').style.display = '';
	document.getElementById('loader').style.display = 'none';
   }
}


// Implement business logic
function loadSite(ff){
	document.getElementById('loader').style.display = '';
	document.getElementById('myBody').style.display = 'none';
   httpObject = getHTTPObject();
   if (httpObject != null) {
      httpObject.open("GET", ff, true);
      httpObject.send(null);
      httpObject.onreadystatechange = setOutput;
   }
}

// Change the value of the outputText field
function setOutput2(ff){
   if(httpObject.readyState == 4){
		loadSite(ff + '&finished=1');
	}
}
// Implement business logic
function loadSite2(ff){
	document.getElementById('loader').style.display = '';
	document.getElementById('myBody').style.display = 'none';
   httpObject = getHTTPObject();
   if (httpObject != null) {
      httpObject.open("GET", ff, true);
      httpObject.send(null);
      httpObject.onreadystatechange = function() {//Call a function when the state changes.
	if(httpObject.readyState == 4 && httpObject.status == 200) {
		// document.getElementById('myBody').innerHTML = http.responseText;
		setOutput2(ff);
	}
   }
   }
}
var httpObject = null;

// Implement business logic
function mainenter(){
   httpObject = getHTTPObject();
   if (httpObject != null) {
      httpObject.open("GET", 'mainpage.aspx!id=1', true);
      httpObject.send(null);
      httpObject.onreadystatechange = function() {//Call a function when the state changes.
	if(httpObject.readyState == 4 && httpObject.status == 200) {
		 document.getElementById('bodyin').innerHTML = httpObject.responseText;
	}
   }
   }
}
var httpObject = null;
// Implement business logic
function maienenter(){
   httpObject = getHTTPObject();
   if (httpObject != null) {
      httpObject.open("GET", 'mainpage.aspx', true);
      httpObject.send(null);
      httpObject.onreadystatechange = function() {//Call a function when the state changes.
	if(httpObject.readyState == 4 && httpObject.status == 200) {
		 document.getElementById('bodyin').innerHTML = httpObject.responseText;
	}
   }
   }
}
var httpObject = null;


	function hihihi(){
	$('AjaxUploaderFiles_Loader').style.display='none';
	CuteWebUI_AjaxUploader_Initialize('AjaxUploaderFiles_Loader');
	}

	 function CuteWebUI_AjaxUploader_OnTaskComplete(task)
	 {
		// var div=document.createElement("DIV");
		// var link=document.createElement("A");
		// link.setAttribute("href","savefiles/"+task.FileName);
		// link.innerHTML="You have uploaded file : savefiles/"+task.FileName;
		// link.target="_blank";
		// div.appendChild(link);
		// document.body.appendChild(div);
		document.addreport.src.value = task.FileName;
		document.getElementById('hh2').innerHTML = task.FileName;
		document.getElementById('button').style.display = "none";
		document.getElementById('input').style.display = "";
	 }
	 function remove()
	 {
		document.addreport.src.value = '';
		document.getElementById('hh2').innerHTML = '';
		document.getElementById('button').style.display = "";
		document.getElementById('input').style.display = "none";
	 }
	 
	 
	 
	 
	 
	
	function changeOpacity(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 setOpacity(id, opStart, opEnd, ms)  
     {              
       var speed = Math.round(ms / 100);   
       var timer = 0;   
 
       if(opStart > opEnd)  
       {   
         for(i = opStart; i >= opEnd; i--)  
         {   
         setTimeout(  
           "changeOpacity(" + i + ",'" + id + "')",  
           (timer * speed)  
         );   
           timer++;   
         }  
       }   
       else if(opStart < opEnd)  
       {   
         for(i = opStart; i <= opEnd; i++)   
         {  
           setTimeout(  
             "changeOpacity(" + i + ",'" + id + "')",  
             (timer * speed)  
           );   
           timer++;  
         }  
       }  
     }
	  
	

function gohoming(f,ml,action){
		if(!(action)){
		action = 'click';
		} else action = 'submit';
		if(!(ml)){
			mylink = 'home.php';
		} else mylink = ml + '.php';
		if (f == "corporate" || f == "enterprise" || f == "deluxe" || f == "economy"){
		mylink = ml + '.php?frameurl='+f;
		}
		
	window.addEvent('domready', function() {
	$(f).addEvent(action, function(e) {
		e.stop();
		document.getElementById('overlay').style.display = '';
		document.getElementById('overlay2').style.display = '';
		$('containerbodycontent').style.display='none';
		window.setTimeout( function() { $('containerbodycontentloading').style.display=''; } , 500);
			
		
			
		//Empty the log and show the spinning indicator.
		//$('mainenter').style.display='none';
		//$('mainloading').style.display='';
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) {
			window.setTimeout( function() { $('containerbodycontent').set('html', response); $('containerbodycontentloading').style.display='none'; $('containerbodycontent').style.display=''; setOpacity('containerbodycontent', 0, 100, 400);  } , 1000);
			
		}});
		//Send the form.
		this.send();
	});
	});
	};


/*
		function fullwin(){
		window.open("http://GlobalWebFactory.com/","","fullscreen,scrollbars")
		}
	*/
	function gohomingin(f,ml){
		if(!(ml)){
			mylink = 'home.php';
		} else mylink = ml + '.php';
		if (f == "corporatedetails" || f == "enterprisedetails" || f == "deluxedetails" || f == "economydetails"){
		mylink = ml + '.php?planname='+f;
		}
		
	window.addEvent('domready', function() {
	$(f).addEvent('click', function(e) {
		e.stop();
		//Empty the log and show the spinning indicator.
				var object = document.getElementById('whbodycontent').style;   
			   object.opacity = (0);  
			   object.MozOpacity = (0);   
			   object.KhtmlOpacity = (0);   
			   //object.filter = "alpha(opacity=0)";
			$('whbodycontent').style.display='none';
			window.setTimeout( function() { $('whbodycontentloading').style.display=''; } , 500);
		//$('mainenter').style.display='none';
		//$('mainloading').style.display='';
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) {
			window.setTimeout( function() { $('whbodycontent').set('html', response); $('whbodycontentloading').style.display='none'; $('whbodycontent').style.display=''; setOpacity('whbodycontent', 0, 100, 400);  } , 1000);
			
						
		}});
		//Send the form.
		this.send();
	
	});
	});
	};
	
	function gohomingout(f,ml){
		if(!(ml)){
			mylink = 'home.php';
		} else mylink = ml + '.php';
		
	window.addEvent('domready', function() {
	$(f).addEvent('click', function(e) {
		e.stop();
		
		//Empty the log and show the spinning indicator.
			   var object = document.getElementById('bodycontent').style;   
			   object.opacity = (0);  
			   object.MozOpacity = (0);   
			   object.KhtmlOpacity = (0);   
			   //object.filter = "alpha(opacity=0)";
			$('bodycontent').style.display='none';
			window.setTimeout( function() { $('bodycontentloading').style.display=''; } , 500);
		//$('mainenter').style.display='none';
		//$('mainloading').style.display='';
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) {
			window.setTimeout( function() { $('bodycontent').set('html', response); $('bodycontentloading').style.display='none'; $('bodycontent').style.display=''; setOpacity('bodycontent', 0, 100, 400);  } , 1000);
			
						
		}});
		//Send the form.
		this.send();
	
	});
	});
	};





	function goSubmit(f,ml){
		if(!(ml)){
			mylink = 'home.php';
		} else mylink = ml + '.php';
	window.addEvent('domready', function() {
	$(f).addEvent('submit', function(e) {
		e.stop();
		//Empty the log and show the spinning indicator.
		document.getElementById('mainingchoosing').style.display = 'none';
		document.getElementById('formingloading').style.display = 'none';
		document.getElementById('siscoplate2').style.display = 'none';
		
		window.setTimeout( function() { 
		
		document.getElementById('mainingloading').style.display = '';
		for(i=0;i<4;i++){
		setTimeout( function () {
		document.getElementById('loadingforminginingm').innerHTML += '&raquo;';
		}, i*200);
		}
		
		} , 500);

		//$('mainenter').style.display='none';
		//$('mainloading').style.display='';
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) {
			$('bodyin').set('html', response);
			
			$('bodycontent').style.display='none';
			window.setTimeout( function() { $('bodycontentloading').style.display=''; } , 500);
					
		var object = document.getElementById('mainhomebodyin').style;   
			   object.opacity = (0);  
			   object.MozOpacity = (0);   
			   object.KhtmlOpacity = (0);   
			   //object.filter = "alpha(opacity=0)";
			setOpacity('mainhomebodyin', 0, 100, 450);
			
			window.setTimeout( function() { $('bodycontentloading').style.display='none'; $('bodycontent').style.display=''; } , 2000);
			
			var scroll1 = new scrollObject("newsscroller", 695, 160, "left", 10000, 1.5);
	function scrollObject(main, width, height, direct, pause, speed) {
  var self = this;
  this.main = main;
  this.width = width;
  this.height = height;
  this.direct = direct;
  this.pause = pause;
  this.speed = Math.max(1.001, Math.min((direct == "up" || direct == "down") ? height : width, speed));
  this.block = new Array();
  this.blockprev = this.offset = 0;
  this.blockcurr = 1;
  this.mouse = false;
  this.scroll = function() {
    if (!document.getElementById) return false;
    this.main = document.getElementById(this.main);
	//alert(this.main);
    while (this.main.firstChild) this.main.removeChild(this.main.firstChild);
    this.main.style.overflow = "hidden";
    this.main.style.position = "relative";
    this.main.style.width = this.width + "px";
    this.main.style.height = this.height + "px";
    for (var x = 0; x < this.block.length; x++) {
      var table = document.createElement('table');
          table.cellPadding = table.cellSpacing = table.border = "0";
          table.style.position = "absolute";
          table.style.left = table.style.top = "0px";
          table.style.width = this.width + "px";
          table.style.height = this.height + "px";
          table.style.overflow = table.style.visibility = "hidden";
        var tbody = document.createElement('tbody');
          var tr = document.createElement('tr');
            var td = document.createElement('td');
                td.innerHTML = this.block[x];
              tr.appendChild(td);
            tbody.appendChild(tr);
          table.appendChild(tbody);
      this.main.appendChild(this.block[x] = table);
    }
    if (this.block.length > 1) {
      this.main.onmouseover = function() { self.mouse = true; }
      this.main.onmouseout = function() { self.mouse = false; }
      setInterval(function() {
        if (!self.offset && self.scrollLoop()) self.block[self.blockcurr].style.visibility = "visible";
      }, this.pause);
    } this.block[this.blockprev].style.visibility = "visible";
  }
  this.scrollLoop = function() {
    if (!this.offset) {
      if (this.mouse) return false;
      this.offset = (this.direct == "up" || this.direct == "down") ? this.height : this.width;
    } else this.offset = Math.floor(this.offset / this.speed);
    if (this.direct == "up" || this.direct == "down") {
      this.block[this.blockcurr].style.top = ((this.direct == "up") ? this.offset : -this.offset) + "px";
      this.block[this.blockprev].style.top = ((this.direct == "up") ? this.offset - this.height : this.height - this.offset) + "px";
    } else {
      this.block[this.blockcurr].style.left = ((this.direct == "left") ? this.offset : -this.offset) + "px";
      this.block[this.blockprev].style.left = ((this.direct == "left") ? this.offset - this.width : this.width - this.offset) + "px";
    }
    if (!this.offset) {
      this.block[this.blockprev].style.visibility = "hidden";
      this.blockprev = this.blockcurr;
      if (++this.blockcurr >= this.block.length) this.blockcurr = 0;
	  } else setTimeout(function() { self.scrollLoop(); }, 10);
    return true;
  }
}

scroll1.block[0] = '<table width="695" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="160"><td width="465" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">&nbsp;LASeR-lb.Org<br><br><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="55"><td style="text-align:justify;  font-size:10pt; color:#c5eaff; font-weight:normal">The Lebanese Association For Scientific Research In Lebanon.</td></tr></table><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td style="text-align:left;  font-size:10pt; color:#c5eaff; font-weight:normal">Project Duration: 2 weeks.</td><td style="text-align:right;"><a href="http://www.laser-lb.org/" target="_blank"><img src="http://www.globalwebfactory.com/images/hewiu87872h87wH78h8w78saiuJJiuhKsdjfUwh98hjuioh8" height="58" border="0"></a></td></tr></table></td><td width="230" style="text-align:center"><img src="laser-lb.jpg" width="230" height="123" border="0" title="Lebanese Association For Scientific Research"></td></tr></table>'; scroll1.block[1] = '<table width="695" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="160"><td width="465" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">&nbsp;CreativeSurfer.net<br><br><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="55"><td style="text-align:justify;  font-size:10pt; color:#c5eaff; font-weight:normal">Omar Moh. Ghomrawi\'s Personal Website: Director, Motion Graphic Designer, Video Editor & CameraMan.</td></tr></table><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td style="text-align:left;  font-size:10pt; color:#c5eaff; font-weight:normal">Project Duration: 4 weeks.</td><td style="text-align:right;"><a href="http://www.creativesurfer.net/" target="_blank"><img src="http://www.globalwebfactory.com/images/hewiu87872h87wH78h8w78saiuJJiuhKsdjfUwh98hjuioh8" height="58" border="0"></a></td></tr></table></td><td width="230" style="text-align:center"><img src="creativesurfer.jpg" width="230" height="123" border="0" title="Creative Surfer"></td></tr></table>'; scroll1.block[2] = '<table width="695" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="160"><td width="465" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">&nbsp;SibaBand.com<br><br><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="55"><td style="text-align:justify;  font-size:10pt; color:#c5eaff; font-weight:normal">Siba Media Center Official WebSite Version 2 With The New SibaBand Forum.</td></tr></table><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td style="text-align:left;  font-size:10pt; color:#c5eaff; font-weight:normal">Project Duration: 6 weeks.</td><td style="text-align:right;"><a href="http://www.sibaband.com/" target="_blank"><img src="http://www.globalwebfactory.com/images/hewiu87872h87wH78h8w78saiuJJiuhKsdjfUwh98hjuioh8" height="58" border="0"></a></td></tr></table></td><td width="230" style="text-align:center"><img src="sibaband.jpg" width="230" height="123" border="0" title="Siba Media Center"></td></tr></table>';
scroll1.scroll();
			  
		}});
		//Send the form.
		this.send();
	});
	});
	};
	
	
	  function next(){
		
	   block[blockcurr].style.visibility = "visible";
	   
	   nextproject();
	   }
	
function nextproject(initiate){


width = 700;
delay = 0;
height = 600;

index = "next";
speed = 1.3;
direct = "left";
speed = Math.max(1.001, Math.min((direct == "up" || direct == "down") ? height : width, speed));

if(initiate){

block = new Array();
block[0] = '<table width="700" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="top" height="600">		<td width="700" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">				<table width="650" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="middle" height="80">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">			&nbsp;Center For Advanced Studies In Lebanon	</td>		</tr><tr valign="middle" height="320">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><img src="casprev.jpg" height=300 border=0></div>		</td>		</tr><tr valign="middle" height="100">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><table width="650" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="middle" height="80"><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="http://www.castle-lb.org/" target="_blank">Go To Project Website</a></td><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="" onKeyDown="return false;" onMouseDown="gohoming('+"'"+'quote0'+"'"+','+"'"+'quote'+"'"+'); return false;" id="quote0">Request For Quote</a></td></tr></table></div>		</td>		</tr> </table>				</td>		</tr>		</table>';
block[1] = '<table width="700" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="top" height="600">		<td width="700" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">				<table width="650" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="middle" height="80">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">		&nbsp;The Lebanese Association For Scientific Research		</td>		</tr><tr valign="middle" height="320">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><img src="laserprev.jpg" height=300 border=0></div>		</td>		</tr><tr valign="middle" height="100">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><table width="650" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="middle" height="80"><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="http://www.laser-lb.org/" target="_blank">Go To Project Website</a></td><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="" onKeyDown="return false;" onMouseDown="gohoming('+"'"+'quote1'+"'"+','+"'"+'quote'+"'"+'); return false;" id="quote1">Request For Quote</a></td></tr></table></div>		</td>		</tr>		</table>				</td>		</tr>		</table>';
block[2] = '<table width="700" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="top" height="600">		<td width="700" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">				<table width="650" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="middle" height="80">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">		&nbsp;Creative Surfer</td>		</tr><tr valign="middle" height="320">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><img src="csprev.jpg" height=300 border=0></div>		</td>		</tr><tr valign="middle" height="100">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><table width="650" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="middle" height="80"><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="http://www.creativesurfer.net/" target="_blank">Go To Project Website</a></td><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="" onKeyDown="return false;" onMouseDown="gohoming('+"'"+'quote2'+"'"+','+"'"+'quote'+"'"+'); return false;" id="quote2">Request For Quote</a></td></tr></table></div>		</td>		</tr>		</table>				</td>		</tr>		</table>';
block[3] = '<table width="700" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="top" height="600">		<td width="700" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">				<table width="650" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="middle" height="80">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">		&nbsp;Siba Media Center Official WebSite Version 2		</td>		</tr><tr valign="middle" height="320">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><img src="sibabandprev.jpg" height=300 border=0></div>		</td>		</tr><tr valign="middle" height="100">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">	<div align=center><table width="650" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="middle" height="80"><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="http://www.sibaband.com/" target="_blank">Go To Project Website</a></td><td width="325" style="text-align:center; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold"><a style="text-align:center; text-decoration:none;  font-size:10pt; color:#fff; font-weight:bold" href="" onKeyDown="return false;" onMouseDown="gohoming('+"'"+'quote3'+"'"+','+"'"+'quote'+"'"+'); return false;" id="quote3">Request For Quote</a></td></tr></table></div>		</td>		</tr>		</table>				</td>		</tr> 		</table>';
/*block[4] = '<table width="700" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="top" height="600">		<td width="700" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">				<table width="650" align="center" border="0" cellspacing="0" cellpadding="0">		<tr valign="middle" height="80">		<td width="650" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">		&nbsp;Mediterranean Grills<br><br>		</td>		</tr>		</table>				</td>		</tr>		</table>';
*/
//document.write(block.length);
//document.getElementById('projects').innerHTML = block[0];


main = document.getElementById('projects');
//alert(this.main);
while (main.firstChild) main.removeChild(main.firstChild);
main.style.overflow = "hidden";
main.style.position = "relative";
main.style.width = width + "px";
//main.style.background = "#0D60C0";
main.style.height = height + "px";
for (var x = 0; x < block.length; x++) {
  var table = document.createElement('table');
	  table.cellPadding = table.cellSpacing = table.border = "0";
	  table.style.position = "absolute";
	  table.style.left = table.style.top = "0px";
	  table.style.width = width + "px";
	  table.style.height = height + "px";
	  table.style.overflow = table.style.visibility = "hidden";
	var tbody = document.createElement('tbody');
	  var tr = document.createElement('tr');
		var td = document.createElement('td');
			td.innerHTML = block[x];
		  tr.appendChild(td);
		tbody.appendChild(tr);
	  table.appendChild(tbody);
  main.appendChild(block[x] = table);
}


blockcurr = 0;
blocknext = 1;

offset = 0;


if (block.length > 1) {
window.setTimeout( function() {
block[blockcurr].style.visibility = "visible"; 
offset = Math.floor(offset / speed);
//nextproject();
block[blocknext].style.visibility = "visible";
 } , 500 );
}
block[blockcurr].style.visibility = "visible";

}




if(index == 'next') {

if (!offset) {
      //if (mouse) return false;
      offset = (direct == "up" || direct == "down") ? height : width;
    } else offset = Math.floor(offset / speed);
    if (direct == "up" || direct == "down") {
      block[blockcurr].style.top = ((direct == "up") ? offset : -offset) + "px";
      block[blocknext].style.top = ((direct == "up") ? offset - height : height - offset) + "px";
    } else {
      block[blockcurr].style.left = ((direct == "left") ? offset : -offset) + "px";
      block[blocknext].style.left = ((direct == "left") ? offset - width : width - offset) + "px";
    }
	

    if (!offset) {
      block[blockcurr].style.visibility = "visible";
      blocknext = blockcurr;
      if (++blockcurr >= block.length) blockcurr = 0;
	  } else { setTimeout(function() { nextproject(); }, 5); }

return true;
}


//document.getElementById('projects').innerHTML = block[good];



}
	
	function goSubmitin(f,ml){
		if(!(ml)){
			mylink = 'home.php';
		} else mylink = ml + '.php';
		
		if(f=="sendcumessage"){
		
				  e = document.getElementById('nameerr');
				  e.innerHTML="";
				  if (document.getElementById('name').value == "") 
				  {
				  e.innerHTML += 'Please Type In Your Full Name..';
				  }
				  if (e.innerHTML != "") return false;
				  e = document.getElementById('mailerr');
				  e.innerHTML="";                                  
				  if (!document.getElementById('email').value.match('^[A-z0-9\._-]+@[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*'+'\.([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|'+'int|mil|museum|name|net|org|pro|travel)$', 'i'))
				  {
				  e.innerHTML += 'Invalid email address';
				  }
				  if (e.innerHTML != "") return false;
				  e = document.getElementById('messerr');
				  e.innerHTML="";
				  if (document.getElementById('message').value=="") 
				  {
				  e.innerHTML += 'Please Type In Your Message';
				  }
				  if (e.innerHTML != "") return false;
				  		  
				  e = document.getElementById('codeerr');
				  e.innerHTML="";
				  if (document.getElementById('code').value!=document.getElementById('code2').value) 
				  {
				  e.innerHTML += 'Please Type In The Code Correctly';
				  }
				  if (e.innerHTML != "") return false;
				  
				  document.getElementById('submit').style.display = 'none';
				  document.getElementById('loading').style.display = '';
				  
		}
	window.addEvent('domready', function() {
	$(f).addEvent('submit', function(e) {
		e.stop();
		//Empty the log and show the spinning indicator.
			   var object = document.getElementById('bodycontent').style;   
			   object.opacity = (0);  
			   object.MozOpacity = (0);   
			   object.KhtmlOpacity = (0);   
			   //object.filter = "alpha(opacity=0)";
			$('bodycontent').style.display='none';
			window.setTimeout( function() { $('bodycontentloading').style.display=''; } , 500);
		//$('mainenter').style.display='none';
		//$('mainloading').style.display='';
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) {
			window.setTimeout( function() { $('bodycontent').set('html', response); $('bodycontentloading').style.display='none'; $('bodycontent').style.display=''; setOpacity('bodycontent', 0, 100, 400);
if(f == "portfolio"){
window.setTimeout( function() {
nextproject('true');
 } , 500 );
}
			} , 1000);
			 window.setTimeout( function() {if(ml == "homein") scroll1.scroll();} , 1000 );
			var scroll1 = new scrollObject("newsscroller", 695, 160, "left", 10000, 1.5);
	function scrollObject(main, width, height, direct, pause, speed) {
  var self = this;
  this.main = main;
  this.width = width;
  this.height = height;
  this.direct = direct;
  this.pause = pause;
  this.speed = Math.max(1.001, Math.min((direct == "up" || direct == "down") ? height : width, speed));
  this.block = new Array();
  this.blockprev = this.offset = 0;
  this.blockcurr = 1;
  this.mouse = false;
  this.scroll = function() {
    if (!document.getElementById) return false;
    this.main = document.getElementById(this.main);
	//alert(this.main);
    while (this.main.firstChild) this.main.removeChild(this.main.firstChild);
    this.main.style.overflow = "hidden";
    this.main.style.position = "relative";
    this.main.style.width = this.width + "px";
    this.main.style.height = this.height + "px";
    for (var x = 0; x < this.block.length; x++) {
      var table = document.createElement('table');
          table.cellPadding = table.cellSpacing = table.border = "0";
          table.style.position = "absolute";
          table.style.left = table.style.top = "0px";
          table.style.width = this.width + "px";
          table.style.height = this.height + "px";
          table.style.overflow = table.style.visibility = "hidden";
        var tbody = document.createElement('tbody');
          var tr = document.createElement('tr');
            var td = document.createElement('td');
                td.innerHTML = this.block[x];
              tr.appendChild(td);
            tbody.appendChild(tr);
          table.appendChild(tbody);
      this.main.appendChild(this.block[x] = table);
    }
    if (this.block.length > 1) {
      this.main.onmouseover = function() { self.mouse = true; }
      this.main.onmouseout = function() { self.mouse = false; }
      setInterval(function() {
        if (!self.offset && self.scrollLoop()) self.block[self.blockcurr].style.visibility = "visible";
      }, this.pause);
    } this.block[this.blockprev].style.visibility = "visible";
  }
  this.scrollLoop = function() {
    if (!this.offset) {
      if (this.mouse) return false;
      this.offset = (this.direct == "up" || this.direct == "down") ? this.height : this.width;
    } else this.offset = Math.floor(this.offset / this.speed);
    if (this.direct == "up" || this.direct == "down") {
      this.block[this.blockcurr].style.top = ((this.direct == "up") ? this.offset : -this.offset) + "px";
      this.block[this.blockprev].style.top = ((this.direct == "up") ? this.offset - this.height : this.height - this.offset) + "px";
    } else {
      this.block[this.blockcurr].style.left = ((this.direct == "left") ? this.offset : -this.offset) + "px";
      this.block[this.blockprev].style.left = ((this.direct == "left") ? this.offset - this.width : this.width - this.offset) + "px";
    }
    if (!this.offset) {
      this.block[this.blockprev].style.visibility = "hidden";
      this.blockprev = this.blockcurr;
      if (++this.blockcurr >= this.block.length) this.blockcurr = 0;
    } else setTimeout(function() { self.scrollLoop(); }, 30);
    return true;
  }
}

scroll1.block[0] = '<table width="695" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="160"><td width="465" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">&nbsp;LASeR-lb.Org<br><br><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="55"><td style="text-align:justify;  font-size:10pt; color:#c5eaff; font-weight:normal">The Lebanese Association For Scientific Research In Lebanon.</td></tr></table><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td style="text-align:left;  font-size:10pt; color:#c5eaff; font-weight:normal">Project Duration: 2 weeks.</td><td style="text-align:right;"><a href="http://www.laser-lb.org/" target="_blank"><img src="http://www.globalwebfactory.com/images/hewiu87872h87wH78h8w78saiuJJiuhKsdjfUwh98hjuioh8" height="58" border="0"></a></td></tr></table></td><td width="230" style="text-align:center"><img src="laser-lb.jpg" width="230" height="123" border="0" title="Lebanese Association For Scientific Research"></td></tr></table>'; scroll1.block[1] = '<table width="695" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="160"><td width="465" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">&nbsp;CreativeSurfer.net<br><br><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="55"><td style="text-align:justify;  font-size:10pt; color:#c5eaff; font-weight:normal">Omar Moh. Ghomrawi\'s Personal Website: Director, Motion Graphic Designer, Video Editor & CameraMan.</td></tr></table><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td style="text-align:left;  font-size:10pt; color:#c5eaff; font-weight:normal">Project Duration: 4 weeks.</td><td style="text-align:right;"><a href="http://www.creativesurfer.net/" target="_blank"><img src="http://www.globalwebfactory.com/images/hewiu87872h87wH78h8w78saiuJJiuhKsdjfUwh98hjuioh8" height="58" border="0"></a></td></tr></table></td><td width="230" style="text-align:center"><img src="creativesurfer.jpg" width="230" height="123" border="0" title="Creative Surfer"></td></tr></table>'; scroll1.block[2] = '<table width="695" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="160"><td width="465" style="text-align:left; font-family:Verdana; font-size:11pt; color:#c5eaff; font-weight:bold">&nbsp;SibaBand.com<br><br><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top" height="55"><td style="text-align:justify;  font-size:10pt; color:#c5eaff; font-weight:normal">Siba Media Center Official WebSite Version 2 With The New SibaBand Forum.</td></tr></table><table width="410" align="center" border="0" cellspacing="0" cellpadding="0"><tr valign="top"><td style="text-align:left;  font-size:10pt; color:#c5eaff; font-weight:normal">Project Duration: 6 weeks.</td><td style="text-align:right;"><a href="http://www.sibaband.com/" target="_blank"><img src="http://www.globalwebfactory.com/images/hewiu87872h87wH78h8w78saiuJJiuhKsdjfUwh98hjuioh8" height="58" border="0"></a></td></tr></table></td><td width="230" style="text-align:center"><img src="sibaband.jpg" width="230" height="123" border="0" title="Siba Media Center"></td></tr></table>';
				//$('bodyin2').set('html', response);			 
				
		}});
		//Send the form.
		this.send();
	
	});
	});
	};
	
	 function CuteWebUI_AjaxUploader_OnTaskComplete(task)
	 {
		// var div=document.createElement("DIV");
		// var link=document.createElement("A");
		// link.setAttribute("href","savefiles/"+task.FileName);
		// link.innerHTML="You have uploaded file : savefiles/"+task.FileName;
		// link.target="_blank";
		// div.appendChild(link);
		// document.body.appendChild(div);
		document.addnews.src.value = task.FileName;
		document.getElementById('hh2').innerHTML = task.FileName;
		document.getElementById('button').style.display = "none";
		document.getElementById('input').style.display = "";
	 }
	 function remove()
	 {
		document.addnews.src.value = '';
		document.getElementById('hh2').innerHTML = '';
		document.getElementById('button').style.display = "";
		document.getElementById('input').style.display = "none";
	 }
	 
