// JavaScript Document
Event.onDOMReady(function() {
	new Contact(); 
	/*	business	*/
	try {
		sIFR.replaceElement(named({
			sSelector: "div#contactcrumb-zone dd span.sifr",
			sFlashSrc: SIFR_SLAB_PATH,
			sColor: "#333333",
			sHoverColor: "#990000",
			sWmode: "transparent"
		}));
	}catch(e){}
	try{
		sIFR.replaceElement(named({sSelector:"div#contactcrumb-zone dd span.sifr-selected", sFlashSrc: SIFR_SLAB_PATH, sColor:"#990000", sHoverColor:"#990000", sWmode:"transparent"}));
	}catch(e){}
	
	/* IE layer styling */
	if(self != top)
	{
		$$('#toolbar-layer-contact .main-contact-block')[0].setStyle({
			paddingTop: '0'
		});
		$('footer-position-wrapper').setStyle({
			backgroundColor: '#E7E8EB'
		});
	}
	
	
});

var Contact = Class.create();

Contact.prototype = {

	initialize: function() {
		if(top!=self) {
			this.crop();
		}
	},
	crop: function() {
		document.body.style.backgroundImage = "url('')";
		/*document.body.style.backgroundColor = '#e7e8eb';	why*/
		if($('logo')) $('logo').style.display = 'none';
		if($('header-zone')) $('header-zone').style.display = 'none';
		if($('toolbar-zone')) $('toolbar-zone').style.display = 'none';
		if($('breadcrumb-zone')) $('breadcrumb-zone').style.display = 'none';
		if($('footer-zone')) $('footer-zone').style.display = 'none';
		if($('content-zone')) $('content-zone').style.marginLeft = '0px';
		if($('toolbar-layer-contact')) {
			$('toolbar-layer-contact').style.top = '0px';
			$('toolbar-layer-contact').style.left = '0px';
		}
		parent.showContactIFrame();
		
		Event.observe(window,'unload',function() {parent.hideContactIFrame();}.bindAsEventListener(this));
		
	}
}


