/* Used to set Page Bookmarks */
function bookmark(url,title)
{
    if (window.sidebar)
    {
        window.sidebar.addPanel(title, url,"");
        alert("Firefox users: This link will open in your Sidebar\nrather than the main page!\n\nTo prevent this please right click the link and choose\n'Properties' and then uncheck the box marked:\n'Load This Bookmark in the Sidebar'\n\nSorry about this, but it is unavoidable with Firefox");
    } 
    else if( window.opera && window.print )
    {
		alert("Opera users: By Default this link will open in your Sidebar\nrather than the main page!\n\nTo prevent this please uncheck the box marked\n'Show in Panel' that appears on the Add Bookmark window\n\nSorry about this, but it is currently unavoidable with Opera");
		var mbm = document.createElement('a');
		mbm.setAttribute('rel','sidebar');
		mbm.setAttribute('href',url);
		mbm.setAttribute('title',title);
		mbm.click();
    } 
    else if( document.all )
    {
		window.external.AddFavorite( url, title);
    }
}


/* Disable Rightclick on all Images */
/* 
var clickmessage="Right click disabled on images!"
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG")
{
	alert(clickmessage);
	return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById)
if (e.which==3&&e.target.tagName=="IMG")
setTimeout("alert(clickmessage)",0)
} 

function associateimages(){
for(i=0;i<document.images.length;i++){
//document.images[i].onmousedown=disableclick;
}
}

if (document.all){
document.onmousedown=disableclick
for (var i_tem = 0; i_tem < document.images.length; i_tem++)
document.images[i_tem].galleryimg='no'
}
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
*/

/* Used for Rightclick on Images provided by Ident-I-Card Company */
/*
var message="This graphic content is the property of Ident-I-Card Company or its vendors. All rights reserved."
function rightclickIC() {
if (event.button==2||event.button==3) {
	alert(message); 
	}
} */
