// Open Window Support
function OpenWin(URL,width,height){
    var Features ="'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600'";
    var NewWin = window.open(URL,"win",Features);
    NewWin.focus();
}

function openWin(URL,width,height){
	OpenWin(URL,width,height);
}
// End Open Window Support


// Open Window Security Code
function OpenWin8(URL,width,height){
    var Features ="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=450'";
    var NewWin = window.open(URL,"win",Features);
    NewWin.focus();
}

function openWin8(URL,width,height){
	OpenWin8(URL,width,height);
}
// End Open Window Security Code

// Open Window Samples
function OpenWin9(URL,width,height){
    var Features ="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600'";
    var NewWin = window.open(URL,"win",Features);
    NewWin.focus();
}

function openWin9(URL,width,height){
	OpenWin9(URL,width,height);
}
// End Open Window Samples

// Open Window Send 2 Friend
function OpenWin1(URL,width,height){
    var Features ="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=400'";
    var NewWin = window.open(URL,"win",Features);
    NewWin.focus();
}

function openWin1(URL,width,height){
	OpenWin1(URL,width,height);
}
// End Open Window Send 2 Friend


// Open Window Client History
function OpenWin2(URL,width,height){
    var Features ="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=350,height=400'";
    var NewWin = window.open(URL,"win",Features);
    NewWin.focus();
}

function openWin2(URL,width,height){
	OpenWin2(URL,width,height);
}
// End Open Window Client History


// Open Window Client Add
function OpenWin3(URL,width,height){
    var Features ="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=515,height=325'";
    var NewWin = window.open(URL,"win",Features);
    NewWin.focus();
}

function openWin3(URL,width,height){
	OpenWin3(URL,width,height);
}
// End Open Window Client Add

// Begin Bookmark Code
<!-- Begin

var bookmarkurl="http://www.saloncenter.com?"
var bookmarktitle="My hair stylists' website (SalonCenter.com)"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

//  End -->
// End Bookmark Code

// Start Rollover Scripts

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}





function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




// End Rollover Scrips



// Rollover Buttons on header.ascx

 

// if (document.images) {

//            img1on = new Image();

//            img1on.src = "images/home2.jpg";


 

// Im on

//           img1off = new Image();

 //           img1off.src = "images/home.jpg";

 

// img off

//            img1ad = new Image();

 //           img1ad.src = "images/home2.jpg";

 

// Function to activate images

 

//function imgOn(imgName) {

 //           if (document.images) {

                        //document[imgName].src = eval(imgName + "on.src");

                        //document["holder"].src = eval(imgName + "ad.src");

            //}

//}

// Function to deactivate images

 

//function imgOff(imgName) {

            //if (document.images) {

                       // document[imgName].src = eval(imgName + "off.src");

                       // document["holder"].src = "images/spacer.gif";

           // }

//}


/*------------------------------------------------------------
	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
	Web Site: http://txkang.com
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)
	
	Please retain this copyright notice in the script.
	License is granted to user to reuse this code on 
	their own website if, and only if, 
	this entire copyright notice is included.
--------------------------------------------------------------*/

//Specify affected tags. Add or remove from list:
var tgs = new Array( 'div','td','tr');

//Specify spectrum of different font sizes:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
	if (!document.getElementById) return
	var d = document,cEl = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
		
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

	cEl.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}
