
function dummyModelScript() {
    var url = new EvUrl();
    
    if (!(typeof url.qs["part"] == "undefined") && !(typeof url.qs["part"] == "undefined")) {
        /*$("#productSpecs").hide();
        $("#productSpecs").css("border-top","1px dotted #000");
        $("#showSpecs").click(function(e) {
            e.preventDefault();
            $("#productSpecs").html($("#productDescription").html());
            $("#productSpecs").slideToggle()
        });
        $("#deliveryInfo").hover(function() {
            $("#addSpecs").html($("#deliveryDescription").html());
            $("#addSpecs").fadeIn()
        });
        $("#shippingInfo").mouseout(function () {
            $("#addSpecs").html($("#shippingDescription").html());
            $("#addSpecs").fadeOut();
        });
        $("#deliveryInfo").mouseout(function() {
            $("#addSpecs").html($("#deliveryDescription").html());
            $("#addSpecs").fadeOut();
        });*/
    }
}

$(document).ready(function() {  
  
    //Select all anchor tag with rel set to tooltip  
    $('span[rel=tooltip]').mouseover(function(e) {  
          
        //Grab the title attribute's value and assign it to a variable  
        var tip = $(this).attr('title');      
          
        //Remove the title attribute's to avoid the native tooltip from the browser  
        $(this).attr('title','');  
          
        //Append the tooltip template and its value
        if (tip.substring(0,1) == "#") {//It's a reference to an html element
            tipContent = $(tip).html();
            $(this).append('<div id="tooltip"><div class="tipHeader"></div><div class="tipBody">' + tipContent + '</div><div class="tipFooter"></div></div>');  
        } else //Use title text as tooltip
            $(this).append('<div id="tooltip"><div class="tipHeader"></div><div class="tipBody">' + tip + '</div><div class="tipFooter"></div></div>');       
          
        //Set the X and Y axis of the tooltip  
        $('#tooltip').css('top', e.pageY + 10 );  
        $('#tooltip').css('left', e.pageX + 20 );  
          
        //Show the tooltip with faceIn effect  
        $('#tooltip').fadeIn('500');  
        $('#tooltip').fadeTo('10',0.8);  
          
    }).mousemove(function(e) {  
      
        //Keep changing the X and Y axis for the tooltip, thus, the tooltip move along with the mouse  
        $('#tooltip').css('top', e.pageY - 100 );  
        $('#tooltip').css('left', e.pageX - 200 );  
          
    }).mouseout(function() {  
      
        //Put back the title attribute's value  
        $(this).attr('title',$('.tipBody').html());  
      
        //Remove the appended tooltip template  
        $(this).children('div#tooltip').remove();  
          
    });  
});  

function EvUrl() {
    var self=this;

    self.location = document.location.href;

    parts = self.location.split("?");
    self.request_url = parts[0];
    self.query_string = "";
    self.protocol = "";
    self.request_file="";
    self.qs = new Array();

    if (parts.length == 1) {
      return;
    }

    self.query_string = parts[1];

    var qsparts = self.query_string.split("&");
    
    for (qs in qsparts) {

        var tmp = qsparts[qs].split("=");
        
        self.qs[tmp[0]] = tmp[1];
        
    }

    self.request_url = parts[0];

    parts = self.request_url.split("/");
    self.protocol = parts[0];
    self.domain = parts[2];
    self.request_file = parts[parts.length-1];
}

$("body").ready(function() {
    dummyModelScript();
})

