// JavaScript Document
if (navigator.appVersion.indexOf('MSIE 6.0') != -1){

document.writeln('<style>');
document.writeln('#strServcQual {display:none;');
document.writeln('	position:absolute; ');
document.writeln('	left:50%; ');
document.writeln('	margin-left:-178px;');
document.writeln('	padding-left:35px;');
document.writeln('	top:200px; ');
document.writeln('	width: 380px; ');
document.writeln('	height: 234px;');
document.writeln('	background: url(/assets/images/hm_segments_bck.jpg) no-repeat; ');
document.writeln('	z-index:99999');
document.writeln('}');
document.writeln('#str_overlay {background:#000000;');
document.writeln('	display:none;');
document.writeln('	position:absolute;');
document.writeln('	top:0px; left:0px; ');
document.writeln('	right:0px; width:100%; ');
document.writeln('	height:100%; ');
document.writeln('	overflow:hidden; ');
document.writeln('	z-index:3200');
document.writeln('}');
document.writeln('</style>');
document.writeln('<div id="str_overlay" style="" onClick="CloseIt();"></div>');
document.writeln('<div id="strServcQual">');
document.writeln('<div id="qualframe"></div>');
document.writeln('</div>');

}else{
document.writeln('<style>');
document.writeln('#strServcQual {display:none;');
document.writeln('	position:fixed; ');
document.writeln('	left:50%; ');
document.writeln('	margin-left:-178px;');
document.writeln('	padding-left:35px;');
document.writeln('	top: 200px; ');
document.writeln('	width: 380px; ');
document.writeln('	height: 234px;');
document.writeln('	background: url(/assets/images/hm_segments_bck.jpg) no-repeat; ');
document.writeln('	z-index:99999');
document.writeln('}');
document.writeln('#str_overlay {background:#000000;');
document.writeln('	display:none;');
document.writeln('	position:fixed;');
document.writeln('	top:0px; left:0px; ');
document.writeln('	right:0px; width:100%; ');
document.writeln('	height:100%; ');
document.writeln('	overflow:hidden; ');
document.writeln('	z-index:3200');
document.writeln('}');
document.writeln('</style>');
document.writeln('<div id="str_overlay" style="" onClick="CloseIt();"></div>');
document.writeln('<div id="strServcQual">');
document.writeln('<div id="qualframe"></div>');
document.writeln('</div>');
}



ua   = navigator.userAgent.toLowerCase();
ie6  = (ua.indexOf("MSIE 7.0") && document.all && ua.indexOf("netscape") == -1);
var intNumber;

function CloseIt()
{
	document.getElementById('strServcQual').style.display='none';
	document.getElementById('str_overlay').style.display='none';
	var objFlash=document.getElementById('flashSlider');
	if (objFlash!=null)
	{
		document.getElementById('flashSlider').style.display='block'
		}else{
			//do nothing
		}
	
	
}
function changeOpac() { 
	document.getElementById('str_overlay').style.display="block";
	var object = document.getElementById('str_overlay').style; 
    object.opacity = (70 / 100); 
    object.MozOpacity = (70 / 100); 
    object.KhtmlOpacity = (70 / 100); 
    object.filter = "alpha(opacity=70)"; 
	
} 

function checkService(number)
{
	if (navigator.appVersion.indexOf('MSIE 6.0') != -1){
        var xWithScroll = document.documentElement.scrollTop;
		var intTop = eval(xWithScroll + 200);	
		document.getElementById('strServcQual').style.display='block';
		document.getElementById('strServcQual').style.top=intTop;
		document.getElementById('str_overlay').style.top=xWithScroll;
		document.getElementById('qualframe').innerHTML='<iframe style="width: 380px; height: 234px" src="/assets/qualform.html?vertical=' + number + '" frameborder="0" width="376" scrolling="no"></iframe>';
		changeOpac();
	}else{
         document.getElementById('qualframe').innerHTML='<iframe style="width: 380px; height: 234px" src="/assets/qualform.html?vertical=' + number + '" frameborder="0" width="376" scrolling="no"></iframe>'
	  document.getElementById('strServcQual').style.display='block';
	  changeOpac();
  }
}

