// Standard toneee.com functions
document.write('<meta http-equiv="Page-Enter" content="blendTrans(Duration=1.0)"> <meta http-equiv="Page-Exit" content="blendTrans(Duration=1.0)"> <meta http-equiv="Site-Enter" content="blendTrans(Duration=3.0)"> <meta http-equiv="Site-Exit" content="blendTrans(Duration=3.0)"><META HTTP-EQUIV="imagetoolbar" CONTENT="no">');

var urlAddress = "http://www.chenesebean.com"; var pageName = "Chenese Bean- Professional Make-Up Artist";

function add2fav() {
	if (window.external) {
		window.external.AddFavorite(urlAddress,pageName) 
	} else {
		alert("Unfortunately your browser does not allow website bookmarking using Javascript. Please use your browser menus to bookmark our website. Thanks."); 
	}
}

function NewWindow(mypage,myname,w,h,pos,infocus,l,t,sb){
<!--width should be 780 on 03/30/03, and height of compcard is ~479 -->
if((pos!='center' && pos!="random") || pos==null){myleft=l;mytop=t}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=" + sb + ",location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no";
win=window.open(mypage,myname,settings);
win.focus();
}

//By toneee.com
//Used to control video
function loadMediaJoint(url1){
	VIDEO.URL='http://www.chenesebean.com/media/'+url1;
}

function getMORE(){
	window.open("/docs/084-086_attitudeflorist.pdf","_docChenese1");
}

function getWhatsNew(){
	window.open("/docs/BenGals 06-07.pdf","_docChenese1");
}

function launchDVD(){
	NewWindow("/press.shtml#","_docCheneseLinks",700,600,0,0,10,5,"no");
	MuteBackgroundMusic();
}

function joinNow(){
	NewWindow("/joinnow2.shtml#","_docCheneseLinks2",315,80,0,0,500,30,"no");
}

function getLinks(scroll2){
	NewWindow("/links.shtml#"+scroll2,"_docCheneseLinks",715,600,0,0,10,5,"no");
}

function getBio(){
	window.open("/docs/bio-20060920.pdf","_docChenese1");
}

function getBridalRates(){
	window.open("/docs/bridal_brochure.pdf","_docChenese1");
}

function getBridalCalendar(){
//	window.open("/docs/2007_CALENDAR.pdf","_docChenese1");
	window.open("http://www.chenesebean.com/calendar/","_docChenese1");
}

function getFeature(){
	window.open("/docs/mckenzieONEALwedding.pdf","_docChenese1");
}

function getRez(){
	window.open("/docs/webREZ.pdf","_docChenese1");
}

function sendEmail(){}

function copyBanner(who1) {
	document.f_banner1.elements['b' + who1].select();
	document.f_banner1.elements['b' + who1].focus();				
	textRange = document.f_banner1.elements['b' + who1].createTextRange();
	textRange.execCommand("RemoveFormat");
	textRange.execCommand("Copy");
	alert("This code has been copied to your clipboard.\nSimply insert the Chenese Bean banner code (HTML) into your webapge.");
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function MuteBackgroundMusic()
{
     var flashMovie=getFlashMovieObject("mainChenese");
     flashMovie.SetVariable("/:soundstatus", 
          "off");
}

function PlayBackgroundMusic()
{
     var flashMovie=getFlashMovieObject("mainChenese");
     flashMovie.SetVariable("/:soundstatus", 
          "on");
}
