function showDropProd(){
	document.getElementById('sprod').style.visibility='visible';
}

function hideDropProd(){
	document.getElementById('sprod').style.visibility='hidden';
}

function showDropPress(){
	document.getElementById('spress').style.visibility='visible';
}

function hideDropPress(){
	document.getElementById('spress').style.visibility='hidden';
}

function showDropPurch(){
	document.getElementById('spurch').style.visibility='visible';
}

function hideDropPurch(){
	document.getElementById('spurch').style.visibility='hidden';
}

function popupUPC(){
	window.open('upc.html',null,'width=420,height=300,status=no,toolbar=no,scrollbars=no,menubar=no,location=no');
}

function landingHome()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='800' height='177' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/home.swf'><param name='quality' value='best'><PARAM name='loop' value='false'><embed src='swf/home.swf' loop='false' quality='best' width='800' height='177' valign='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function covers()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='580' height='640' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/covers.swf'><param name='quality' value='best'><PARAM name='loop' value='false'><embed src='swf/covers.swf' loop='false' quality='best' width='580' height='640' valign='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function normalToThin()   {
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='780' height='263' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/normaltothin.swf'><param name='quality' value='best'><PARAM name='loop' value='false'><embed src='swf/normaltothin.swf' loop='false' quality='best' width='780' height='263' valign='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function normalToThick()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='780' height='263' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/normaltothick.swf'><param name='quality' value='best'><PARAM name='loop' value='false'><embed src='swf/normaltothick.swf' loop='false' quality='best' width='780' height='263' valign='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function wavy()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='780' height='263' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/wavy.swf'><param name='quality' value='best'><PARAM name='loop' value='false'><embed src='swf/wavy.swf' loop='false' quality='best' width='780' height='263' valign='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function styling()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='780' height='263' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/styling.swf'><param name='quality' value='best'><PARAM name='loop' value='false'><embed src='swf/styling.swf' loop='false' quality='best' width='780' height='263' valign='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function showVideo(vid)   {
	document.write("<div style=\"text-align:center;\"><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='320' height='240' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/videoplayer.swf?video=swf/" + vid + "'><param name='quality' value='best'><param name='allowFullScreen' value='true'><PARAM name='loop' value='false'><embed src='swf/videoplayer.swf?video=swf/" + vid + "' loop='false' quality='best' width='320' height='240' valign='top' allowFullScreen='true' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object><div style=\"margin: 0 auto; width:94px; height:13px; padding-top:2px; background:url(images/sendtofriend.gif) no-repeat; \"><a class=\"sendtofriend\" href='mailto:&subject=Check this out&body=Check out this Sally Hershberger styling video at " + location.href + "'>Send to a friend</a></div></div>");
}


function showWideVideo(vid)   {
	document.write("<div style=\"text-align:center;\"><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='504' height='288' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/videoplayerhome.swf?video_path=swf/" + vid + "'><param name='quality' value='best'><param name='allowFullScreen' value='true'><param name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/videoplayerhome.swf?video_path=swf/" + vid + "' loop='false' quality='best' width='504' height='288' valign='top' wmode='transparent' allowFullScreen='true' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></div>");
}

function showWideVideo(vid)   {
	document.write("<div style=\"text-align:center;\"><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='504' height='288' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/videoplayerhome.swf?video_path=swf/" + vid + "'><param name='quality' value='best'><param name='allowFullScreen' value='true'><param name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/videoplayerhome.swf?video_path=swf/" + vid + "' loop='false' quality='best' width='504' height='288' valign='top' wmode='transparent' allowFullScreen='true' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></div>");
}

function showHSNVideo(vid)   {
	document.write("<div class=\"hsn-video\"><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='320' height='240' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/videoplayer-hsn.swf?video_path=swf/HSN.flv'><param name='quality' value='best'><param name='allowFullScreen' value='true'><param name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/videoplayer-hsn.swf?video_path=swf/HSN.flv' loop='false' quality='best' width='320' height='240' valign='top' wmode='transparent' allowFullScreen='true' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></div>");
}

function showBRollVideo(vid)   {
	//document.write("<div style=\"text-align:center;\"><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='420' height='236' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/videoplayer-broll.swf?video_path=swf/SHAGG_B-roll.flv'><param name='quality' value='best'><param name='allowFullScreen' value='true'><param name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/videoplayer-broll.swf?video_path=swf/SHAGG_B-roll.flv' loop='false' quality='best' width='420' height='236' valign='top' wmode='transparent' allowFullScreen='true' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></div>");
	document.write("<div style=\"text-align:center;\"><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' id='broll_video' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='420' height='236' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/broll_player_w_callback.swf?video_path=swf/SHAGG_B-roll.flv'><param name='quality' value='best'><param name='allowFullScreen' value='true'><param name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/broll_player_w_callback.swf?video_path=swf/SHAGG_B-roll.flv' loop='false' quality='best' width='420' height='236' valign='top' wmode='transparent' allowFullScreen='true' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></div>");
}

function vidPlayer(vid,title){
document.getElementById('vplayer').innerHTML= "<div style=\"text-align:center; padding:0; margin:0; \"><h3>" + title +"</h3><br /><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='320' height='240' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/videoplayer.swf?video=swf/" + vid + "&autop'><param name='allowFullScreen' value='true'><param name='quality' value='best'><PARAM name='loop' value='false'><embed src='swf/videoplayer.swf?video=swf/" + vid + "&autop' loop='false' allowFullScreen='true' quality='best' width='320' height='240' valign='top' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object><div style=\"margin: 0 auto; width:94px; height:13px; padding-top:2px; background:url(images/sendtofriend.gif) no-repeat; \"><a class=\"sendtofriend\" href='mailto:&subject=Check this out&body=Check out this Sally Hershberger styling video at " + location.href + "'>Send to a friend</a></div></div>"
}

function formWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function easySexyModern()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='450' height='90' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/mainheader.swf'><param name='quality' value='best'><PARAM name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/mainheader.swf' loop='false' quality='best' width='450' height='90' valign='top' wmode='transparent' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
	//document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='450' height='90' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/mainheader_starstyle2.swf'><param name='quality' value='best'><PARAM name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/mainheader_starstyle2.swf' loop='false' quality='best' width='450' height='90' valign='top' wmode='transparent' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function homelayers()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='450' height='215' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/home-layers.swf'><param name='quality' value='best'><PARAM name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/home-layers.swf' loop='false' quality='best' width='450' height='215' valign='top' wmode='transparent' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");	
}

function carousel()   {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='700' height='360' valign='top'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='swf/carousel.swf'><param name='quality' value='best'><PARAM name='wmode' value='transparent'><PARAM name='loop' value='false'><embed src='swf/carousel.swf' loop='false' quality='best' width='700' height='360' valign='top' wmode='transparent' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");	
}


 if(window.attachEvent)
    window.attachEvent("onload",setListeners);

  function setListeners(){
    inputList = document.getElementsByTagName("INPUT");
    for(i=0;i<inputList.length;i++){
      inputList[i].attachEvent("onpropertychange",restoreStyles);
      inputList[i].style.backgroundColor = "";
    }
    selectList = document.getElementsByTagName("SELECT");
    for(i=0;i<selectList.length;i++){
      selectList[i].attachEvent("onpropertychange",restoreStyles);
      selectList[i].style.backgroundColor = "";
    }
  }

  function restoreStyles(){
    if(event.srcElement.style.backgroundColor != "")
      event.srcElement.style.backgroundColor = "";
  }
  
  
// hover for salon images //
window.onload = initThumbs;
window.onunload = function() {}
			
function initThumbs() {
	var salonThumbs = document.getElementsByClassName('th_salon');
	for (var i = 0; i < salonThumbs.length; i++) {
		salonThumbs[i].onmouseover = addBorder;
		salonThumbs[i].onmouseout = removeBorder;
	}
}

function addBorder() {
	this.className = "th_active";
}

function removeBorder() {
	this.className = "th_salon";
}

/* make getElementsByClassName crossbrowser compatible */
if (!document.getElementsByClassName)
{
document.getElementsByClassName = function (cn)
	{
	var rx = new RegExp("\\b" + cn + "\\b"), allT = document.getElementsByTagName("*"), allCN = [], i = 0, a;
	while (a = allT[i++])
		if (rx.test(a.className))
			allCN.push(a);
	return allCN;
	}
}
