function flip(id1)
{

	if(document.getElementById(id1).style.visibility == "hidden")
	{
	  document.getElementById(id1).style.visibility = "visible";
	  document.getElementById(id1).style.display = "block"; 
  }
  else
  {
	  document.getElementById(id1).style.visibility = "hidden";
	 document.getElementById(id1).style.display = "none"; 
  }
}

function rflip(id1)
{
	if(document.getElementById("r"+id1).style.visibility == "hidden")
	{
	  document.getElementById("r"+id1).style.visibility = "visible";
	  document.getElementById("r"+id1).style.display = "block"; 
	   document.getElementById("plus"+id1).src = "/images/minus.png"; 
  }
  
    else
  {
	  document.getElementById("r"+id1).style.visibility = "hidden";
	 document.getElementById("r"+id1).style.display = "none"; 
	  document.getElementById("plus"+id1).src = "/images/plus.png"; 
  }
	
	
}


function flashFixer(ffile,fwidth,fheight)
{
	var flash = "<embed src=\""+ffile+"\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" menu=\"false\" width=\""+fwidth+"\" height=\""+fheight+"\"></embed>";
	document.write(flash);
}

function flashf2(ffile,fwidth,fheight)
{
	var flash = "<embed src=\""+ffile+"\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" menu=\"false\" width=\""+fwidth+"\" height=\""+fheight+"\"></embed>";
	return flash;
}

function podcast(file, pctitle)
{
	var flash = flashf2("/mp3Player.swf?where="+file+"&pctitle="+pctitle, 510, 35);

	document.write(flash);
}

function buttons()
{
	flashFixer("ppcButton.swf","170","107");
	document.write(" ");
	flashFixer("seoButton.swf","170","107");
	document.write(" ");
	flashFixer("webButton.swf","170","107");
	document.write(" ");
	flashFixer("affButton.swf","170","107");
	document.write(" ");
	flashFixer("emailButton.swf","170","107");
	document.write(" ");
	flashFixer("prButton.swf","170","107");
}

function formval()
{
	valid=true;

		if(document.enqform.name.value == "" || document.enqform.tel.value == "" || document.enqform.email.value == "" || document.enqform.tel.value == "")
		{
			alert("Please fill in all required fields  (*).");
			valid=false;
		}

	
	return valid;
}


function formval1(thisform)
{
	valid=true;
	with (thisform)
	{
		if(name.value == "" || tel.value == "" || email.value == "" || tel.value == "")
		{
			alert("Please fill in all required fields  (*).");
			valid=false;
		}
	}
	
	return valid;
}

function formval2(thisform)
{
	valid=true;
	with (thisform)
	{
		if(name.value == "" || email.value == "")
		{
			alert("Please fill in all required fields (*).");
			valid=false;
		}
	}
	
	return valid;
}



function ivemail(strEmail)
{
  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  strEmail = document.forms[0].email.value;

   // search email text for regular exp matches
    if (strEmail.search(validRegExp) == -1) 
   {
      
      return true;
    } 
    
    return false;
}

function youtube(url)
{
	var flash="<div style='position:relative;height:359px;'><div style='z-index:0;position:absolute;left:0;top:150px;width:100%;text-align:center'><img src=\"/images/loader.gif\" alt=\"Loading\"/></div><div style=\"margin: 0 auto;z-index:1;position:absolute;left:70px;top:0;\"><object width=\"425\" height=\"344\"><param name=\"movie\" value=\""+url+"\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\""+url+"\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" allowfullscreen=\"true\" width=\"425\" height=\"344\">		</embed>	</object></div></div>";
	document.write(flash);
}

function jsform()
{
	document.write("<input type=\"hidden\" name=\"spamqwbbbv\" value=\"sdajknj\">");
}