");=0A=
$("#TB_overlay").click(tb_remove);=0A=
}=0A=
}=0A=
=0A=
if(caption=3D=3D=3Dnull){caption=3D"";}=0A=
$("body").append("
");//add loader to the page=0A=
$('#TB_load').show();//show loader=0A=
=0A=
var baseURL;=0A=
if(url.indexOf("?")!=3D=3D-1){ //ff there is a query string involved=0A=
baseURL =3D url.substr(0, url.indexOf("?"));=0A=
}else{ =0A=
baseURL =3D url;=0A=
}=0A=
=0A=
var urlString =3D /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;=0A=
var urlType =3D baseURL.toLowerCase().match(urlString);=0A=
=0A=
if(urlType =3D=3D '.jpg' || urlType =3D=3D '.jpeg' || urlType =3D=3D =
'.png' || urlType =3D=3D '.gif' || urlType =3D=3D '.bmp'){//code to show =
images=0A=
=0A=
TB_PrevCaption =3D "";=0A=
TB_PrevURL =3D "";=0A=
TB_PrevHTML =3D "";=0A=
TB_NextCaption =3D "";=0A=
TB_NextURL =3D "";=0A=
TB_NextHTML =3D "";=0A=
TB_imageCount =3D "";=0A=
TB_FoundURL =3D false;=0A=
if(imageGroup){=0A=
TB_TempArray =3D $("a[@rel=3D"+imageGroup+"]").get();=0A=
for (TB_Counter =3D 0; ((TB_Counter < TB_TempArray.length) && =
(TB_NextHTML =3D=3D=3D "")); TB_Counter++) {=0A=
var urlTypeTemp =3D =
TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);=0A=
if (!(TB_TempArray[TB_Counter].href =3D=3D url)) { =0A=
if (TB_FoundURL) {=0A=
TB_NextCaption =3D TB_TempArray[TB_Counter].title;=0A=
TB_NextURL =3D TB_TempArray[TB_Counter].href;=0A=
TB_NextHTML =3D "
Next > ";=0A=
} else {=0A=
TB_PrevCaption =3D TB_TempArray[TB_Counter].title;=0A=
TB_PrevURL =3D TB_TempArray[TB_Counter].href;=0A=
TB_PrevHTML =3D "
< Prev ";=0A=
}=0A=
} else {=0A=
TB_FoundURL =3D true;=0A=
TB_imageCount =3D "Image " + (TB_Counter + 1) +" of "+ =
(TB_TempArray.length); =0A=
}=0A=
}=0A=
}=0A=
=0A=
imgPreloader =3D new Image();=0A=
imgPreloader.onload =3D function(){ =0A=
imgPreloader.onload =3D null;=0A=
=0A=
// Resizing large images - orginal by Christian Montoya edited by me.=0A=
var pagesize =3D tb_getPageSize();=0A=
var x =3D pagesize[0] - 150;=0A=
var y =3D pagesize[1] - 150;=0A=
var imageWidth =3D imgPreloader.width;=0A=
var imageHeight =3D imgPreloader.height;=0A=
if (imageWidth > x) {=0A=
imageHeight =3D imageHeight * (x / imageWidth); =0A=
imageWidth =3D x; =0A=
if (imageHeight > y) { =0A=
imageWidth =3D imageWidth * (y / imageHeight); =0A=
imageHeight =3D y; =0A=
}=0A=
} else if (imageHeight > y) { =0A=
imageWidth =3D imageWidth * (y / imageHeight); =0A=
imageHeight =3D y; =0A=
if (imageWidth > x) { =0A=
imageHeight =3D imageHeight * (x / imageWidth); =0A=
imageWidth =3D x;=0A=
}=0A=
}=0A=
// End Resizing=0A=
=0A=
TB_WIDTH =3D imageWidth + 30;=0A=
TB_HEIGHT =3D imageHeight + 60;=0A=
$("#TB_window").append("
" + "
"+caption+"
" + TB_imageCount + TB_PrevHTML + TB_NextHTML + =
"
"); =0A=
=0A=
$("#TB_closeWindowButton").click(tb_remove);=0A=
=0A=
if (!(TB_PrevHTML =3D=3D=3D "")) {=0A=
function goPrev(){=0A=
=
if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev)=
;}=0A=
$("#TB_window").remove();=0A=
$("body").append("
");=0A=
tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);=0A=
return false; =0A=
}=0A=
$("#TB_prev").click(goPrev);=0A=
}=0A=
=0A=
if (!(TB_NextHTML =3D=3D=3D "")) { =0A=
function goNext(){=0A=
$("#TB_window").remove();=0A=
$("body").append("
");=0A=
tb_show(TB_NextCaption, TB_NextURL, imageGroup); =0A=
return false; =0A=
}=0A=
$("#TB_next").click(goNext);=0A=
=0A=
}=0A=
=0A=
document.onkeydown =3D function(e){ =0A=
if (e =3D=3D null) { // ie=0A=
keycode =3D event.keyCode;=0A=
} else { // mozilla=0A=
keycode =3D e.which;=0A=
}=0A=
if(keycode =3D=3D 27){ // close=0A=
tb_remove();=0A=
} else if(keycode =3D=3D 190){ // display previous image=0A=
if(!(TB_NextHTML =3D=3D "")){=0A=
document.onkeydown =3D "";=0A=
goNext();=0A=
}=0A=
} else if(keycode =3D=3D 188){ // display next image=0A=
if(!(TB_PrevHTML =3D=3D "")){=0A=
document.onkeydown =3D "";=0A=
goPrev();=0A=
}=0A=
} =0A=
};=0A=
=0A=
tb_position();=0A=
$("#TB_load").remove();=0A=
$("#TB_ImageOff").click(tb_remove);=0A=
$("#TB_window").css({display:"block"}); //for safari using css =
instead of show=0A=
};=0A=
=0A=
imgPreloader.src =3D url;=0A=
}else{//code to show html pages=0A=
=0A=
var queryString =3D url.replace(/^[^\?]+\??/,'');=0A=
var params =3D tb_parseQuery( queryString );=0A=
=0A=
TB_WIDTH =3D (params['width']*1) + 30 || 630; //defaults to 630 if no =
paramaters were added to URL=0A=
TB_HEIGHT =3D (params['height']*1) + 40 || 440; //defaults to 440 if =
no paramaters were added to URL=0A=
ajaxContentW =3D TB_WIDTH - 30;=0A=
ajaxContentH =3D TB_HEIGHT - 45;=0A=
=0A=
if(url.indexOf('TB_iframe') !=3D -1){ =0A=
urlNoQuery =3D url.split('TB_'); =0A=
$("#TB_window").append("
");=0A=
}else{=0A=
if($("#TB_window").css("display") !=3D "block"){=0A=
if(params['modal'] !=3D "true"){=0A=
$("#TB_window").append("
");=0A=
}else{=0A=
$("#TB_overlay").unbind();=0A=
$("#TB_window").append("
"); =0A=
}=0A=
}else{=0A=
$("#TB_ajaxContent")[0].style.width =3D ajaxContentW +"px";=0A=
$("#TB_ajaxContent")[0].style.height =3D ajaxContentH +"px";=0A=
$("#TB_ajaxContent")[0].scrollTop =3D 0;=0A=
$("#TB_ajaxWindowTitle").html(caption);=0A=
}=0A=
}=0A=
=0A=
$("#TB_closeWindowButton").click(tb_remove);=0A=
=0A=
if(url.indexOf('TB_inline') !=3D -1){ =0A=
$("#TB_ajaxContent").html($('#' + params['inlineId']).html());=0A=
tb_position();=0A=
$("#TB_load").remove();=0A=
$("#TB_window").css({display:"block"}); =0A=
}else if(url.indexOf('TB_iframe') !=3D -1){=0A=
tb_position();=0A=
if(frames['TB_iframeContent'] =3D=3D=3D undefined){//be nice to =
safari=0A=
$("#TB_load").remove();=0A=
$("#TB_window").css({display:"block"});=0A=
$(document).keyup( function(e){ var key =3D e.keyCode; if(key =
=3D=3D 27){tb_remove();}});=0A=
}=0A=
}else{=0A=
$("#TB_ajaxContent").load(url +=3D "&random=3D" + (new =
Date().getTime()),function(){//to do a post change this load method=0A=
tb_position();=0A=
$("#TB_load").remove();=0A=
tb_init("#TB_ajaxContent a.thickbox");=0A=
$("#TB_window").css({display:"block"});=0A=
});=0A=
}=0A=
=0A=
}=0A=
=0A=
if(!params['modal']){=0A=
document.onkeyup =3D function(e){ =0A=
if (e =3D=3D null) { // ie=0A=
keycode =3D event.keyCode;=0A=
} else { // mozilla=0A=
keycode =3D e.which;=0A=
}=0A=
if(keycode =3D=3D 27){ // close=0A=
tb_remove();=0A=
} =0A=
};=0A=
}=0A=
=0A=
} catch(e) {=0A=
//nothing here=0A=
}=0A=
}=0A=
=0A=
//helper functions below=0A=
function tb_showIframe(){=0A=
$("#TB_load").remove();=0A=
$("#TB_window").css({display:"block"});=0A=
}=0A=
=0A=
function tb_remove() {=0A=
$("#TB_imageOff").unbind("click");=0A=
$("#TB_overlay").unbind("click");=0A=
$("#TB_closeWindowButton").unbind("click");=0A=
=
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_H=
ideSelect').remove();});=0A=
$("#TB_load").remove();=0A=
if (typeof document.body.style.maxHeight =3D=3D "undefined") {//if IE 6=0A=
$("body","html").css({height: "auto", width: "auto"});=0A=
$("html").css("overflow","");=0A=
}=0A=
document.onkeydown =3D "";=0A=
return false;=0A=
}=0A=
=0A=
function tb_position() {=0A=
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + =
'px', width: TB_WIDTH + 'px'});=0A=
if ( !(jQuery.browser.msie && typeof XMLHttpRequest =3D=3D 'function')) =
{ // take away IE6=0A=
$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + =
'px'});=0A=
}=0A=
}=0A=
=0A=
function tb_parseQuery ( query ) {=0A=
var Params =3D {};=0A=
if ( ! query ) {return Params;}// return empty object=0A=
var Pairs =3D query.split(/[;&]/);=0A=
for ( var i =3D 0; i < Pairs.length; i++ ) {=0A=
var KeyVal =3D Pairs[i].split('=3D');=0A=
if ( ! KeyVal || KeyVal.length !=3D 2 ) {continue;}=0A=
var key =3D unescape( KeyVal[0] );=0A=
var val =3D unescape( KeyVal[1] );=0A=
val =3D val.replace(/\+/g, ' ');=0A=
Params[key] =3D val;=0A=
}=0A=
return Params;=0A=
}=0A=
=0A=
function tb_getPageSize(){=0A=
var de =3D document.documentElement;=0A=
var w =3D window.innerWidth || self.innerWidth || (de&&de.clientWidth) =
|| document.body.clientWidth;=0A=
var h =3D window.innerHeight || self.innerHeight || =
(de&&de.clientHeight) || document.body.clientHeight;=0A=
arrayPageSize =3D [w,h];=0A=
return arrayPageSize;=0A=
}=0A=
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.theenterprisebulletin.com/js/global.js
function=20
PopUp(URL, w, h) {
day =3D new Date();
id =3D day.getTime();
eval("page" + id + " =3D window.open(URL, '" + id + "', =
'toolbar=3D0,scrollbars=3D1,location=3D0,statusbar=3D1,menubar=3D0,resiza=
ble=3D1,width=3D" +w+ ",height=3D" +h+ "');");
}
// a =3D url
// b =3D param list=20
// c =3D GET || POST
// d =3D div id
function
getAlertAjax(a, b, c, d) {
$.ajax({
url: a,
type: c,
dataType: 'text', =20
data: b,
async: false,
timeout: 1000,
error: function(request, msg){
alert('Error retrieveing data - please try again later!');
},
success: function(r){
// do something with xml =20
$("#"+d).html( r );
}
});
}
function
gotoPublication(a) {
if (a.indexOf("http://") > -1) {
window.location.href =3D a;
}
}
function
vote(a, b, c, t) {
$.ajax({
url: '/VotingService.asmx/Vote',
type: 'GET',
dataType: 'xml', =20
data: "cid=3D"+c+"&ctid=3D"+b+"&v=3D"+a,
timeout: 10000,
error: function(request, errtype){
alert('Error voting - please try again later!');
},
success: function(xml){
// do something with xml =20
if ( $("return", xml).text() =3D=3D 0 ) {
$("#tooltip").hide();
$("#"+t+c).html( $("up", xml).text() + " Thumbs Up | " + $("down", =
xml).text() + " Thumbs Down");
$("#vbtn"+c).html( "" );
} else if ( $("return", xml).text() =3D=3D 1 ) {
//alert("Already Voted!");
$("#tooltip").hide();
$("#"+t+c).html( $("up", xml).text() + " Thumbs Up | " + $("down", =
xml).text() + " Thumbs Down");
$("#vbtn"+c).html( "" );
} else if ( $("return", xml).text() =3D=3D 3 ) {
alert("Missing a value");
} else {
alert("Must be logged in to vote");
}
}
});
}
function
Save(a, b) {
$.ajax({
url: '/Account/Clipboard/Clipboard.asmx/AddToClipboard',
type: 'POST',
dataType: 'xml', =20
data: "a=3D"+a+"&b=3D"+b,
timeout: 10000,
error: function(request, errtype){
alert(request.responseText);
alert('Error saving - please try again later!');
},
success: function(xml){
// do something with xml =20
if ( $("int", xml).text() =3D=3D 0 ) {
alert("Saved to Clipboard\nYour clipboard can be found under =
Account > My Clipboard");
} else if ( $("int", xml).text() =3D=3D 1 ) {
//alert("You must be logged in to save an article.");
tb_show('Login', =
'/Remote/Login.aspx?continue=3D%2FRemote%2Fdone%2Easpx%3Fa%3D'+a+ =
'%26b%3D'+b+'&TB_iframe=3Dtrue&height=3D300&width=3D500',false);
} else if ( $("int", xml).text() =3D=3D 2 ) {
alert("Article already saved to Clipboard\nYour clipboard can be =
found under Account > My Clipboard");
} else {
alert("Unknown error (" + $("int", xml).text() + ") occurred. =
Please try again later.");
}
}
});
}
function
Save2(a, b) {
$.ajax({
url: '/Account/Clipboard/Clipboard.asmx/AddToClipboard',
type: 'POST',
dataType: 'xml', =20
data: "a=3D"+a+"&b=3D"+b,
timeout: 10000,
error: function(request, errtype){
alert(request.responseText);
alert('Error saving - please try again later!');
},
success: function(xml){
// do something with xml =20
if ( $("int", xml).text() =3D=3D 0 ) {
alert("Article saved");
top.tb_remove();
} else if ( $("int", xml).text() =3D=3D 1 ) {
//alert("You must be logged in to save an article.");
//tb_show('Login', =
'/Remote/Login.aspx?continue=3D%2FRemote%2Fdone%2Easpx%3Fa%3D'+a+ =
'%26b%3D'+b+'&TB_iframe=3Dtrue&height=3D300&width=3D500',false);
} else if ( $("int", xml).text() =3D=3D 2 ) {
alert("Article already saved.");
top.tb_remove();
} else {
alert("Unknown error (" + $("int", xml).text() + ") occurred. =
Please try again later.");
top.tb_remove();
}
}
});
}
function=20
WriteDate(){
var today =3D new Date();
var months =3D new Array(
"January", "February", "March", "April",=20
"May", "June", "July", "August", "September",=20
"October", "November", "December"
);
var m =3D today.getMonth();
var d =3D today.getDate();=09
var y =3D today.getFullYear();=09
document.write(months[m] + " " + d + ", " + y);
}
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.theenterprisebulletin.com/js/hover.js
=EF=BB=BFvar menu_obj =3D null;
function checkHover() {
if (menu_obj) {
menu_obj.find('ul').css('display', 'none');=09
} //if
} //checkHover
$(document).ready(function() {
$('.Menu > li').hover(function() {
if (menu_obj) {
menu_obj.find('ul').css('display', 'none');
menu_obj =3D null;
} //if
=09
$(this).find('ul').css('display', 'block');
}, function() {
menu_obj =3D $(this);
setTimeout(
"checkHover()",
100);
});
$('.subMenu > li').hover(function() {
//$(this).css('background-color', 'Black');
$(this).find('a').css('color', 'White');
}, function() {
$(this).css('background-color', '');
$(this).find('a').css('color', '');
});
});
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.theenterprisebulletin.com/js/jquery.lightbox-0.5.js
/**
* jQuery lightBox plugin
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh =
Dhakar (http://www.huddletogether.com/projects/lightbox2/)
* and adapted to me for use like a plugin from jQuery.
* @name jquery-lightbox-0.5.js
* @author Leandro Vieira Pinho - http://leandrovieira.com
* @version 0.5
* @date April 11, 2008
* @category jQuery plugin
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
* @license CC Attribution-No Derivative Works 2.5 Brazil - =
http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for =
more informations about this jQuery plugin
*/
// Offering a Custom Alias suport - More info: =
http://docs.jquery.com/Plugins/Authoring#Custom_Alias
(function($) {
/**
* $ is an alias to jQuery object
*
*/
$.fn.lightBox =3D function(settings) {
// Settings to configure the jQuery lightBox plugin how you like
settings =3D jQuery.extend({
// Configuration related to overlay
overlayBgColor: '#000', // (string) Background color to overlay; =
inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the =
hexadecimal values for the red, green, and blue values of the color.
overlayOpacity: 0.8, // (integer) Opacity value to overlay; =
inform: 0.X. Where X are number from 0 to 9
// Configuration related to navigation
fixedNavigation: false, // (boolean) Boolean that informs if the =
navigation (next and prev button) will be fixed or not in the interface.
// Configuration related to images
imageLoading: '/images/lightbox/lightbox-ico-loading.gif', // =
(string) Path and the name of the loading icon
imageBtnPrev: '/images/lightbox/lightbox-btn-prev.gif', // =
(string) Path and the name of the prev button image
imageBtnNext: '/images/lightbox/lightbox-btn-next.gif', // =
(string) Path and the name of the next button image
imageBtnClose: '/images/lightbox/lightbox-btn-close.gif', // =
(string) Path and the name of the close btn
imageBlank: '/images/lightbox/lightbox-blank.gif', // (string) =
Path and the name of a blank image (one pixel)
// Configuration related to container image box
containerBorderSize: 10, // (integer) If you adjust the padding in =
the CSS for the container, #lightbox-container-image-box, you will need =
to update this value
containerResizeSpeed: 400, // (integer) Specify the resize duration =
of container image. These number are miliseconds. 400 is default.
// Configuration related to texts in caption. For example: Image 2 of =
8. You can alter either "Image" and "of" texts.
txtImage: 'Image', // (string) Specify text "Image"
txtOf: 'of', // (string) Specify text "of"
// Configuration related to keyboard navigation
keyToClose: 'c', // (string) (c =3D close) Letter to close the =
jQuery lightBox interface. Beyond this letter, the letter X and the =
SCAPE key is used to.
keyToPrev: 'p', // (string) (p =3D previous) Letter to show the =
previous image
keyToNext: 'n', // (string) (n =3D next) Letter to show the next =
image.
// Don=B4t alter these variables in any way
imageArray: [],
activeImage: 0
},settings);
// Caching the jQuery object with all elements matched
var jQueryMatchedObj =3D this; // This, in this context, refer to =
jQuery object
/**
* Initializing the plugin calling the start function
*
* @return boolean false
*/
function _initialize() {
_start(this,jQueryMatchedObj); // This, in this context, refer to =
object (link) which the user have clicked
return false; // Avoid the browser following the link
}
/**
* Start the jQuery lightBox plugin
*
* @param object objClicked The object (link) whick the user have =
clicked
* @param object jQueryMatchedObj The jQuery object with all elements =
matched
*/
function _start(objClicked,jQueryMatchedObj) {
// Hime some elements to avoid conflict with overlay in IE. These =
elements appear above the overlay.
$('embed, object, select').css({ 'visibility' : 'hidden' });
// Call the function to create the markup structure; style some =
elements; assign events in some elements.
_set_interface();
// Unset total images in imageArray
settings.imageArray.length =3D 0;
// Unset image active information
settings.activeImage =3D 0;
// We have an image set? Or just an image? Let=B4s see it.
if ( jQueryMatchedObj.length =3D=3D 1 ) {
settings.imageArray.push(new =
Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')));=
} else {
// Add an Array (as many as we have), with href and title atributes, =
inside the Array that storage the images references =09
for ( var i =3D 0; i < jQueryMatchedObj.length; i++ ) {
settings.imageArray.push(new =
Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAtt=
ribute('title')));
}
}
while ( settings.imageArray[settings.activeImage][0] !=3D =
objClicked.getAttribute('href') ) {
settings.activeImage++;
}
// Call the function that prepares image exibition
_set_image_to_view();
}
/**
* Create the jQuery lightBox plugin interface
*
* The HTML markup will be like that:
*
*/
function _set_interface() {
// Apply the HTML markup into body tag
$('body').append('
');=09
// Get page sizes
var arrPageSizes =3D ___getPageSize();
// Style overlay and show it
$('#jquery-overlay').css({
backgroundColor: settings.overlayBgColor,
opacity: settings.overlayOpacity,
width: arrPageSizes[0],
height: arrPageSizes[1]
}).fadeIn();
// Get page scroll
var arrPageScroll =3D ___getPageScroll();
// Calculate top and left offset for the jquery-lightbox div object =
and show it
$('#jquery-lightbox').css({
top: arrPageScroll[1] + (arrPageSizes[3] / 10),
left: arrPageScroll[0]
}).show();
// Assigning click events in elements to close overlay
$('#jquery-overlay,#jquery-lightbox').click(function() {
_finish(); =09
});
// Assign the _finish function to lightbox-loading-link and =
lightbox-secNav-btnClose objects
=
$('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function() {
_finish();
return false;
});
// If window was resized, calculate the new overlay dimensions
$(window).resize(function() {
// Get page sizes
var arrPageSizes =3D ___getPageSize();
// Style overlay and show it
$('#jquery-overlay').css({
width: arrPageSizes[0],
height: arrPageSizes[1]
});
// Get page scroll
var arrPageScroll =3D ___getPageScroll();
// Calculate top and left offset for the jquery-lightbox div object =
and show it
$('#jquery-lightbox').css({
top: arrPageScroll[1] + (arrPageSizes[3] / 10),
left: arrPageScroll[0]
});
});
}
/**
* Prepares image exibition; doing a image=B4s preloader to calculate =
it=B4s size
*
*/
function _set_image_to_view() { // show the loading
// Show the loading
$('#lightbox-loading').show();
if ( settings.fixedNavigation ) {
=
$('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-det=
ails-currentNumber').hide();
} else {
// Hide some elements
=
$('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnN=
ext,#lightbox-container-image-data-box,#lightbox-image-details-currentNum=
ber').hide();
}
// Image preload process
var objImagePreloader =3D new Image();
objImagePreloader.onload =3D function() {
=
$('#lightbox-image').attr('src',settings.imageArray[settings.activeImage]=
[0]);
// Perfomance an effect in the image container resizing it
=
_resize_container_image_box(objImagePreloader.width,objImagePreloader.hei=
ght);
// clear onLoad, IE behaves irratically with animated gifs otherwise
objImagePreloader.onload=3Dfunction(){};
};
objImagePreloader.src =3D =
settings.imageArray[settings.activeImage][0];
};
/**
* Perfomance an effect in the image container resizing it
*
* @param integer intImageWidth The image=B4s width that will be =
showed
* @param integer intImageHeight The image=B4s height that will be =
showed
*/
function _resize_container_image_box(intImageWidth,intImageHeight) {
// Get current width and height
var intCurrentWidth =3D $('#lightbox-container-image-box').width();
var intCurrentHeight =3D $('#lightbox-container-image-box').height();
// Get the width and height of the selected image plus the padding
var intWidth =3D (intImageWidth + (settings.containerBorderSize * =
2)); // Plus the image=B4s width and the left and right padding value
var intHeight =3D (intImageHeight + (settings.containerBorderSize * =
2)); // Plus the image=B4s height and the left and right padding value
// Diferences
var intDiffW =3D intCurrentWidth - intWidth;
var intDiffH =3D intCurrentHeight - intHeight;
// Perfomance the effect
$('#lightbox-container-image-box').animate({ width: intWidth, height: =
intHeight },settings.containerResizeSpeed,function() { _show_image(); =
});
if ( ( intDiffW =3D=3D 0 ) && ( intDiffH =3D=3D 0 ) ) {
if ( $.browser.msie ) {
___pause(250);
} else {
___pause(100);=09
}
}=20
$('#lightbox-container-image-data-box').css({ width: intImageWidth =
});
$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ height: =
intImageHeight + (settings.containerBorderSize * 2) });
};
/**
* Show the prepared image
*
*/
function _show_image() {
$('#lightbox-loading').hide();
$('#lightbox-image').fadeIn(function() {
_show_image_data();
_set_navigation();
});
_preload_neighbor_images();
};
/**
* Show the image information
*
*/
function _show_image_data() {
$('#lightbox-container-image-data-box').slideDown('fast');
$('#lightbox-image-details-caption').hide();
if ( settings.imageArray[settings.activeImage][1] ) {
=
$('#lightbox-image-details-caption').html(settings.imageArray[settings.ac=
tiveImage][1]).show();
}
// If we have a image set, display 'Image X of X'
if ( settings.imageArray.length > 1 ) {
$('#lightbox-image-details-currentNumber').html(settings.txtImage + =
' ' + ( settings.activeImage + 1 ) + ' ' + settings.txtOf + ' ' + =
settings.imageArray.length).show();
} =09
}
/**
* Display the button navigations
*
*/
function _set_navigation() {
$('#lightbox-nav').show();
// Instead to define this configuration in CSS file, we define here. =
And it=B4s need to IE. Just.
$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ 'background' : =
'transparent url(' + settings.imageBlank + ') no-repeat' });
=09
// Show the prev button, if not the first image in set
if ( settings.activeImage !=3D 0 ) {
if ( settings.fixedNavigation ) {
$('#lightbox-nav-btnPrev').css({ 'background' : 'url(' + =
settings.imageBtnPrev + ') left 0% no-repeat' })
.unbind()
.bind('click',function() {
settings.activeImage =3D settings.activeImage - 1;
_set_image_to_view();
return false;
});
} else {
// Show the images button for Next buttons
$('#lightbox-nav-btnPrev').unbind().hover(function() {
$(this).css({ 'background' : 'url(' + settings.imageBtnPrev + ') =
left 0% no-repeat' });
},function() {
$(this).css({ 'background' : 'transparent url(' + =
settings.imageBlank + ') no-repeat' });
}).show().bind('click',function() {
settings.activeImage =3D settings.activeImage - 1;
_set_image_to_view();
return false;
});
}
}
=09
// Show the next button, if not the last image in set
if ( settings.activeImage !=3D ( settings.imageArray.length -1 ) ) {
if ( settings.fixedNavigation ) {
$('#lightbox-nav-btnNext').css({ 'background' : 'url(' + =
settings.imageBtnNext + ') right 0% no-repeat' })
.unbind()
.bind('click',function() {
settings.activeImage =3D settings.activeImage + 1;
_set_image_to_view();
return false;
});
} else {
// Show the images button for Next buttons
$('#lightbox-nav-btnNext').unbind().hover(function() {
$(this).css({ 'background' : 'url(' + settings.imageBtnNext + ') =
right 0% no-repeat' });
},function() {
$(this).css({ 'background' : 'transparent url(' + =
settings.imageBlank + ') no-repeat' });
}).show().bind('click',function() {
settings.activeImage =3D settings.activeImage + 1;
_set_image_to_view();
return false;
});
}
}
// Enable keyboard navigation
_enable_keyboard_navigation();
}
/**
* Enable a support to keyboard navigation
*
*/
function _enable_keyboard_navigation() {
$(document).keydown(function(objEvent) {
_keyboard_action(objEvent);
});
}
/**
* Disable the support to keyboard navigation
*
*/
function _disable_keyboard_navigation() {
$(document).unbind();
}
/**
* Perform the keyboard actions
*
*/
function _keyboard_action(objEvent) {
// To ie
if ( objEvent =3D=3D null ) {
keycode =3D event.keyCode;
escapeKey =3D 27;
// To Mozilla
} else {
keycode =3D objEvent.keyCode;
escapeKey =3D objEvent.DOM_VK_ESCAPE;
}
// Get the key in lower case form
key =3D String.fromCharCode(keycode).toLowerCase();
// Verify the keys to close the ligthBox
if ( ( key =3D=3D settings.keyToClose ) || ( key =3D=3D 'x' ) || ( =
keycode =3D=3D escapeKey ) ) {
_finish();
}
// Verify the key to show the previous image
if ( ( key =3D=3D settings.keyToPrev ) || ( keycode =3D=3D 37 ) ) {
// If we=B4re not showing the first image, call the previous
if ( settings.activeImage !=3D 0 ) {
settings.activeImage =3D settings.activeImage - 1;
_set_image_to_view();
_disable_keyboard_navigation();
}
}
// Verify the key to show the next image
if ( ( key =3D=3D settings.keyToNext ) || ( keycode =3D=3D 39 ) ) {
// If we=B4re not showing the last image, call the next
if ( settings.activeImage !=3D ( settings.imageArray.length - 1 ) ) =
{
settings.activeImage =3D settings.activeImage + 1;
_set_image_to_view();
_disable_keyboard_navigation();
}
}
}
/**
* Preload prev and next images being showed
*
*/
function _preload_neighbor_images() {
if ( (settings.imageArray.length -1) > settings.activeImage ) {
objNext =3D new Image();
objNext.src =3D settings.imageArray[settings.activeImage + 1][0];
}
if ( settings.activeImage > 0 ) {
objPrev =3D new Image();
objPrev.src =3D settings.imageArray[settings.activeImage -1][0];
}
}
/**
* Remove jQuery lightBox plugin HTML markup
*
*/
function _finish() {
$('#jquery-lightbox').remove();
$('#jquery-overlay').fadeOut(function() { =
$('#jquery-overlay').remove(); });
// Show some elements to avoid conflict with overlay in IE. These =
elements appear above the overlay.
$('embed, object, select').css({ 'visibility' : 'visible' });
}
/**
/ THIRD FUNCTION
* getPageSize() by quirksmode.com
*
* @return Array Return an array with page width, height and window =
width, height
*/
function ___getPageSize() {
var xScroll, yScroll;
if (window.innerHeight && window.scrollMaxY) {=09
xScroll =3D window.innerWidth + window.scrollMaxX;
yScroll =3D window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offsetHeight){ =
// all but Explorer Mac
xScroll =3D document.body.scrollWidth;
yScroll =3D document.body.scrollHeight;
} else { // Explorer Mac...would also work in Explorer 6 Strict, =
Mozilla and Safari
xScroll =3D document.body.offsetWidth;
yScroll =3D document.body.offsetHeight;
}
var windowWidth, windowHeight;
if (self.innerHeight) { // all except Explorer
if(document.documentElement.clientWidth){
windowWidth =3D document.documentElement.clientWidth;=20
} else {
windowWidth =3D self.innerWidth;
}
windowHeight =3D self.innerHeight;
} else if (document.documentElement && =
document.documentElement.clientHeight) { // Explorer 6 Strict Mode
windowWidth =3D document.documentElement.clientWidth;
windowHeight =3D document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowWidth =3D document.body.clientWidth;
windowHeight =3D document.body.clientHeight;
}=09
// for small pages with total height less then height of the viewport
if(yScroll < windowHeight){
pageHeight =3D windowHeight;
} else {=20
pageHeight =3D yScroll;
}
// for small pages with total width less then width of the viewport
if(xScroll < windowWidth){=09
pageWidth =3D xScroll; =09
} else {
pageWidth =3D windowWidth;
}
arrayPageSize =3D new =
Array(pageWidth,pageHeight,windowWidth,windowHeight);
return arrayPageSize;
};
/**
/ THIRD FUNCTION
* getPageScroll() by quirksmode.com
*
* @return Array Return an array with x,y page scroll values.
*/
function ___getPageScroll() {
var xScroll, yScroll;
if (self.pageYOffset) {
yScroll =3D self.pageYOffset;
xScroll =3D self.pageXOffset;
} else if (document.documentElement && =
document.documentElement.scrollTop) { // Explorer 6 Strict
yScroll =3D document.documentElement.scrollTop;
xScroll =3D document.documentElement.scrollLeft;
} else if (document.body) {// all other Explorers
yScroll =3D document.body.scrollTop;
xScroll =3D document.body.scrollLeft;=09
}
arrayPageScroll =3D new Array(xScroll,yScroll);
return arrayPageScroll;
};
/**
* Stop the code execution from a escified time in milisecond
*
*/
function ___pause(ms) {
var date =3D new Date();=20
curDate =3D null;
do { var curDate =3D new Date(); }
while ( curDate - date < ms);
};
// Return the jQuery object for chaining. The unbind method is used to =
avoid click conflict when the plugin is called more than once
return this.unbind('click').click(_initialize);
};
})(jQuery); // Call and execute the function immediately passing the =
jQuery object
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://myphotos.theenterprisebulletin.com/mycapture/include/ufo.js
/* Unobtrusive Flash Objects (UFO) v3.21 =
Copyright 2005, 2006 Bobby van der Sluis
This software is licensed under the CC-GNU LGPL =
*/
var UFO =3D {
req: ["movie", "width", "height", "majorversion", "build"],
opt: ["play", "loop", "menu", "quality", "scale", "salign", "wmode", =
"bgcolor", "base", "flashvars", "devicefont", "allowscriptaccess", =
"seamlesstabbing", "allowfullscreen"],
optAtt: ["id", "name", "align"],
optExc: ["swliveconnect"],
ximovie: "ufo.swf",
xiwidth: "215",
xiheight: "138",
ua: navigator.userAgent.toLowerCase(),
pluginType: "",
fv: [0,0],
foList: [],
=09
create: function(FO, id) {
if (!UFO.uaHas("w3cdom") || UFO.uaHas("ieMac")) return;
UFO.getFlashVersion();
UFO.foList[id] =3D UFO.updateFO(FO);
UFO.createCSS("#" + id, "visibility:hidden;");
UFO.domLoad(id);
},
updateFO: function(FO) {
if (typeof FO.xi !=3D "undefined" && FO.xi =3D=3D "true") {
if (typeof FO.ximovie =3D=3D "undefined") FO.ximovie =3D UFO.ximovie;
if (typeof FO.xiwidth =3D=3D "undefined") FO.xiwidth =3D UFO.xiwidth;
if (typeof FO.xiheight =3D=3D "undefined") FO.xiheight =3D =
UFO.xiheight;
}
FO.mainCalled =3D false;
return FO;
},
domLoad: function(id) {
var _t =3D setInterval(function() {
if ((document.getElementsByTagName("body")[0] !=3D null || =
document.body !=3D null) && document.getElementById(id) !=3D null) {
UFO.main(id);
clearInterval(_t);
}
}, 250);
if (typeof document.addEventListener !=3D "undefined") {
document.addEventListener("DOMContentLoaded", function() { =
UFO.main(id); clearInterval(_t); } , null); // Gecko, Opera 9+
}
},
main: function(id) {
var _fo =3D UFO.foList[id];
if (_fo.mainCalled) return;
UFO.foList[id].mainCalled =3D true;
document.getElementById(id).style.visibility =3D "hidden";
if (UFO.hasRequired(id)) {
if (UFO.hasFlashVersion(parseInt(_fo.majorversion, 10), =
parseInt(_fo.build, 10))) {
if (typeof _fo.setcontainercss !=3D "undefined" && =
_fo.setcontainercss =3D=3D "true") UFO.setContainerCSS(id);
UFO.writeSWF(id);
}
else if (_fo.xi =3D=3D "true" && UFO.hasFlashVersion(6, 65)) {
UFO.createDialog(id);
}
}
document.getElementById(id).style.visibility =3D "visible";
},
=09
createCSS: function(selector, declaration) {
var _h =3D document.getElementsByTagName("head")[0];=20
var _s =3D UFO.createElement("style");
if (!UFO.uaHas("ieWin")) =
_s.appendChild(document.createTextNode(selector + " {" + declaration + =
"}")); // bugs in IE/Win
_s.setAttribute("type", "text/css");
_s.setAttribute("media", "screen");=20
_h.appendChild(_s);
if (UFO.uaHas("ieWin") && document.styleSheets && =
document.styleSheets.length > 0) {
var _ls =3D document.styleSheets[document.styleSheets.length - 1];
if (typeof _ls.addRule =3D=3D "object") _ls.addRule(selector, =
declaration);
}
},
=09
setContainerCSS: function(id) {
var _fo =3D UFO.foList[id];
var _w =3D /%/.test(_fo.width) ? "" : "px";
var _h =3D /%/.test(_fo.height) ? "" : "px";
UFO.createCSS("#" + id, "width:" + _fo.width + _w +"; height:" + =
_fo.height + _h +";");
if (_fo.width =3D=3D "100%") {
UFO.createCSS("body", "margin-left:0; margin-right:0; padding-left:0; =
padding-right:0;");
}
if (_fo.height =3D=3D "100%") {
UFO.createCSS("html", "height:100%; overflow:hidden;");
UFO.createCSS("body", "margin-top:0; margin-bottom:0; padding-top:0; =
padding-bottom:0; height:100%;");
}
},
createElement: function(el) {
return (UFO.uaHas("xml") && typeof document.createElementNS !=3D =
"undefined") ? document.createElementNS("http://www.w3.org/1999/xhtml", =
el) : document.createElement(el);
},
createObjParam: function(el, aName, aValue) {
var _p =3D UFO.createElement("param");
_p.setAttribute("name", aName);=09
_p.setAttribute("value", aValue);
el.appendChild(_p);
},
uaHas: function(ft) {
var _u =3D UFO.ua;
switch(ft) {
case "w3cdom":
return (typeof document.getElementById !=3D "undefined" && typeof =
document.getElementsByTagName !=3D "undefined" && (typeof =
document.createElement !=3D "undefined" || typeof =
document.createElementNS !=3D "undefined"));
case "xml":
var _m =3D document.getElementsByTagName("meta");
var _l =3D _m.length;
for (var i =3D 0; i < _l; i++) {
if (/content-type/i.test(_m[i].getAttribute("http-equiv")) && =
/xml/i.test(_m[i].getAttribute("content"))) return true;
}
return false;
case "ieMac":
return /msie/.test(_u) && !/opera/.test(_u) && /mac/.test(_u);
case "ieWin":
return /msie/.test(_u) && !/opera/.test(_u) && /win/.test(_u);
case "gecko":
return /gecko/.test(_u) && !/applewebkit/.test(_u);
case "opera":
return /opera/.test(_u);
case "safari":
return /applewebkit/.test(_u);
default:
return false;
}
},
=09
getFlashVersion: function() {
if (UFO.fv[0] !=3D 0) return; =20
if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] =
=3D=3D "object") {
UFO.pluginType =3D "npapi";
var _d =3D navigator.plugins["Shockwave Flash"].description;
if (typeof _d !=3D "undefined") {
_d =3D _d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
var _m =3D parseInt(_d.replace(/^(.*)\..*$/, "$1"), 10);
var _r =3D /r/.test(_d) ? parseInt(_d.replace(/^.*r(.*)$/, "$1"), =
10) : 0;
UFO.fv =3D [_m, _r];
}
}
else if (window.ActiveXObject) {
UFO.pluginType =3D "ax";
try { // avoid fp 6 crashes
var _a =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch(e) {
try {=20
var _a =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
UFO.fv =3D [6, 0];
_a.AllowScriptAccess =3D "always"; // throws if fp < 6.47=20
}
catch(e) {
if (UFO.fv[0] =3D=3D 6) return;
}
try {
var _a =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(e) {}
}
if (typeof _a =3D=3D "object") {
var _d =3D _a.GetVariable("$version"); // bugs in fp 6.21/6.23
if (typeof _d !=3D "undefined") {
_d =3D _d.replace(/^\S+\s+(.*)$/, "$1").split(",");
UFO.fv =3D [parseInt(_d[0], 10), parseInt(_d[2], 10)];
}
}
}
},
hasRequired: function(id) {
var _l =3D UFO.req.length;
for (var i =3D 0; i < _l; i++) {
if (typeof UFO.foList[id][UFO.req[i]] =3D=3D "undefined") return =
false;
}
return true;
},
=09
hasFlashVersion: function(major, release) {
return (UFO.fv[0] > major || (UFO.fv[0] =3D=3D major && UFO.fv[1] >=3D =
release)) ? true : false;
},
writeSWF: function(id) {
var _fo =3D UFO.foList[id];
var _e =3D document.getElementById(id);
if (UFO.pluginType =3D=3D "npapi") {
if (UFO.uaHas("gecko") || UFO.uaHas("xml")) {
while(_e.hasChildNodes()) {
_e.removeChild(_e.firstChild);
}
var _obj =3D UFO.createElement("object");
_obj.setAttribute("type", "application/x-shockwave-flash");
_obj.setAttribute("data", _fo.movie);
_obj.setAttribute("width", _fo.width);
_obj.setAttribute("height", _fo.height);
var _l =3D UFO.optAtt.length;
for (var i =3D 0; i < _l; i++) {
if (typeof _fo[UFO.optAtt[i]] !=3D "undefined") =
_obj.setAttribute(UFO.optAtt[i], _fo[UFO.optAtt[i]]);
}
var _o =3D UFO.opt.concat(UFO.optExc);
var _l =3D _o.length;
for (var i =3D 0; i < _l; i++) {
if (typeof _fo[_o[i]] !=3D "undefined") UFO.createObjParam(_obj, =
_o[i], _fo[_o[i]]);
}
_e.appendChild(_obj);
}
else {
var _emb =3D "";
var _o =3D UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);
var _l =3D _o.length;
for (var i =3D 0; i < _l; i++) {
if (typeof _fo[_o[i]] !=3D "undefined") _emb +=3D ' ' + _o[i] + =
'=3D"' + _fo[_o[i]] + '"';
}
_e.innerHTML =3D '
';
}
}
else if (UFO.pluginType =3D=3D "ax") {
var _objAtt =3D "";
var _l =3D UFO.optAtt.length;
for (var i =3D 0; i < _l; i++) {
if (typeof _fo[UFO.optAtt[i]] !=3D "undefined") _objAtt +=3D ' ' + =
UFO.optAtt[i] + '=3D"' + _fo[UFO.optAtt[i]] + '"';
}
var _objPar =3D "";
var _l =3D UFO.opt.length;
for (var i =3D 0; i < _l; i++) {
if (typeof _fo[UFO.opt[i]] !=3D "undefined") _objPar +=3D '
';
}
var _p =3D window.location.protocol =3D=3D "https:" ? "https:" : =
"http:";
_e.innerHTML =3D '
' + _objPar + '';
}
},
=09
createDialog: function(id) {
var _fo =3D UFO.foList[id];
UFO.createCSS("html", "height:100%; overflow:hidden;");
UFO.createCSS("body", "height:100%; overflow:hidden;");
UFO.createCSS("#xi-con", "position:absolute; left:0; top:0; =
z-index:1000; width:100%; height:100%; background-color:#fff; =
filter:alpha(opacity:75); opacity:0.75;");
UFO.createCSS("#xi-dia", "position:absolute; left:50%; top:50%; =
margin-left: -" + Math.round(parseInt(_fo.xiwidth, 10) / 2) + "px; =
margin-top: -" + Math.round(parseInt(_fo.xiheight, 10) / 2) + "px; =
width:" + _fo.xiwidth + "px; height:" + _fo.xiheight + "px;");
var _b =3D document.getElementsByTagName("body")[0];
var _c =3D UFO.createElement("div");
_c.setAttribute("id", "xi-con");
var _d =3D UFO.createElement("div");
_d.setAttribute("id", "xi-dia");
_c.appendChild(_d);
_b.appendChild(_c);
var _mmu =3D window.location;
if (UFO.uaHas("xml") && UFO.uaHas("safari")) {
var _mmd =3D =
document.getElementsByTagName("title")[0].firstChild.nodeValue =3D =
document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0, =
47) + " - Flash Player Installation";
}
else {
var _mmd =3D document.title =3D document.title.slice(0, 47) + " - =
Flash Player Installation";
}
var _mmp =3D UFO.pluginType =3D=3D "ax" ? "ActiveX" : "PlugIn";
var _uc =3D typeof _fo.xiurlcancel !=3D "undefined" ? =
"&xiUrlCancel=3D" + _fo.xiurlcancel : "";
var _uf =3D typeof _fo.xiurlfailed !=3D "undefined" ? =
"&xiUrlFailed=3D" + _fo.xiurlfailed : "";
UFO.foList["xi-dia"] =3D { movie:_fo.ximovie, width:_fo.xiwidth, =
height:_fo.xiheight, majorversion:"6", build:"65", =
flashvars:"MMredirectURL=3D" + _mmu + "&MMplayerType=3D" + _mmp + =
"&MMdoctitle=3D" + _mmd + _uc + _uf };
UFO.writeSWF("xi-dia");
},
expressInstallCallback: function() {
var _b =3D document.getElementsByTagName("body")[0];
var _c =3D document.getElementById("xi-con");
_b.removeChild(_c);
UFO.createCSS("body", "height:auto; overflow:auto;");
UFO.createCSS("html", "height:auto; overflow:auto;");
},
cleanupIELeaks: function() {
var _o =3D document.getElementsByTagName("object");
var _l =3D _o.length
for (var i =3D 0; i < _l; i++) {
_o[i].style.display =3D "none";
for (var x in _o[i]) {
if (typeof _o[i][x] =3D=3D "function") {
_o[i][x] =3D null;
}
}
}
}
};
if (typeof window.attachEvent !=3D "undefined" && UFO.uaHas("ieWin")) {
window.attachEvent("onunload", UFO.cleanupIELeaks);
}
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: 7bit
Content-Location: http://www.canoe.ca/generix/js/generix.js
/// future generix loader
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.canoe.ca/generix/js/GenFonction.js
/*-------------------------------*/=0A=
/* GenFonction.js */=0A=
/* Librairie de fonction commune */=0A=
/* */=0A=
/* CheckProperties(obj,prop) */=0A=
/* SearchString( text, stringToFind) */=0A=
/* showProperties(obj,lstprop) */=0A=
/* IsNumeric(VarStr) */=0A=
/* */=0A=
/* Historique des maintenances */=0A=
/*-------------------------------*/=0A=
/* 2007-08-23 Creation RayBert */=0A=
/* */=0A=
/*-------------------------------*/=0A=
=0A=
//----------------------------------------------------=0A=
// Si la propri=E9t=E9 [prop] existe dans l'objet [obj]=0A=
// retour la valeur de la prorpi=E9t=E9 autrement retourne=0A=
// un chaine vide.=0A=
//----------------------------------------------------=0A=
function CheckProperties(obj,prop) { =0A=
if (typeof(obj[prop]) =3D=3D "undefined") { =0A=
return ""; =0A=
} =0A=
else {=0A=
return obj[prop];=0A=
}=0A=
}=0A=
=0A=
//----------------------------------------------------=0A=
// Retourne true si stringToFind est retouve dans text=0A=
//----------------------------------------------------=0A=
/*function SearchString( text, stringToFind) {=0A=
var text =3D text.toString() ;=0A=
var maReg =3D new RegExp( stringToFind, "gi") ;=0A=
if ( text.search( maReg ) =3D=3D -1 )=0A=
return 0;=0A=
else=0A=
return 1;=0A=
}=0A=
*/=0A=
//-----------------------------------------=0A=
// Affiche propri=E9t=E9 et valeur d'un objet=0A=
//=0A=
// obj : objet =E0 parser=0A=
//=0A=
// lstprop : Liste des properties =E0 dumper=0A=
// si vide dump l'emsemble des =0A=
// properties.=0A=
//=0A=
// ex. 'banane,pomme,orange,'=0A=
//-----------------------------------------=0A=
/*function showProperties(obj,lstprop) {=0A=
var props =3D [];=0A=
for (var prop in obj) {=0A=
if (SearchString(lstprop,prop) || lstprop =3D=3D '')=0A=
{ =0A=
if (prop =3D=3D 'm' || prop =3D=3D 't' || prop =3D=3D 'n' || prop =
=3D=3D 'co' || prop =3D=3D 'u' || prop =3D=3D 'un' || prop =3D=3D 'oun' )=0A=
{=0A=
=0A=
} else {=0A=
props.push('
'+prop+' : '+obj[prop]);=0A=
}=0A=
}=0A=
}=0A=
document.write(props.join(', '));=0A=
}=0A=
*/=0A=
//------------------------------------=0A=
// Retourne true si [VarStr] est numeric=0A=
//------------------------------------=0A=
/*function IsNumeric(VarStr) {=0A=
var RegExp =3D /^(\d*)$/;=0A=
var result =3D VarStr.match(RegExp);=0A=
return result;=0A=
}=0A=
*/=0A=
=0A=
//---------------------------------------=0A=
// Debug dumper objet=0A=
//=0A=
// ex.=0A=
//=0A=
// if(typeof debugDumpVar =3D=3D 'function') {=0A=
// =
debugDumpVar(s,'testdumpvar=3Don','OMNITURE',',pageName,account,channel,s=
erver,=0A=
// =
srcsite,linkInternalFilters,pageType,prop1,prop2,prop3,prop4,prop5,prop6,=
prop7=0A=
// ,prop22,prop23');=0A=
// }=0A=
//---------------------------------------=0A=
/*function debugDumpVar (obj,hidecode,lbl,filter) { =0A=
var url_racine_param =3D =
document.location.href.toLowerCase().split("?");=0A=
if (url_racine_param.length > 1)=0A=
{=0A=
var list_param=3Durl_racine_param[1].split('&')=0A=
=0A=
for (i =3D 0; i <=3D list_param.length; i++) {=0A=
=0A=
var par =3D list_param[i];=0A=
=0A=
if (par =3D=3D hidecode)=0A=
{=0A=
//---------------------------------------------------=0A=
// Affiche les propri=E9t=E9es de l'objet =0A=
//--------------------------------------------------- =0A=
document.write('
Dump variable -> '+lbl+' =
['+filter+']: ');=0A=
showProperties(obj,filter);=0A=
document.write('
Fin...');=0A=
}=0A=
}=0A=
} =0A=
}=0A=
=0A=
*/=0A=
//---------------------------------------------=0A=
//- Function : ConcatWB(ConcatString, delimit)=0A=
//=0A=
//- Description : Concatene avec un delimiteur =0A=
//- =0A=
//---------------------------------------------=0A=
function ConcatWB (ConcatString, delimit) {=0A=
if (!ConcatString =3D=3D '')=0A=
{=0A=
return delimit + ConcatString;=0A=
} else {=0A=
return '';=0A=
} =0A=
}=0A=
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.canoe.ca/generix/dfp/papers/bowesosprey/TagDfpConfig09.js
//-----------------------------=0A=
// Auteur : PEJMAN RAMEZANPOUR=0A=
// Date : 2008-05-23=0A=
//-----------------------------=0A=
=0A=
function DfpVariables(){=0A=
=0A=
this.mainsection =3D '';=0A=
this.sujet =3D '';=0A=
this.affiliate =3D '';=0A=
this.sectionLevel2 =3D '';=0A=
this.sectionLevel3 =3D '';=0A=
this.sectionLevel4 =3D '';=0A=
this.sectionLevel5 =3D ''; =0A=
this.language =3D '';=0A=
this.division =3D 'smc'; //hard code this one=0A=
this.hp=3D '';=0A=
this.SwitchLang =3D ''; =0A=
this.networkid =3D 'can';=0A=
this.tile =3D 1;=0A=
this.rand_num =3D Math.floor(Math.random()*8999999999)+1000000000;=0A=
this.prov =3D '';=0A=
=0A=
=0A=
this.dfpSwitch =3D {=0A=
skyscraper: 0,=0A=
superbanner:0,=0A=
bigbox: 0,=0A=
button: 0,=0A=
popup: 0,=0A=
tile: 0,=0A=
banner: 0,=0A=
doublebanner: 0=0A=
}=0A=
=0A=
}=0A=
=0A=
var MyGenericTagVar =3D new DfpVariables();
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.canoe.ca/generix/dfp/papers/bowesosprey/TagDfpSection09.js
var mainomni=3DMyGenericTagVar.mainsection;=0A=
var newsection2=3DMyGenericTagVar.sectionLevel2;=0A=
var newsection3=3DMyGenericTagVar.sectionLevel3;=0A=
var newsection4=3DMyGenericTagVar.sectionLevel4;=0A=
var newsection5=3DMyGenericTagVar.sectionLevel5;=0A=
MyGenericTagVar.mainsection=3Dnewsection2;=0A=
MyGenericTagVar.sectionLevel2=3Dnewsection3;=0A=
MyGenericTagVar.sectionLevel3=3Dnewsection4;=0A=
MyGenericTagVar.sectionLevel4=3Dnewsection5;=0A=
=0A=
// Function for LaToile Quebec ( KeyWord Variable)=0A=
=0A=
function get_keyword(name){=0A=
name =3D name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");=0A=
var regexS =3D "[\\?&]"+name+"=3D([^]*)"; =0A=
var regex =3D new RegExp( regexS ); =0A=
var results =3D regex.exec( window.location.href ); =0A=
if( results =3D=3D null ) =0A=
return ""; =0A=
else =0A=
return results[1];=0A=
}=0A=
// End function get_keyword=0A=
=0A=
=0A=
function GetDim(Posi)=0A=
{ =0A=
var tab=3Dnew Array;=0A=
tab["superbanner"] =3D"728x90";=0A=
tab["bigbox"] =3D"300x250";=0A=
tab["skyscraper"] =3D"120x600,160x600";=0A=
tab["popup"] =3D"500x500";=0A=
tab["button"] =3D"120x60";=0A=
tab["tile"] =3D"160x80";=0A=
tab["banner"] =3D"468x60";=0A=
tab["doublebanner"] =3D"468x120";=0A=
return tab[Posi];=0A=
}=0A=
=0A=
=0A=
------=_NextPart_000_0000_01CA1621.9F9626F0
Content-Type: application/x-js
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.canoe.ca/generix/dfp/TagDfpEngine.js
/*-----------------------------*/=0A=
/* updates*/=0A=
/*-----------------------------*/=0A=
/* 2009-02-20 Pejman Ramezanpour: got rid of the DE elemnts */=0A=
// Function for DCOPT Variable=0A=
=0A=
/* +-------------------------------------------------=0A=
| DCOPT handler=0A=
+------------------------------------------------- */ =0A=
var _dcopt_data =3D new Array(); // internal data=0A=
var _dcopt_html =3D new Array(); // external html=0A=
var _dcopt_data_functions =3D new Array(); // internal functions=0A=
=0A=
/* +-------------------------------------------------=0A=
| fctDcopt()=0A=
| processes all declared dcopt=0A=
+------------------------------------------------- */ =0A=
function fctDcopt() {=0A=
var params =3D (arguments.length) ? arguments[0] : {};=0A=
=0A=
// for each dcopt=0A=
//----------------------=0A=
for (var type in _dcopt_html) {=0A=
=0A=
if ( typeof(_dcopt_html[type]) =3D=3D "function" ) continue;=0A=
=0A=
var html =3D _dcopt_html[type];=0A=
=0A=
// div=0A=
//----------------------=0A=
var div =3D document.createElement('div');=0A=
div.setAttribute('id', 'dcopt_'+type);=0A=
document.body.appendChild(div);=0A=
=0A=
// specific function=0A=
//----------------------=0A=
if (typeof(_dcopt_data_functions[type]) =3D=3D 'function') {=0A=
_dcopt_data_functions[type](params);=0A=
}=0A=
=0A=
// append content=0A=
//----------------------=0A=
document.getElementById('dcopt_'+type).innerHTML =3D html;=0A=
}=0A=
=0A=
return false;=0A=
}=0A=
=0A=
function get_dcopt(mytile){=0A=
// dcopt =3D 'ist'; =0A=
if( mytile =3D=3D 1 ) {=0A=
dcopt =3D 'ist'; =0A=
}=0A=
else{=0A=
dcopt =3D ''; =0A=
} =0A=
return dcopt;=0A=
}=0A=
// End function get_dcopt=0A=
=0A=
function buildTag(tag_start,tag_end,tag_options,seperator) {=0A=
var ad_tag =3D tag_start;=0A=
for (var i in tag_options) {=0A=
if(tag_options[i] !=3D "" && ( typeof(tag_options[i]) =3D=3D 'string' =
|| typeof(tag_options[i]) =3D=3D 'number') ) {=0A=
if (ad_tag !=3D "") ad_tag +=3D seperator;=0A=
ad_tag =3D ad_tag + i + "=3D" + tag_options[i];=0A=
}=0A=
}=0A=
ad_tag =3D ad_tag + tag_end;=0A=
return ad_tag;=0A=
}=0A=
=0A=
function fctAdTag(position,objDfp,posId)=0A=
{ =0A=
var size =3D GetDim(position); // Size Variable=0A=
var my_dcopt =3Dget_dcopt(objDfp.tile); // DCOPT Variable=0A=
=0A=
var my_keyword =3D get_keyword( 'q' );// motcle variable in LaToile=0A=
my_keyword =3D my_keyword.replace(/%20/,"+");=0A=
=0A=
var tag_options =3D new Array();=0A=
=0A=
if ( objDfp.dfpSwitch !=3D null && objDfp.dfpSwitch[position] ) {=0A=
return;=0A=
} else { =0A=
=0A=
var tag_start =3D '