// JavaScript Document

function popForm(t) {
	
}

			
function launchr() {
//	alert("hello");
//	alert(pagename);
			$(document).ready(function(){
				//Examples of how to assign the ColorBox event to elements
/*				$("a[rel='example1']").colorbox();
				$("a[rel='example2']").colorbox({transition:"fade"});
				$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='example4']").colorbox({slideshow:true});
				$(".single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});*/
				$(".colorbox").colorbox({initialWidth:"30", initialHeight:"30",width:480, height:400, iframe:true, scrolling:false});/**/
/*	 			$(".youtube").colorbox({iframe:true, width:650, height:550});
				$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
				$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});*/
			});	
	if(pagename=="services") {
		var params = {};
		params.wmode = "transparent"; 
		//alert("hello");
		swfobject.embedSWF("swf/synthcycle.swf", "aniholder", "520", "262", "9.0.0", "expressInstall.swf", "", "", params);
//	}	
//	if(pagename=="services") {// || pageName=="order" || pageName=="ourstory") {

		// tabbed content
		var tabs;
		 // Address handler
		$.address.init(function(event) {
		   // Tabs setup
		   	//if(browserName!="Microsoft Internet Explorer")	{
		//		tabs = $('#swapbox').tabs(	{ fx: { height: 'show', duration: 'slow' }}).css('text-indent', '0');
			//	tabs = $('#servetabs').tabs(	{ fx: { opacity: 'show', duration: 'fast'  }}).css('text-indent', '0');
				tabs = $('#servetabs').tabs().css('text-indent', '0');
//		alert(tabs);		collapsible: true, 
			//}	else {
			//	tabs = $('#swapbox').tabs().css('text-indent', '0');
			//}
				// Content filter
				//load: function(event, ui) {
				   // $(ui.panel).html($('#tabs div:first', ui.panel).html());
				//},
				//selected: $('#tabs ul:first a').index($('a[rel=address:' + event.value + ']'))
									  
//             }).css('display', 'block'); }
		}).change(function(event) {
			var selection = $('a[rel=address:' + event.value + ']');
			tabs.tabs('select', selection.attr('href'));
		   // $.address.title($.address.title().split(' | ')[0] + ' | ' + selection.text());
		});	
		// Graceful FOUC
		document.write('<style type="text/css"> #swapbox { text-indent:-9999px; } </style>');
		
		
	}
	
	if(typeof sIFR == "function"){		
	//	sIFR.replaceElement("h1", named({sFlashSrc: "swf/centurygothic.swf", sColor: "#aa0000", sWmode: "transparent"}))
	//	sIFR.replaceElement("h2", named({sFlashSrc: "swf/centurygothic.swf", sColor: "#aa0000", sWmode: "transparent"}))
	//	sIFR.replaceElement("h3", named({sFlashSrc: "swf/centurygothic.swf", sColor: "#aa0000", sWmode: "transparent"}))
	//	sIFR.replaceElement("h3", named({sFlashSrc: "swf/centurygothicbold.swf", sColor: "#cc6600", sWmode: "transparent"}))

	};
	
}