// JavaScript Document
var vTime = new Date()
var formName="";
fVal=new Array();

function setEventOnForm(){
	document.defaultForm.onsubmit=function (){return(formVal())};
}

function callSignup(){}

function formVal(){
	
	var i, priTheValue, initalErrorField, errorFields;
	if (formName==""){
		formName="defaultForm"
	}
	flg=true;
	var reEmail = /^.+\@.+\..+$/;
	var eEMail = "Please enter a valid email address.";
	msg="";
	errorFields="";
	theForm=eval("document."+formName)
	for(i=0;i<fVal.length;i++){
			sl1=fVal[i].split(', ');
			priTheValue=trim(theForm.elements[sl1[0]].value);
			//alert(priTheValue)
			alias=sl1[5];
			if(alias=='default') alias=breakCase(sl1[0])

			//alert(priTheValue.indexOf("''"))
			if (priTheValue.indexOf("''")==-1){
				theForm.elements[sl1[0]].value=priTheValue.replace("'", "''")
			}
			if(sl1[1]==1){
				if(!blankVal(priTheValue)){
					msg+="\n  - "+alias+" cannot be left blank";
					errorFields+=sl1[0]+", ";
					flg=false;
				}
			}

			if(sl1[2]==1){
				if(!charVal(priTheValue)){
					msg+="\n   - "+alias+" can have only character values";
					errorFields+=sl1[0]+", ";
					flg=false;
				}
			}

			if(sl1[3]==1){
				if(!numVal(priTheValue)){
					msg+="\n   - "+alias+" can have only numeric values";
					errorFields+=sl1[0]+", ";
					flg=false;
				}
			}
			
			//This is for misc validation
			if(sl1[4]==1){
				if(!isEmailAddr(priTheValue)){
					msg+="\n   - "+alias+" Please type proper emailId";
					errorFields+=sl1[0]+", ";
					flg=false;
				}
			}
			
			if(sl1[4]==2){
				if(!isWebAddr(priTheValue)){
					msg+="\n   - "+alias+" Please type proper web address";
					errorFields+=sl1[0]+", ";
					flg=false;
				}
			}
			//retrieve back the actual state after error has been defined for field
			theForm.elements[sl1[0]].className='';
	}
	
	if(!flg){
		alert("Following error(s) have occured\n-----------------------------------------                           "+msg);
		sl1=(removeTail(errorFields)).split(", ");

		for(i=0;i<sl1.length;i++){
			theForm.elements[sl1[i]].className='errorField';
		}

		theForm.elements[sl1[0]].focus();
	}
			
	return flg;
}
	var ex = new Date()


function isEmailAddr(email)
{
  var result = false;
  var theStr = new String(email);
  if(theStr=="")
	  return true;

  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function isWebAddr(WebAddress)
{

  var result = false;
  var theStr = new String(WebAddress);
  if(theStr=="")
	  return true;

  var index = theStr.indexOf("www.");
  if (index == 0)
  {
    var pindex = theStr.indexOf(".",index+4);
    if ((pindex > index+1) && (theStr.length > pindex+2))
	result = true;
  }
  return result;
}

function trim(theValue){
	//alert(theValue.length)
	if(theValue!=""){
		if(theValue.indexOf(" ")==0){
			//recurse this function in case the first character of string is a space
			theValue=theValue.substr(1, theValue.length)
			trim(theValue)
		}
		
		if (theValue.lastIndexOf(" ")==(theValue.length-1)){
			//recurse this function in case the first character of string is a space
			theValue=theValue.substr(0,theValue.length-1);
			trim(theValue);
		}
	}	
	return theValue;
}

function breakCase(fieldName){
	var i;
	var processedFieldName=(fieldName.charAt(0)).toUpperCase();

	for(i=1;i<fieldName.length;i++){
		if(fieldName.charAt(i)==(fieldName.charAt(i)).toUpperCase()){
			processedFieldName=processedFieldName+" "+fieldName.charAt(i);
		}
		else{
			processedFieldName=processedFieldName+fieldName.charAt(i);
		}
	}

	return(processedFieldName);
}

function blankVal(theValue){

		if(theValue=="")
			return(false);
		else
			return(true);
}

function charVal(theVal){
	var i;
	theVal=theVal.toLowerCase()

	for(i=0;i<theVal.length;i++){
		if((theVal.charAt(i)<'a' || theVal.charAt(i)>'z') && (theVal.charAt(i)!=' ')){
			return false;
		}
	}
	return true;
}

function numVal(theVal){
	alert(theVal)
	if(isNaN(theVal)) return false;
	return true
}



function removeTail(theValue){
	return(theValue.substring(0, theValue.length-2))	
}

function resetFormClasses(){
	for(i=0;i<fVal.length;i++){
		sl1=fVal[i].split(', ');
		document.defaultForm.elements[sl1[0]].className=''
	}
}

//--------------------------------------------------

function isWebAddr(WebAddress)
{

  var result = false;
  var theStr = new String(WebAddress);
  if(theStr=="")
	  return true;

  var index = theStr.indexOf("www.");
  if (index == 0)
  {
    var pindex = theStr.indexOf(".",index+4);
    if ((pindex > index+1) && (theStr.length > pindex+2))
	result = true;
  }
  return result;
}
function validWed(formField,fieldLabel)
{
	var result = true;
	
	if (!isWebAddr(formField.value))
	{
		alert("Please enter a complete web address in the form: www.abc.xyz");
		formField.focus();
		result = false;
	}
   
  return result;

}
//-----------------for New Window -----------------------

function openMyWin(theFile){
	window.open(theFile, '', 'width=780 height=556 menubar=no scrollbars' )
}

function openSmallWin(theFile){
	window.open(theFile, '', 'width=500 height=350 menubar=no scrollbars')
}

function openFullWin(theFile){
	window.open(theFile, '', 'left=0, top=0, width=768 height=560 menubar=yes, location=yes, status=yes, resizable, scrollbars, titlebar, toolbar=yes')
}
//-----------------for Top Links-----------------------

function populateLinks(){
	mainlinkName = new Array("About Royal Palms", "The Company", "Virtual Tour", "News & Events", "Articles", "Training academy", "Work with us", "Contact Us")
	mainlinkValue = new Array("main_aboutRoyalPalms.htm", "main_aboutTheCompany.htm", "javascript:openMyWin('interactive_map/virtualTour.htm')", "main_News-Events.htm", "articles.htm", "training_academy.htm", "main_career.htm", "contactUs.htm")

	len = mainlinkName.length
	for (i=0;i<len;i++){
		document.write("<a class=mainlink href="+mainlinkValue[i]+">"+mainlinkName[i]+"</a>" + "&nbsp;&nbsp")
	}
}

function populateTopLinks(){
	topLinkName = new Array("+Home")
	topLinkValue = new Array("index.htm")
	len = topLinkName.length
	for (i=0;i<len;i++){
		document.write("<a class=toplink href="+topLinkValue[i]+">"+topLinkName+"</a>" + "&nbsp")
	}
		document.write("&nbsp")
}
//-----------------end of top links-----------------------
function callMe(){
	linkName = new Array(  "Golf Course", "Lakes",  "Man-Made Beach",   "Wave Pool", "Water Slides", "Shopping", "Food and Drinks", "Clubs", "Fitness Club", "Cricket Academy", "Golf Academy", "Medical Clinic", "Hotels", "Live", "Work")
	linkValue = new Array("main_golf.htm", "main_lake.htm", "main_beach.htm", "main_wave.htm", "main_slide.htm",  "main_mall.htm", "main_cafe.htm", "main_club.htm", "main_health.htm", "main_cricket.htm","main_golfAcademy.htm", "main_hospital.htm",  "main_Hotel.htm", "live.htm", "work.htm")
	len=linkName.length
		document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='experience.htm' class='sp3'>Royal Palms World</a></td></tr>")
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class='heading'' href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}

}

function viewProperties(){
	linkName = new Array( "Live", "Rent",  "Work",   "Own a Shop")
	linkValue = new Array("main_stay.htm", "main_Rent.htm", "main_work.htm", "main_buymall.htm" )
	len=linkName.length
		document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='buyer.htm' class='sp3'>View Properties</a></td></tr>")
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class='heading'' href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
	}


function contactUs(){
	linkName = new Array( "Contact Us", "Virtual Tour of Royal Palms", "Inquiry Form")
	linkValue = new Array("contactUs.htm", "javascript:openMyWin('interactive_map/virtualTour.htm')", "main_inquiryForm.asp")
	len=linkName.length

		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

function callAssociate(){
	linkName = new Array( "Be an Associate", "Work Partners", "Brand Ambassodors")
	linkValue = new Array("main_associate.htm", "main_workPartner.htm", "main_brandAmbassodors.htm")
	len=linkName.length
		document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='index.htm' class='sp3'>Home</a></td></tr>")	
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class='heading' href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}
function theCompany(){
	linkName = new Array( "Company Profile", "Values and Vision", "Corporate Objectives",  "Quality Standards", "&nbsp;", "<span  class=heading style='color:336699;cursor:default'>Executive Biographies</span>", "Amir Nensey", "Muhamed Nensey", "Dilawar Nensey")
	linkValue = new Array("main_aboutTheCompany.htm", "main_valueNVision.htm", "main_corporate.htm", "main_qualityStd.htm", "#", "amir.htm", "amir.htm", "mahmood.htm", "dilwar.htm")
	len=linkName.length
		document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='main_aboutTheCompany.htm' class='sp3'>The Company</a></td></tr>")		
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class='heading' href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}

}

function aboutRoyalPalms(){
	linkName = new Array( "Company Profile", "Values and Vision", "Corporate Objectives", "", "Chairman Speech ", "Executive Biographies", "<i>- Amir Nensey", "<i>- Dilawar Nensey","<i>- Muhamed Nensey", " ", "Core Team", "<i>- CFO", "<i>- HR Head", "Quality Standard")
	linkValue = new Array("main_aboutTheCompany.htm", "main_valueNVision.htm", "main_corporate.htm", "", "main_charmanSpeech.htm", "main_execBio.htm", "amir.htm", "dilwar.htm", "mahmood.htm", "", "#", "#", "#", "main_qualityStd.htm")
	len=linkName.length
		document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='main_aboutTheCompany.htm' class='sp3'>The Company</a></td></tr>")		
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class='heading' href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

function newsEvents(){
	linkName = new Array( "Mumbai's Orchard Road Mall")
	linkValue = new Array("News_DiscountMall.htm")
	len=linkName.length
	document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='main_news&Events.htm' class='sp3'>News & Events</a></td></tr>")		
		for (i=0;i<len;i++){
			document.write("<tr align='right'><td>")
				"<a href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</a></td></tr>")
	}
}
function royalNews(){
	linkName = new Array( "Royal Palms News Tracker")
	linkValue = new Array("http://www.bluebytes.info/newscheck/royalpalms.aspx target=_blank")
	len=linkName.length
			for (i=0;i<len;i++){
			document.write("<tr class='heading45' align='right' ><td>")
				"<a class='heading45' href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</a></td></tr>")
	}
}

function mediaKit(){
	linkName = new Array( "Company Profile", "&nbsp;", "Executive Biographies", "-Amir Nensey", "- Muhammed Nensey", "-Dilawar Nensey", "&nbsp;","News Releases", "Our Contacts", "Media Inquiry Form", "Terms of use")
	linkValue = new Array("main_mediaKitCompanyProfile.htm", "#", "main_MediaKitExecutive.htm", "main_mediaKitAmir.htm", "main_mediaKitMuhamed.htm", "main_mediaKitDilawar.htm", "#", "main_MediaKitOurReleases.htm", "main_MediaKitOurContacts.htm", "main_MediaKitCompanyInquiry.htm", "main_MediaKitTermsOfUse.htm")
	len=linkName.length
	document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='main_mediakit.htm' class='sp3'>Media Kit</a></td></tr>")		
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class='heading' href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

function workWithUs(){
	linkName = new Array( "What we stands for", "Our working environment", "Find your place here", "Training academy")
	linkValue = new Array("career_whatwe.htm", "career_ourworkenvironment.htm", "career_findyour.htm", "training_academy.htm")
	len=linkName.length
	document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='main_career.htm' class='sp3'>Work with us</a></td></tr>")		
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a  href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

function emeraldClub(){
	linkName = new Array( "<b class='heading' style='color:336699'>Membership Benefits</b>", "Water Park", "Games", "Gymnasium", "Health Club", "Food & Drinks", "Golf Course",  "Cricket Academy", "&nbsp;", "<b class='heading' style='color:336699'> Membership Details</b>" )
	linkValue = new Array("emerald_memberBenefit.htm", "emerald_waterPark.htm", "emerald_Games.htm", "emerald_Gymnisium.htm", "emerald_healthClub.htm", "emerald_foodnDrinks.htm", "emerald_golfCouse.htm", "emerald_cricketAcademy.htm", "", "emerald_Membership.htm")
	len=linkName.length
		document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='main_emeraldClub.htm' class='sp3'>EMERALD CLUB</a></td></tr>")
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a  href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

function club(){
	linkName = new Array( "Emerald Club", "Golf Country Club")
	linkValue = new Array("main_emeraldClub.htm", "main_countryClub.htm")
	len=linkName.length
		document.write("<tr align='right' height=20><td style='border-bottom:dotted 1px #cccccc'><a href='main_emeraldClub.htm' class='sp3'>CLUBS</a></td></tr>")
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='right' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a  href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

//-----------------Start of Right Links-----------------------*/*
function resiLinks(){
	linkName = new Array( "Palms Island Villas", "Garden View Apts", "Moroccan Apts")
	linkValue = new Array("villas_main.htm", "golf_main.htm", "morr_main.htm")
	len=linkName.length
		for (i=0;i<len;i++){
			document.write("<tr  class='heading' align='left' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}

	linkName = new Array( "Few Apartments remaning")
	linkValue = new Array("")
	len=linkName.length
		for (i=0;i<len;i++){
			document.write("<tr  class='heading3' align='left' ><td>")
				 +linkName[i]+
				document.write(linkName[i])
			document.write("</td></tr>")
	}

	linkName = new Array(  "Palms Apartments I-Sold", "Lake View Apts II", "Summit Apartments")
	linkValue = new Array( "palm_main1.htm", "mys_main.htm", "summit_main.htm")
	len=linkName.length
		for (i=0;i<len;i++){
			document.write("<tr  class='heading' align='left' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}


}
function newlaunch(){
	linkName = new Array( "Ruby Isle apartment", "Diamond Isle Apartment", "Palm island apartment 1/2/3", "Palm island apartment 4", "Bungalow Plot")
	linkValue = new Array("ruby-isle.htm", "diamond-isle.htm", "palm3-island.htm", "palm4-island.htm", "plot_main.htm")
	len=linkName.length
		for (i=0;i<len;i++){
			document.write("<tr  class='heading' align='left' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

function newlaunch1(){
	linkName = new Array( "Picadally V", "Mastermind V", "Palm Island Apartment", "Palm Island Appt II")
	linkValue = new Array("picad_main1.htm", "master_main1.htm", "palms-island.htm", "palms2-island.htm")
	len=linkName.length
		for (i=0;i<len;i++){
			document.write("<tr  class='heading' align='left' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}
}

function commLinks(){
	linkName = new Array("Main Frame I", "Orchard Road Mall")
	linkValue = new Array("mainframe_main.htm", "orchard-road-mall.htm")
	len=linkName.length
		for (i=0;i<len;i++){
			document.write("<tr  class='heading' align='left' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}

}
function rentLinks(){
	linkName = new Array("Condos Furnished", "Condos Semi-Furnished", "Apartments - 1 BHK", "Apartments - 2 BHK", "Apartments - 3 BHK")
	linkValue = new Array("main_RentCondos.htm", "main_RentCondosSemiFurnished.htm", "main_Rent1BHK.htm", "main_Rent2BHK.htm", "main_Rent3BHK.htm")
	len=linkName.length
		for (i=0;i<len;i++){
			document.write("<tr class='heading' align='left' ><td>")
				"<a class=heading href="+linkValue[i]+">"+linkName[i]+"</a>"
				document.write("<a href="+linkValue[i]+">"+linkName[i])
			document.write("</td></tr>")
	}

}
//---------------------End of Right Links------------------
/*-----------------------For Bookmark the Site---------------------
By Munib on 11-Jan-05
---------------------------------------------------------------------*/
function bookMark(url, title){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")

}
//---------------------------End of Script-----------------------------


/*-----------------------For Bookmark the Site---------------------
By Munib on 11-Jan-05
---------------------------------------------------------------------*/
function whereru(){

	document.write("<select size='1' class='happen' onchange='location.href=this.value' style='width:140'>")
		document.write("<option value='#' selected style='color:blue'>Choose your topic</option>")
		document.write("<option value='articles.htm'>Articles</option>")	
		document.write("<option value='experience.htm'>Royal Palms World</option>")
		document.write("<option value='buyer.htm'>View Properties</option>")
		document.write("<option value='main_community.htm'>Community members</option>")
		document.write("<option value='member_club.htm'>Be a club member</option>")
		document.write("<option value='main_associate.htm'>Be an associate</option>")
		document.write("<option value='main_mediakit.htm'>Media kit</option>")
		document.write("<option value='main_career.htm'>Work with us</option>")
		document.write("<option value='main_aboutRoyalPalms.htm'>About Royal Palms</option>")
		document.write("<option value='main_aboutTheCompany.htm'>The Company</option>")
		document.write("<option value='index.htm'>Home</option>")
	document.write("</select>")
	
}
//---------------------------End of Script-----------------------------

function utility1(){
	document.write("<table align=right width='97%' border='0' cellspacing='0' cellpadding='0'>")
		  document.write ("<tr class='happen'>")
			document.write ("<td width='5%' align=left valing='bottom'><a href='javascript:window.print()'><img src='images/print.gif' border='0'></a></td>")
			document.write("<td width='10%' align =left style='color:#96CA58'><a class='happen' href='javascript:window.print()'>print</a>&nbsp;|&nbsp;</td>")
			document.write("<td width='5%' valing='bottom' align='left'><a href='mailto:realestate@royalpalmsindia.com'><img src='images/email.gif'  border='0'></a></td>")
			document.write("<td width='10%' align='left' style='color:#96CA58'><a href='mailto:realestate@royalpalmsindia.com' class=happen>email</a>&nbsp;|&nbsp;</td>")
			document.write("<td width='5%' valing='bottom' align='left'><a href='javascript:openSmallWin(\"mail_mailingList.htm\")'><img src='images/emailList.gif' border='0'></a></td>")
			document.write("<td  align='left'><a href='javascript:openSmallWin(\"mail_mailingList.htm\")' class=happen>update me</a></td>")
		  document.write("</tr>")
	 document.write("</table>")
}


function callMeSave(){
	//JScript example
	var fs = new ActiveXObject("Scripting.FileSystemObject"); 
	var TestFile = fs.CreateTextFile("c:\\testfile.txt", true); 
	TestFile.WriteLine("This is a test."); 

}	

//------------------------------------For Right side links---------------------------------------------
//alert(vd)
//if(ex.getDate()>20 || ex.getMonth()>3)
function callProperty(x){
	if (property[x].style.display=='block'){
		arrowUpDown[x].src='images/arrowDown.jpg'
		l=property[x].rows.length
		hideCCBox(property[x], l-1)
	}
	else{
		arrowUpDown[x].src='images/arrowUp.jpg'
		property[x].style.display='block'
		l=property[x].rows.length
		for (j=0;j<l;j++){
			property[x].rows[j].style.display='none'
		}
		showCCBox(property[x], l-1)
	}
}


ccBoxI=0
function showCCBox(x, l){
	y=x
	k=l
	if(ccBoxI < 100 || l>=0){ 
		if (l>=0)	x.rows[l].style.display='block'
		ccBoxI +=  Math.floor(100/(x.rows.length));
		x.style.filter='alpha(opacity='+ccBoxI+')'
		setTimeout('showCCBox(y, k-1)', 40);
	}
	else{
		ccBoxI=0
		
	}
}

ccBoxII=100
function hideCCBox(x, l){
	y=x
	k=l
	if(ccBoxII >= 0 && l>=0){ 
		x.rows[k].style.display='none'
		ccBoxII -=  100/x.rows.length;
//		window.status= ccBoxII
		x.style.filter='alpha(opacity='+ccBoxII+')'
		setTimeout('hideCCBox(y, k-1)', 40);
	}
	else{
		ccBoxII=100		
		x.style.display='none'
	}
}
//------------------------End of right side links--------------------------------

//-------------------------------------Function for Flash Add Banner-------------------------------------
function addbanner(x,y){
	if(y==1){
		if(x=='5star'){
			openMyWin('win_5star.htm')
		}
	}
	else{
		if(x=='mystique2'){
			location.href='mys_main.htm'
		}
		else if(x=='piccadilly'){
			location.href='picad_main1.htm'
		}
		else
			openMyWin('win_8investment.htm')

	}
}
//---------------------------------------------------End of Flash Add Banner-------------------------------