function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
$(document).ready(function(){
var pdfpath=getParameterByName("file",window.location.href);
$("#cbs_pdf_embed_object").attr("data",pdfpath);
$("#cbs_pdf_embed").attr("src",pdfpath);
$("#cbs_pdf_embed_href").attr("href",pdfpath);
});
$(document).ready(function(){
var Title=getParameterByName("Title",window.location.href);
if(Title)
{
$("#lastBreadCrumbNode").text(Title.trim());
$("#pdfDocTitle").text(Title.trim());
}
});