	function uwmDetailType() {
		var type = jQuery("span[id='detailsTitle']").text();
		
		if(type == "") {
			type = jQuery("span[class='category']").text();
			if(type == "") {
				type = jQuery("span[class='vCateogry']").text();
				if(type == "") {
					type = jQuery("span[class='vCategory']").text();
				}
			}
		}
		
		uwmGetScriptPath(type);
	}
	function uwmGetScriptPath(type) {
		if(type == "NewNewNew") {var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ new_ctx.toString(), dataType: "script"})}
		if(type == "CertifiedCertifiedCertified") {var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ used_ctx.toString(), dataType: "script"})}
		if(type == "GM CertifiedGM CertifiedGM Certified") {var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ used_ctx.toString(), dataType: "script"})}
		if(type == "UsedUsedUsed"){var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ used_ctx.toString(), dataType: "script"})}
	
		//mobile
		if(type == "NewNew") {var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ new_ctx.toString(), dataType: "script"})}
		if(type == "CertifiedCertified") {var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ used_ctx.toString(), dataType: "script"})}
		if(type == "GM CertifiedGM Certified") {var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ used_ctx.toString(), dataType: "script"})}
		if(type == "UsedUsed"){var uwmCall = jQuery.ajax({type: "GET", url: "http://www.dealervideos.com/integration.svc/script/"+ used_ctx.toString(), dataType: "script"})}

	}
	jQuery(function() {uwmDetailType();});
