/* If you take this script i will personally KILL you...And remmember I'm a mean motherfucker!!!
* Copyright (c) 1998, Wicap Interactive
* I will sue everyone that uses this script witout prior notice!
* Mail me and I'm sure we can come up to an agreement!
* wicap@wicap.com
*/
var cpcpcp, infos, ellos;
GetCP();
function GetCP () {
if (navigator.userAgent.indexOf('Mozilla') == -1 || navigator.userAgent.substring(8,9)<4 || navigator.appName=='Netscape') ns=true; else ns=false;
if (!ns && document.cookie =="") {
noCookie();
}
else {
iCookie();
}
}
function noCookie() {
window.document.onclick=checkClick;
function checkClick() {
var el=window.event.srcElement;
ellos=el;
var temp=el.tagName.toLowerCase();
if (temp=='a' || temp=='img') {
if ( temp=='img') {	
el=document.all[el.sourceIndex-1];
if (el.href.indexOf('.jpg')>=0 || el.href.indexOf('.gif')>=0) {
cpcpcp=el.href;
attwindow=window.open("frame.htm",'',' fullscreen=1, toolbar=0,status=0,directories=0,location=0,menubar=0,scrollbars=1, resizable=1, left=0, top=0, width='+(parent.document.body.clientWidth-24)+', height='+(parent.document.body.clientHeight+75),false);
attwindow.focus();
window.event.returnValue=false;

}								
}
}
}
}					  
function iCookie (v) {
var start=document.cookie.indexOf(v+'foo=');
var end=document.cookie.indexOf('12',start);
if (end==-1) {
end=document.cookie.length;
 }
var hej=document.cookie.substring(start+5,end);

window.document.onclick=checkClick;
function checkClick() {

var el=window.event.srcElement;
var temp=el.tagName.toLowerCase();

if (temp=='a' || temp=='img') {
if ( temp=='img') {	
for (var i=0;i<document.all.length;i++) if (document.all[i]==el) break;
infos=i;
el=document.all[i-1];
 }

if (el.href.indexOf('.jpg')>=0 || el.href.indexOf('.gif')>=0) {
cpcpcp=el.href;
attwindow=window.open("frame.htm",'', hej +', scrollbars=1, fullscreen=1, resizable=1, left=0, top=0, width='+(parent.document.body.clientWidth-24)+', height='+(parent.document.body.clientHeight+75),false);
attwindow.focus();
window.event.returnValue=false;
}
}
}
 }


