﻿$(document).ready( function(){  
  $("#product_content_area h4.component_style,#product_content_area.component_style h4").corners("transparent");
  $("#roundtest").corners("5px");
});

/*for tooltip*/

function showtips() {


    $('body').append("<div id='tipcontent' style='display:none;'>Genuine Windows® software is published by Microsoft and licensed and supported by Microsoft or an authorized licensor. Genuine software helps protect you from the risks of counterfeit software, provides you with special benefits and the experience and support you expect. Learn more by visiting <a href='http://www.microsoft.com/Genuine' target='_blank'>www.microsoft.com/Genuine</a></div>");

    var whichtd = $("#spectable td:contains('Genuine'):first");
	 if(whichtd.html()!=null){
		var whichtd_text = whichtd.html().toString();
		var newtext = whichtd_text.replace(new RegExp("Genuine", "gi"), "<a class='showtooltip' href='#' onclick='return false;'>Genuine</a>");   
		whichtd.html(newtext);
	}
	
    var whichfab = $("#model_intro:contains('Genuine'):first");
	if(whichfab.html()!=null){
   		whichfab.html(whichfab.html().toString().replace(new RegExp("Genuine", "gi"), "<a class='showtooltip' href='#' onclick='return false;'>Genuine</a>"));
	}
    whichall = whichtd.add(whichfab);
	

    $('a.showtooltip', whichall).bt({
        padding: 20,
        width: 300,
        contentSelector: "$('div#tipcontent')",
        spikeLength: 10,
        spikeGirth: 10,
        positions: ['bottom', 'left'],
        centerPointX: 0.1,
        hoverIntentOpts: { timeout: 1500 },
        fill: 'rgba(255, 255, 255, 1)',
        strokeWidth: 0,
        cssStyles: { color: '#fff', background: '#000', border: '1px solid #666' }
    });
	  
}
