
	$(function(){
		
		/* mini calculator launcher */
			
		$.fn.colorbox.settings.opacity = "0.35"; 
		$.fn.colorbox.settings.transition = "none";
		$.fn.colorbox.settings.initialWidth = "417";
		
		$("a[href='/roi/mini.html']").colorbox({initialHeight:"550", href:"/products/popups/index-bom.html"});
		if (jQuery.browser.msie){
			if(parseInt(jQuery.browser.version) < 8) {
				$("a[href='/roi/mini.html']").colorbox({width:"417", height:"605", iframe:true, href:"/roi/mini.html"});
				$("a[href='/roi/mini.html?parent=pricing']").colorbox({width:"417", height:"555", iframe:true, href:"/roi/mini.html?parent=pricing"});
			}
			else {
				$("a[href='/roi/mini.html']").colorbox({width:"417", height:"575", iframe:true, href:"/roi/mini.html"});
				$("a[href='/roi/mini.html?parent=pricing']").colorbox({width:"417", height:"525", iframe:true, href:"/roi/mini.html?parent=pricing"});
			}
		}
		else{
			$("a[href='/roi/mini.html']").colorbox({width:"417", height:"575", iframe:true, href:"/roi/mini.html"});
			$("a[href='/roi/mini.html?parent=pricing']").colorbox({width:"417", height:"525", iframe:true, href:"/roi/mini.html?parent=pricing"});
		}
		
		if ($.url.param("parent") == "pricing"){
			$("#offer").wrap("<div style='display:none;'></div>");
		}
		
		/* qtips function */
		$.fn.qtip.styles.customStyle = {// Last part is the name of the style
			color:"#36393d",
			width:225,
			border:{
				width:2,
				radius:4
			},
			name:"blue",
			tip:true
		}/*
		$.fn.qtip.styles.customStyle2 = {// Last part is the name of the style
			color:"#36393d",
			width:245,
			border:{
				width:2,
				radius:4
			},
			name:"blue",
			tip:true
		}*/
		$('.tooltip:eq(0)').qtip({
			content: "Include engineering, operations, manufacturing, quality and document control team members &mdash; anyone who actively engages in or facilitates the design process.",
			style: 'customStyle',
			position: {corner: {target: 'rightMiddle', tooltip: 'leftMiddle'}}
		})
		$('.tooltip:eq(1)').qtip({
			content: "Typical small-to-midsize manufacturers process between 1 and 25 ECOs (engineering change orders) per month.",
			style: 'customStyle',
			position: {corner: {target: 'rightMiddle', tooltip: 'leftMiddle'}}
		})
		$('.tooltip:eq(2)').qtip({
			content: "&ldquo;Scrap&rdquo; includes the parts and components you buy, build or ship that can&rsquo;t be used and need to be recycled or thrown away. Most companies&rsquo; annual scrap budget is 0.5% to 4% of direct material spend.",
			style: 'customStyle',
			position: {corner: {target: 'rightMiddle', tooltip: 'leftMiddle'}}
		})
		$('.tooltip:eq(3)').qtip({
			content: "<strong style='display:block;text-transform:uppercase;'>How your ROI was calculated</strong><br />We&rsquo;ve taken the 3 most common benefits our customers experience from using Arena and put them into a simple calculator.<br /><br /><strong>Typical Arena benefits:</strong><ul style='padding-left:14px;'><li>Increased product development efficiency of 5%-18%</li><li>Reduction in scrap of 15%-75%</li><li>Reduction of ECO processing time of 3-25 hours</li></ul>To be conservative, this calculator uses the lower range of each benefit, and a $50/hour fully burdened labor rate.",
			style: 'customStyle',
			position: {corner: {target: 'topMiddle', tooltip: 'bottomMiddle'}}
		})
	});