var ln = 'fa';
var url = document.URL;
if      ( url.search('/fa/') != -1 ) ln = 'fa';
else if ( url.search('/en/') != -1 ) ln = 'en';

if ( ln == 'fa' ) link1 = 'اين مجموعه در سايت شما';
else if ( ln == 'en' ) link1 = 'Have this collection in your site !';

if 	 	( url.search('/classified/') != -1 ) referto = 'http://www.pooyaonline.net/admethod/fa/floatsample_classified.html';
else if ( url.search('/cooking/') != -1 ) referto = 'http://www.pooyaonline.net/admethod/fa/floatsample_cook.html';
else if ( url.search('/dictionary/') != -1 ) referto = 'http://www.pooyaonline.net/admethod/fa/floatsample_dic.html';
else if ( url.search('/dream/') != -1 ) referto = 'http://www.pooyaonline.net/admethod/fa/floatsample_dream.html';
else if ( url.search('/coffee/') != -1 ) referto = 'http://www.pooyaonline.net/admethod/fa/floatsample_coffee.html';
else if ( url.search('/gallery/') != -1 ) referto = 'http://www.pooyaonline.net/admethod/fa/floatsample_gallery.html';
else if ( url.search('/gallery/') != -1 ) referto = 'http://www.pooyaonline.net/admethod/fa/floatsample_card.html';
else if ( url.search('/linkbox/') != -1 ) referto = 'http://www.pooyaonline.net/linkbox/fa/addlink.php';
else if ( url.search('/beauty/') != -1 ) referto = 'http://www.pooyaonline.net/beauty/fa/floatsample_beauty.html';


if ( typeof(selectText) == 'undefined' || selectText != true ) document.onselectstart=new Function ("return false");
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"){
//alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick;
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages();

document.write('<style>'
+'<!--'
+'.skin0 {'
+'position:absolute;'
+'z-index:2;'
+'text-align:left;'
+'width:120px;'
+'border:1px solid #7b1c9c;'
+'background-color:#fff79c;'
+'font-size: 8pt;'
+'font-family:Verdana;'
+'line-height:20px;'
+'cursor:default;'
+'visibility:hidden;'
+'}'
+'.skin1 {'
+'z-index:2;'
+'cursor:default;'
+'font:menutext;'
+'position:absolute;'
+'text-align:right;'
+'font-family: Tahoma;'
+'font-size: 11px;'
+'width:150px;'
+'background-color:#' + colorBG + ';'
+'border:1 solid #' + colorBorder + ';'
+'visibility:hidden;'
+'border1:2 outset buttonhighlight;'
+'}'
+'.menuitems {'
+'padding-left:10px;'
+'padding-right:10px;'
+'padding-bottom:2px;'
+'}'
+'.hritems {'
+'color:#9C009C;'
+'height:1px'
+'}'
+'-->'
+'</style>');

document.write ('<div id="ie5menu" class="skin1" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5();">'
+'<div class="menuitems" target="_blank" url="' + referto + '">' + link1 + '</div>'
+'</div>');

<!-- Web Site:  http://www.pooyaonline.net -->

<!-- Begin
var menuskin = "skin1"; // skin0, or skin1
var display_url = 0; // Show URLs in status bar?

function showmenuie5() {
var rightedge = document.body.clientWidth-event.clientX;
var bottomedge = document.body.clientHeight-event.clientY;
if (rightedge < ie5menu.offsetWidth)
ie5menu.style.left = document.body.scrollLeft + event.clientX - ie5menu.offsetWidth;
else
ie5menu.style.left = document.body.scrollLeft + event.clientX;
if (bottomedge < ie5menu.offsetHeight)
ie5menu.style.top = document.body.scrollTop + event.clientY - ie5menu.offsetHeight;
else
ie5menu.style.top = document.body.scrollTop + event.clientY;
ie5menu.style.visibility = "visible";
return false;
}
function hidemenuie5() {
ie5menu.style.visibility = "hidden";
}
function highlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "#" + colorBorder + "";//"highlight";
event.srcElement.style.color = "#" + colorTitle + "";
if (display_url)
window.status = event.srcElement.url;
   }
}
function lowlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "";
event.srcElement.style.color = "#" + colorText + "";
window.status = "";
   }
}
function jumptoie5() {
if (event.srcElement.className == "menuitems") {
if (event.srcElement.getAttribute("target") != null)
window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
else
window.location = event.srcElement.url;
   }
}
//  End -->

if (document.all && window.print) {
ie5menu.className = menuskin;
document.oncontextmenu = showmenuie5;
document.body.onclick = hidemenuie5;
}