//////////////////////////////////
/* creates the view image pages on the gallery section */

//////////////////////////////////
/*
function galleryshow(filename,foldername,nitems)
{
var x;
x=window.open("gallery.asp?fname="+filename+"&folname="+foldername+"&nitems="+nitems,"imagewindow","left=100,top=50,width=550,height=440");
}


function checkchar(field)
{
var clist="ABCDEFGHIJKLMNOPQRSTUVWXYZ.";

//For getting the Ascii code
key=window.event.keyCode;


//For getting the Actual Character

keychar = String.fromCharCode(key);

keychar2=keychar.toUpperCase();

	if (clist.indexOf(keychar2)>-1)
	{
	return true;
	}
	else if(key==32)
	{
	return true;
	}
	else
	{
	
	return false;
	}

}

*/


function pass_parameter2(anyelemnt)
{
anyelemnt.style.background="#2277B9";
anyelemnt.style.color="#ffffff";
}

function recieve_parameter2(anyelemnt)
{
anyelemnt.style.background="#FBFBFB";
anyelemnt.style.color="#3096CF";

}

function Top_Links()
{
var sTop_Links = "";
sTop_Links +="<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
sTop_Links +="<tr>";
sTop_Links +="<td>";
sTop_Links +="<div align='right'>";
sTop_Links +="<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
sTop_Links +="<tr>";
sTop_Links +="<td width='286'>&nbsp;</td>";
sTop_Links +="<td width='35'><a href='/english/Join_Us/index.html' class='top'>Join Us</a></td>";
sTop_Links +="<td width='13'>&nbsp;</td>";
sTop_Links +="<td width='54'><a href='/english/Contact_Us/index.html' class='top'>Contact Us</a></td>";
sTop_Links +="<td width='13'>&nbsp;</td>";
sTop_Links +="<td width='42'><a href='/english/Site_Map/index.html' class='top'>Site Map</a></td>";
sTop_Links +="<td width='13'>&nbsp;</td>";
sTop_Links +="<td width='55'><a href='/english/index.html' class='top'>Home Page</a></td>";
sTop_Links +="<td width='13'></td>";
sTop_Links +="</tr>";
sTop_Links +="</table></div></td></tr>";
sTop_Links +="<tr>";
sTop_Links +="<td>";
sTop_Links +="<div align='right'>";
sTop_Links +="<table border='0' width='556' cellspacing='0' cellpadding='0' height='32' class='Sub'>";
sTop_Links +="<tr>";

sTop_Links +="<td width='105' onmouseover=oDiv1.show(); onmouseout=oDiv1.hide();>&nbsp;&nbsp;&nbsp;<a href='/english/company_profile/index.html' class='navigation'>Company Profile</a>";

sTop_Links +="<table cellspacing=0 cellpadding=0 border=0 id=oDiv1 class=effcss>";
sTop_Links +="<tr><td class=effcss_td id='L10' onmouseover=obj_on('L10'); onmouseout=obj_off('L10'); onclick=window.location='/english/Company_profile/major/index.html'>Major Projects</td></tr>";
sTop_Links +="<tr><td class=effcss_td id='L11' onmouseover=obj_on('L11'); onmouseout=obj_off('L11'); onclick=window.location='/english/Company_profile/chart/index.html' style='border-bottom:solid #64A1D8 1px;'>Organizational Chart</td></tr>";
sTop_Links +="</table>";

sTop_Links +="</td>";

sTop_Links +="<td width='130'>&nbsp;&nbsp;&nbsp;<a href='/english/products_&_services/index.html' class='navigation'>Products &amp; Services</a></td>";
sTop_Links +="<td width='76'>&nbsp;<a href='/english/whats_new/index.html' class='navigation'>What's New</a></td>";
sTop_Links +="<td width='88'>&nbsp;<a href='/english/Technical_Tips/index.html' class='navigation'>Technical Tips</a></td>";
sTop_Links +="<td width='51' onmouseover=oDiv2.show2(); onmouseout=oDiv2.hide2();><a href='/english/Gallery/index.html' class='navigation'>Gallery</a>";

sTop_Links +="<table cellspacing=0 cellpadding=0 border=0 id=oDiv2 class=effcss>";
sTop_Links +="<tr><td class=effcss_td id='L3' onmouseover=obj_on('L3'); onmouseout=obj_off('L3'); onclick=window.location='/english/Gallery/residence/residence.html' >Residential Pool</td></tr>";
sTop_Links +="<tr><td class=effcss_td id='L4' onmouseover=obj_on('L4'); onmouseout=obj_off('L4'); onclick=window.location='/english/Gallery/commercial/commercial.html'>Commercial Pools</td></tr>";
sTop_Links +="<tr><td class=effcss_td id='L5' onmouseover=obj_on('L5'); onmouseout=obj_off('L5'); onclick=window.location='/english/Gallery/fountains/fountains.html'>Fountains</td></tr>";
sTop_Links +="<tr><td class=effcss_td id='L6' onmouseover=obj_on('L6'); onmouseout=obj_off('L6'); onclick=window.location='/english/Gallery/staem/staem.html'>Steam & Sauna</td></tr>";
sTop_Links +="<tr><td class=effcss_td id='L7' onmouseover=obj_on('L7'); onmouseout=obj_off('L7'); onclick=window.location='/english/Gallery/waterfalls/waterfalls.html'>Waterfalls and Artificial Formation</td></tr>";
sTop_Links +="<tr><td class=effcss_td id='L8' onmouseover=obj_on('L8'); onmouseout=obj_off('L8'); onclick=window.location='/english/Gallery/Jacuzzi/Jacuzzi.html' style='border-bottom:solid #64A1D8 1px;'>Spas & Jacuzzis</td></tr>";
sTop_Links +="</table>";

sTop_Links +="</td>";
sTop_Links +="<td width='87'><a href='/english/Special_Offers/index.html' class='navigation'>Special Offers</a></td>";
sTop_Links +="</tr></table></div></td></tr></table>&nbsp;</td>";
document.write(sTop_Links);
}


function Main_links()
{
var sMain_links = "";
sMain_links +="<td width='558' valign='top' height='15' class='top_link' colspan='5'>";
sMain_links +="<div align='right'>";
sMain_links +="<table border='0' width='266' id='table4' cellspacing='0' cellpadding='0' height='15' class='top_link'>";
sMain_links +="<tr>";
sMain_links +="<td width='50'>&nbsp;</td>";
sMain_links +="<td width='35'><a href='/english/Join_Us/index.html' class='top'>Join Us</a></td>";
sMain_links +="<td width='11'>&nbsp;</td>";
sMain_links +="<td width='54'><a href='/english/Contact_Us/index.html' class='top'>Contact Us</a></td>";
sMain_links +="<td width='11'>&nbsp;</td>";
sMain_links +="<td width='42'><a href='/english/Site_Map/index.html' class='top'>Site Map</a></td>";
sMain_links +="<td width='11'>&nbsp;</td>";
sMain_links +="<td width='40'><a class='arabic' href='/arabic/index.html'>عربي</a></td>";

sMain_links +="</tr></table></div></td>";
sMain_links +="<td width='7' rowspan='5'>&nbsp;</td>";
sMain_links +="</tr>";
sMain_links +="<tr>";
sMain_links +="<td width='556' valign='top' class='links_backgound' colspan='5'>";
sMain_links +="<div align='right'>";
sMain_links +="<table border='0' width='100%' id='table5' cellspacing='0' cellpadding='0' height='28'>";
sMain_links +="<tr>";

sMain_links +="<td width='116' class='navigation' onmouseover=oDiv1.show(); onmouseout=oDiv1.hide(); style='padding-bottom:5;'><a href='/english/company_profile/index.html' class='navigation'>Company Profile</a>";

sMain_links +="<table cellspacing=0 cellpadding=0 border=0 id=oDiv1 class=effcss>";
sMain_links +="<tr><td class=effcss_td id='L1' onmouseover=obj_on('L1'); onmouseout=obj_off('L1'); onclick=window.location='/english/Company_profile/major/index.html'>Major Projects</td></tr>";
sMain_links +="<tr><td class=effcss_td id='L2' onmouseover=obj_on('L2'); onmouseout=obj_off('L2'); onclick=window.location='/english/Company_profile/chart/index.html' style='border-bottom:solid #64A1D8 1px;'>Organizational Chart</td></tr>";
sMain_links +="</table>";

sMain_links +="</td>";

sMain_links +="<td width='122' class='navigation'>&nbsp; <a href='/english/products_&_services/index.html' class='navigation'>Products &amp; Services</a></td>";
sMain_links +="<td width='77' class='navigation'>&nbsp;&nbsp;&nbsp; <a href='/english/whats_new/index.html' class='navigation'>What's New</a></td>";
sMain_links +="<td width='97' class='navigation'>&nbsp; <a href='/english/Technical_Tips/index.html' class='navigation'>Technical Tips</a></td>";

sMain_links +="<td width='52' class='navigation' onmouseover=oDiv2.show2(); onmouseout=oDiv2.hide2(); style='padding-bottom:5;'><a href='/english/Gallery/index.html' class='navigation'>Gallery &nbsp;</a>";

sMain_links +="<table cellspacing=0 cellpadding=0 border=0 id=oDiv2 class=effcss>";
sMain_links +="<tr><td class=effcss_td id='L3' onmouseover=obj_on('L3'); onmouseout=obj_off('L3'); onclick=window.location='/english/Gallery/residence/residence.html' >Residential Pool</td></tr>";
sMain_links +="<tr><td class=effcss_td id='L4' onmouseover=obj_on('L4'); onmouseout=obj_off('L4'); onclick=window.location='/english/Gallery/commercial/commercial.html'>Commercial Pools</td></tr>";
sMain_links +="<tr><td class=effcss_td id='L5' onmouseover=obj_on('L5'); onmouseout=obj_off('L5'); onclick=window.location='/english/Gallery/fountains/fountains.html'>Fountains</td></tr>";
sMain_links +="<tr><td class=effcss_td id='L6' onmouseover=obj_on('L6'); onmouseout=obj_off('L6'); onclick=window.location='/english/Gallery/staem/staem.html'>Steam & Sauna</td></tr>";
sMain_links +="<tr><td class=effcss_td id='L7' onmouseover=obj_on('L7'); onmouseout=obj_off('L7'); onclick=window.location='/english/Gallery/waterfalls/waterfalls.html'>Waterfalls and Artificial Formation</td></tr>";
sMain_links +="<tr><td class=effcss_td id='L8' onmouseover=obj_on('L8'); onmouseout=obj_off('L8'); onclick=window.location='/english/Gallery/Jacuzzi/Jacuzzi.html' style='border-bottom:solid #64A1D8 1px;'>Spas & Jacuzzis</td></tr>";
sMain_links +="</table>";

sMain_links +="</td>";

sMain_links +="<td class='navigation'><a href='/english/Special_Offers/index.html' class='navigation'>Special Offers</a></td>";
sMain_links +="</tr></table></div></td>";
document.write(sMain_links);
}

function Logo()
{
var sLogo = "";
sLogo +="<table border='0' width='100%' id='table21' cellspacing='0' cellpadding='0'>";
sLogo +="<tr>";
sLogo +="<td>";
sLogo +="<div align=center><img border='0' src='/english/images/new_logo.gif'></div></td>";
sLogo +="</tr>";
sLogo +="<tr>";
sLogo +="<td><div align=center style='margin-left:5px;'><img border='0' src='/english/images/CSP1.gif'></div></td>";
sLogo +="</tr></table>";
document.write(sLogo);
}

function banner()
{
var sbanner = "";
sbanner +="<td width='196' valign='bottom'>";
sbanner +="<div align=center><img border='0' src='/english/images/left_images.gif'><br><br></td>";
document.write(sbanner);
}


function MainBottom()
{
var sBottom = "";
sBottom +="<td height='30' valign='top' class='bottom_background'>";
sBottom +="<table border='0' width='100%' id='table13' cellspacing='0' cellpadding='0'>";
sBottom +="<tr>";
sBottom +="<td width='235'>&nbsp;</td>";
sBottom +="<td width='182' class='copyright'>© 2007 C S Pools. All rights reserved.</td>";
sBottom +="<td width='135'>&nbsp;</td>";
sBottom +="<td width='71' class='copyright'>Developed By</td>";
sBottom +="<td width='132' valign='top'><div style='margin-top:3;'><a href='http://www.afkaronline.com' target='_blank'><img border='0' src='/english/images/afkarlogo.gif'></a></div></td>";
sBottom +="</tr>";
sBottom +="</table>";
sBottom +="</td>";
document.write(sBottom);
}

function Bottom()
{
var sBottom = "";
sBottom +="<table border='0' width='100%' id='table19' cellspacing='0' cellpadding='0'>";
sBottom +="<tr>";
sBottom +="<td width='18' valign='top'><img border='0' src='/english/images/left_crv.gif'></td>";
sBottom +="<td width='724' height='30' valign='top' class='copyright_bgcolor'>© 2007 C S Pools. All rights reserved.</td>";
sBottom +="<td width='18' valign='top'><img border='0' src='/english/images/right_crv.gif'></td>";
sBottom +="</tr></table>";
document.write(sBottom);
}

document.write("<script language=javascript src='/code/code.js'></script>");