

jQuery(function() {
							
	jQuery('#vwCPO_CA').remove();	
	
	var dealerUrl = pageUrlUtility.getBaseHref();
	
	jQuery('#layoutWrapper').append("<div id='cpoStoryWrapper'><div id='cpoStoryHeading'><ul id='cpoStoryLinks'> <li id='cpoStoryLink1'> <a target='_blank' href='http://www.vw.com/preowned/vwmodels/en/us/'>&nbsp;</a></li> <li id='cpoStoryLink2'> <a href='"+dealerUrl+"VehicleSearchResults?search=preowned&make=Volkswagen&cs:a:i=vw_CPOStory'>&nbsp;</a></li> <li id='cpoStoryLink3'> <a target='_blank' href='http://www.vw.com/vwoffers/en/us/?offertype=preowned'>&nbsp;</a></li></ul><div id='cpoStorySearch'> <a href='"+dealerUrl+"VehicleSearchResults?search=certified&make=Volkswagen&cs:a:i=vw_CPOStory'> <img src='http://assets.cobaltnitra.com/teams/repository/export/920/e01a8e8731004811d10145edef087/920e01a8e8731004811d10145edef087.jpg' alt='Search Inventory' title='Search Inventory' /></a></div> <a id='cpoStoryLegal'href='javascript: void(0)'>Legal</a></div><div id='cpoStoryContent'><div id='cpoStoryContentDisc'><p id='cpoStoryClose'>x Close</p><div><img src='http://assets.cobaltnitra.com/teams/repository/export/a31/d1e70e8871004811d10145edef087/a31d1e70e8871004811d10145edef087.jpg' alt='*Whichever comes first. See dealer for details. *Intellichoice non-luxury overall award' /></div></div><div id='cpoStoryContentMain'><div> <img src='http://assets.cobaltnitra.com/teams/repository/export/a34/c2968e8871004811d10145edef087/a34c2968e8871004811d10145edef087.jpg' alt='Buying a used car can make you feel, well, used' /></div></div><div style='clear:both;'></div></div></div>");		

jQuery('#layoutWrapper').css('margin','0');				
jQuery('#cpoStoryWrapper').css({'font-size':'12px','font-family':'Arial,Geneva,Helvetica,sans-serif','color':'#666'}).find("#cpoStoryHeading").css({'position':'relative','width':'1000px','height':'342px','background':'url(http://assets.cobaltnitra.com/teams/repository/export/91d/71af8e8731004811d10145edef087/91d71af8e8731004811d10145edef087.jpg) no-repeat'}).parent().find('#cpoStoryContent').css({'background':'#E1E1E1','padding':'25px','color':'#666'});					
jQuery('#cpoStoryLinks').css({'list-style':'none','position':'absolute','top':'140px','margin':'0','padding':'0','left':'55px'}).find("a").css({'color':'#fff','font-size':'12px','font-weight':'bold','text-decoration':'none','line-height':'18px'});			
jQuery('#cpoStorySearch').css({'position':'absolute','top':'60px','left':'810px'});
jQuery('#cpoStorySearch img,#cpoStorySearch a').css({'border':'none','text-decoration':'none'});			
jQuery('#cpoStoryContentDisc').css({'float':'left','background':'#fff','width':'200px','display':'none'}).find('div').css('margin','10px').parent().find('p').css({'width':'50px','position':'relative','left':'155px','top':'5px','margin':'0 0 20px 0','padding':'0','cursor':'pointer','font-size':'9px'});
jQuery('#cpoStoryContentMain').css({'float':'right','background':'#fff','width':'725px','display':'inline','line-height':'18px'}).find('div').css('margin','10px');
jQuery('#cpoStoryLegal').css({'text-decoration':'none','outline':'none','color':'#fff','position':'absolute','top':'325px','left':'210px','font-size':'10px'});

jQuery('p.cpoFirstParagraph').css('font-size','14px');

jQuery('#cpoStoryLink1 a, #cpoStoryLink2 a, #cpoStoryLink3 a').css({'margin-bottom':'5px','display':'block','background':'url(http://assets.cobaltnitra.com/teams/repository/export/def/44248e8af10048b1f10145edef087/def44248e8af10048b1f10145edef087.png) no-repeat','width':'160px','height':'16px','overflow':'hidden'});

//jQuery('#cpoStoryLink1').css('');
jQuery('#cpoStoryLink2 a').css('background-position','0 -17px');
jQuery('#cpoStoryLink3 a').css('background-position','0 -34px');
 
  if(jQuery.browser.msie && jQuery.browser.version=="6.0")
  {
	jQuery('#cpoStoryLink1 a, #cpoStoryLink2 a, #cpoStoryLink3 a').css({'background':'none'});   
	jQuery('#cpoStoryLink1 a').html('See Used VW Models');
	jQuery('#cpoStoryLink2 a').html('Search Used VW Inventory');
	jQuery('#cpoStoryLink3 a').html('Used VW Special Offers');
  }   
  
  
	jQuery('#cpoStoryLegal').hover(function(){
		jQuery(this).css('text-decoration','underline');							
	},function(){
		jQuery(this).css('text-decoration','none');
	});
							
	jQuery('#cpoStoryLegal').click(function(){
		jQuery('#cpoStoryContentDisc').fadeIn(500);
	});
	jQuery('#cpoStoryClose').click(function(){
		jQuery('#cpoStoryContentDisc').fadeOut(300);
	});
	
	
});
