function swap(id,bg,tnormal,tnormal2,ttext,ttext2,show){
	var a=document.getElementById(id).innerHTML;
	if(a == "About SabriTech"){
		document.getElementById(bg).style.backgroundImage = 'url(images/abouttabS.jpg)';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
	}
	
	if(a == "Testimonials"){
		document.getElementById(bg).style.backgroundImage = 'url(images/testtabS.jpg)';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
	}
	
	if(a == "Office Locations"){
		document.getElementById(bg).style.backgroundImage = 'url(images/ctabs1.jpg)';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(tnormal2).style.fontWeight = 'normal';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
		document.getElementById(ttext2).style.display = 'none';
	}
	
	if(a == "Support"){
		document.getElementById(bg).style.backgroundImage = 'url(images/ctabs2.jpg)';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(tnormal2).style.fontWeight = 'normal';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
		document.getElementById(ttext2).style.display = 'none';
	}
	
	if(a == "Maps"){
		document.getElementById(bg).style.backgroundImage = 'url(images/ctabs3.jpg)';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(tnormal2).style.fontWeight = 'normal';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
		document.getElementById(ttext2).style.display = 'none';
	}
	
	if(a == "News"){
		document.getElementById(bg).style.backgroundImage = 'url(images/newstabS.jpg)';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(tnormal2).style.fontWeight = 'normal';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
		document.getElementById(ttext2).style.display = 'none';
	}
	
	if(a == "Resource Library"){
		document.getElementById(bg).style.backgroundImage = 'url(images/rslibS.jpg)';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(tnormal2).style.fontWeight = 'normal';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
		document.getElementById(ttext2).style.display = 'none';
	}
	
	if(a == "Call Back"){
		document.getElementById(bg).style.backgroundImage = 'url(images/callbackS.jpg)';
		document.getElementById(tnormal).style.fontWeight = 'normal';
		document.getElementById(tnormal2).style.fontWeight = 'normal';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(show).style.display = '';
		document.getElementById(ttext).style.display = 'none';
		document.getElementById(ttext2).style.display = 'none';
	}
}

function swap2(id,bg,tn1,tn2,tn3,tn4,h1,h2,h3,h4,show){
	var a=document.getElementById(id).innerHTML;
	if(a == "Software Development Services"){
		document.getElementById(bg).style.backgroundImage = 'url(images/firsttabS.jpg)';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(tn1).style.fontWeight = 'normal';
		document.getElementById(tn2).style.fontWeight = 'normal';
		document.getElementById(tn3).style.fontWeight = 'normal';
		document.getElementById(tn4).style.fontWeight = 'normal';
		document.getElementById(show).style.display = '';
		document.getElementById(h1).style.display = 'none';
		document.getElementById(h2).style.display = 'none';
		document.getElementById(h3).style.display = 'none';
		document.getElementById(h4).style.display = 'none';
	}
	
	if(a == "Telecom Consultancy"){
		document.getElementById(bg).style.backgroundImage = 'url(images/secondtabS.jpg)';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(tn1).style.fontWeight = 'normal';
		document.getElementById(tn2).style.fontWeight = 'normal';
		document.getElementById(tn3).style.fontWeight = 'normal';
		document.getElementById(tn4).style.fontWeight = 'normal';
		document.getElementById(show).style.display = '';
		document.getElementById(h1).style.display = 'none';
		document.getElementById(h2).style.display = 'none';
		document.getElementById(h3).style.display = 'none';
		document.getElementById(h4).style.display = 'none';
	}
	
	if(a == "Software Testing Solution"){
		document.getElementById(bg).style.backgroundImage = 'url(images/thirdtabS.jpg)';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(tn1).style.fontWeight = 'normal';
		document.getElementById(tn2).style.fontWeight = 'normal';
		document.getElementById(tn3).style.fontWeight = 'normal';
		document.getElementById(tn4).style.fontWeight = 'normal';
		document.getElementById(show).style.display = '';
		document.getElementById(h1).style.display = 'none';
		document.getElementById(h2).style.display = 'none';
		document.getElementById(h3).style.display = 'none';
		document.getElementById(h4).style.display = 'none';
	}
	
	if(a == "Business Process Outsourcing"){
		document.getElementById(bg).style.backgroundImage = 'url(images/fourthtabS.jpg)';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(tn1).style.fontWeight = 'normal';
		document.getElementById(tn2).style.fontWeight = 'normal';
		document.getElementById(tn3).style.fontWeight = 'normal';
		document.getElementById(tn4).style.fontWeight = 'normal';
		document.getElementById(show).style.display = '';
		document.getElementById(h1).style.display = 'none';
		document.getElementById(h2).style.display = 'none';
		document.getElementById(h3).style.display = 'none';
		document.getElementById(h4).style.display = 'none';
	}
	
	if(a == "Product Consultancy"){
		document.getElementById(bg).style.backgroundImage = 'url(images/fifthtabS.jpg)';
		document.getElementById(id).style.fontWeight = 'bold';
		document.getElementById(tn1).style.fontWeight = 'normal';
		document.getElementById(tn2).style.fontWeight = 'normal';
		document.getElementById(tn3).style.fontWeight = 'normal';
		document.getElementById(tn4).style.fontWeight = 'normal';
		document.getElementById(show).style.display = '';
		document.getElementById(h1).style.display = 'none';
		document.getElementById(h2).style.display = 'none';
		document.getElementById(h3).style.display = 'none';
		document.getElementById(h4).style.display = 'none';
	}
}

/*function dropmenushow(s,h1,h2,h3,h4,h5){
	document.getElementById(s).style.display = "";
	document.getElementById(h1).style.display = "none";
	document.getElementById(h2).style.display = "none";
	document.getElementById(h3).style.display = "none";
	document.getElementById(h4).style.display = "none";
	document.getElementById(h5).style.display = "none";
}

function dropmenuhide(id){
	document.getElementById(id).style.display = "none";
}*/
var fox= 0;
var fox1= 0;
var fox2= 0;
var fox3= 0;
var fox4= 0;

$(document).ready(function(){
	$("#abouttab").mouseover(function (){
	   fox = 0;
	   $(this).delay(750,function(){
			//alert($('#abouttab').focus());
			if(fox == 0)
			{
				$("#m2").slideDown("slow");
			}
		});
	});
	
	$("#abouttab").mouseleave(function () {
		fox = 1;				   
	});
	
	$("#md2").mouseleave(function () {
	  $("#m2").slideUp("slow");
	});
	
	$("#close1").click(function () {
	  $("#m2").slideUp("slow");
	});
	
	/*-------------------------------------*/
	$("#servicestab").mouseover(function () {
	  fox1 = 0;
	   $(this).delay(750,function(){
			//alert($('#abouttab').focus());
			if(fox1 == 0)
			{
				$("#m3").slideDown("slow");
			}
		});
	});
	
	$("#servicestab").mouseleave(function () {
		fox1 = 1;				   
	});
	
	$("#md3").mouseleave(function () {
	  $("#m3").slideUp("slow");
	});
	
	$("#close2").click(function () {
	  $("#m3").slideUp("slow");
	});
	
	/*-------------------------------------*/
	$("#outsourcingtab").mouseover(function () {
	  fox2 = 0;
	   $(this).delay(750,function(){
			//alert($('#abouttab').focus());
			if(fox2 == 0)
			{
				$("#m4").slideDown("slow");
			}
		});
	});
	
	$("#outsourcingtab").mouseleave(function () {
		fox2 = 1;				   
	});
	
	$("#md4").mouseleave(function () {
	  $("#m4").slideUp("slow");
	});
	
	$("#close3").click(function () {
	  $("#m4").slideUp("slow");
	});
	
	/*-------------------------------------*/
	$("#partnerstab").mouseover(function () {
	  fox3 = 0;
	   $(this).delay(750,function(){
			//alert($('#abouttab').focus());
			if(fox3 == 0)
			{
				$("#m5").slideDown("slow");
			}
		});
	});
	
	$("#partnerstab").mouseleave(function () {
		fox3 = 1;				   
	});
	
	$("#md5").mouseleave(function () {
	  $("#m5").slideUp("slow");
	});
	
	$("#close4").click(function () {
	  $("#m5").slideUp("slow");
	});
	
	/*-------------------------------------*/
	$("#clientstab").mouseover(function () {
	  fox4 = 0;
	   $(this).delay(750,function(){
			//alert($('#abouttab').focus());
			if(fox4 == 0)
			{
				$("#m6").slideDown("slow");
			}
		});
	});
	
	$("#clientstab").mouseleave(function () {
		fox4 = 1;				   
	});
	
	$("#md6").mouseleave(function () {
								   
	  $("#m6").slideUp("slow");
	});
	
	$("#close5").click(function () {
	  $("#m6").slideUp("slow");
	});
	
	/*-------------------------------------*/
	$("#btngo").click(function () {
	  $("#subscribed").slideDown("slow");
	});
	
	$("#cross").click(function () {
	  $("#subscribed").slideUp("slow");
	});
	
	$("#btngo1").click(function () {
	  $("#subscribed1").slideDown("slow");
	});
	
	$("#cross1").click(function () {
	  $("#subscribed1").slideUp("slow");
	});
	
});
