if ( typeof _gaq != "undefined" ) { var QueryString = function () { // This function is anonymous, is executed immediately and // the return value is assigned to QueryString! var query_string = {}; var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i-1){ bookurl = bookurl.substr(0,bookurl.indexOf("?")); } if ( typeof pageid != "undefined" ) QueryString["startid"] = pageid; for ( var p in QueryString ) { if ( p=="" || p==undefined ) continue; bookurl += ( bookurl.indexOf("?")==-1 ? "?" : "&" ) + p + "=" + QueryString[p]; } _gaq.push( ['_trackPageview', bookurl ], ['b._trackPageview', bookurl] ); } }